]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: add napi_id and hash
authorEliezer Tamir <eliezer.tamir@linux.intel.com>
Mon, 10 Jun 2013 08:39:41 +0000 (11:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jun 2013 04:22:35 +0000 (21:22 -0700)
commitaf12fa6e46aa651e7b86a4c4117b562518fef184
tree1425ef11083e66af192c33abb3b1fa3b04b26f4b
parent6f00a0229627ca189529cad3f9154ac2f9e5c7db
net: add napi_id and hash

Adds a napi_id and a hashing mechanism to lookup a napi by id.
This will be used by subsequent patches to implement low latency
Ethernet device polling.
Based on a code sample by Eric Dumazet.

Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c