table of contents
other versions
- stretch 4.9.168-1
NETIF_TX_NAPI_ADD(9) | Network device support | NETIF_TX_NAPI_ADD(9) |
NAME¶
netif_tx_napi_add - initialize a NAPI contextSYNOPSIS¶
void netif_tx_napi_add(struct net_device * dev, struct napi_struct * napi, int (*poll) (struct napi_struct *, int), int weight);
ARGUMENTS¶
devnetwork device
napi
NAPI context
poll
polling function
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.COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |