diff options
author | Amritha Nambiar <amritha.nambiar@intel.com> | 2023-12-02 02:28:34 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-05 05:04:05 +0300 |
commit | 2a502ff0c4e42a739b5aa550c901bf3852795532 (patch) | |
tree | 3ceb0f1f5e07653f3035f4ea065b4f5cd8b4d462 /include/net/netdev_rx_queue.h | |
parent | bc877956272f0521fef107838555817112a450dc (diff) | |
download | linux-2a502ff0c4e42a739b5aa550c901bf3852795532.tar.xz |
net: Add queue and napi association
Add the napi pointer in netdev queue for tracking the napi
instance for each queue. This achieves the queue<->napi mapping.
Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Link: https://lore.kernel.org/r/170147331483.5260.15723438819994285695.stgit@anambiarhost.jf.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/netdev_rx_queue.h')
-rw-r--r-- | include/net/netdev_rx_queue.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/netdev_rx_queue.h b/include/net/netdev_rx_queue.h index cdcafb30d437..aa1716fb0e53 100644 --- a/include/net/netdev_rx_queue.h +++ b/include/net/netdev_rx_queue.h @@ -21,6 +21,10 @@ struct netdev_rx_queue { #ifdef CONFIG_XDP_SOCKETS struct xsk_buff_pool *pool; #endif + /* NAPI instance for the queue + * Readers and writers must hold RTNL + */ + struct napi_struct *napi; } ____cacheline_aligned_in_smp; /* |