Name
netif_tx_napi_add —
initialize a NAPI context
Synopsis
void netif_tx_napi_add ( | struct net_device * dev, |
| struct napi_struct * napi, |
| int (*poll)
( struct napi_struct *, int) , |
| int weight) ; |
Arguments
struct net_device * dev
network device
struct napi_struct * napi
NAPI context
int (*)(struct napi_struct *, int) poll
polling function
int weight
default weight
Description
This variant of netif_napi_add
should be used from drivers using NAPI
to exclusively poll a TX queue.
This will avoid we add it into napi_hash[], thus polluting this hash table.