1NETIF_TX_NAPI_ADD(9)        Network device support        NETIF_TX_NAPI_ADD(9)
2
3
4

NAME

6       netif_tx_napi_add - initialize a napi context
7

SYNOPSIS

9       void netif_tx_napi_add(struct net_device * dev,
10                              struct napi_struct * napi,
11                              int (*poll) (struct napi_struct *, int),
12                              int weight);
13

ARGUMENTS

15       dev
16           network device
17
18       napi
19           napi context
20
21       poll
22           polling function
23
24       weight
25           default weight
26

DESCRIPTION

28       This variant of netif_napi_add should be used from drivers using NAPI
29       to exclusively poll a TX queue. This will avoid we add it into
30       napi_hash[], thus polluting this hash table.
31
33Kernel Hackers Manual 3.10         June 2019              NETIF_TX_NAPI_ADD(9)
Impressum