]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - include/linux/netdevice.h
net: add napi_if_scheduled_mark_missed
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 28 Aug 2018 12:44:28 +0000 (14:44 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Aug 2018 19:25:53 +0000 (12:25 -0700)
commit6c5c9581044dd6e0cd284ab653502fb9264f08b6
treee6fa178bc5bebdf6a58110ede60352ec5ba50151
parent902540342096af8a13351f6a22bfdd7a8e19ffd2
net: add napi_if_scheduled_mark_missed

The function napi_if_scheduled_mark_missed is used to check if the
NAPI context is scheduled, if so set NAPIF_STATE_MISSED and return
true. Used by the AF_XDP zero-copy i40e Tx code implementation in
order to make sure that irq affinity is honored by the napi context.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/netdevice.h