nfp: wrap napi add/del logic
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 4 Mar 2022 10:22:11 +0000 (11:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 13:06:12 +0000 (13:06 +0000)
commit58eb43635344d5a99ab1316d0e66621fb6a5efef
treed9e5a7e6545ce8e170de3e4865223664ecd11345
parent3cdb35fb9cd5a03ba882bbce327d26a2eb40d30c
nfp: wrap napi add/del logic

There will be more NAPI register logic once AF_XDP support is
added, wrap our already conditional napi add/del into helpers.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c