netif_tx_napi_add(9)

netif_tx_napi_add9

Initialize a napi context

Usage

void netif_tx_napi_add(struct net_device * dev, struct napi_struct * napi, int (*poll) (struct napi_struct *, int), int weight);

Arguments

dev

network device

napi

NAPI context

poll

polling function

weight

default weight

Overview

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.