tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: refactoring ip_output() and the L2 _output()
On Sun, Feb 10, 2013 at 08:43:31PM -0500, Thor Lancelot Simon wrote:
> On Sun, Feb 10, 2013 at 07:05:01PM -0600, David Young wrote:
> >
> > Speaking of radix trees, it seems that in an SMP networking stack the PCB
> > tables could be replaced by a couple of them. The tree for unconnected
> > sockets would use keys
> >
> > [protocol (tcp|udp|...), local port (1..65535)]
> >
> > for sockets binding the same port and INADDR_ANY, and use keys
> >
> > [protocol (tcp|udp|...), local port (1..65535)], local address]
> >
> > for sockets bound to a particular local address.
>
> Wouldn't this have the unfortunate effect of squandering the ability
> of most modern network adapters to return the appropriate hash bucket
> for your (presumed, but reasonably, on the part of their designers)
> hashed connection datastructures on receive?
That's a good point, it probably would.
Dave
--
David Young
dyoung%pobox.com@localhost Urbana, IL (217) 721-9981
Home |
Main Index |
Thread Index |
Old Index