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 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?

Thor


Home | Main Index | Thread Index | Old Index