Messages in this thread | | | Subject | RE: [PATCH v6 net-next 1/5] net: add napi_id and hash | From | Eric Dumazet <> | Date | Wed, 29 May 2013 06:43:45 -0700 |
| |
On Wed, 2013-05-29 at 14:09 +0100, David Laight wrote: > > > Adds a napi_id and a hashing mechanism to lookup a napi by id. > > Is this one of the places where the 'id' can be selected > so that the 'hash' lookup never collides?
Very few devices will ever call napi_hash_add()
[ Real NIC RX queues, not virtual devices ]
We use a hash table with 256 slots, the chance of collision is about 0%
Lets not over engineer the thing before its even used.
| |