]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita918278e04e5f8ecc93f87ef70d4cbcac7b4eeb6
treee6fa178bc5bebdf6a58110ede60352ec5ba50151
parentb5e7beb1fb743a20e6062884cb4bab97a58d2f47
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