diff options
author | Amritha Nambiar <amritha.nambiar@intel.com> | 2023-12-01 15:28:56 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-04 18:04:05 -0800 |
commit | 27f91aaf49b3a50e5a02ad5fa27b7c453d029a72 (patch) | |
tree | b16bce0418a8b53e96ccc1d374e3ef5c8a4f6412 /net/core/dev.h | |
parent | ff9991499fb53575c45eb92cd064bcd7141bb572 (diff) | |
download | lwn-27f91aaf49b3a50e5a02ad5fa27b7c453d029a72.tar.gz lwn-27f91aaf49b3a50e5a02ad5fa27b7c453d029a72.zip |
netdev-genl: Add netlink framework functions for napi
Implement the netdev netlink framework functions for
napi support. The netdev structure tracks all the napi
instances and napi fields. The napi instances and associated
parameters can be retrieved this way.
Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Link: https://lore.kernel.org/r/170147333637.5260.14807433239805550815.stgit@anambiarhost.jf.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev.h')
-rw-r--r-- | net/core/dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.h b/net/core/dev.h index 5aa45f0fd4ae..7795b8ad841d 100644 --- a/net/core/dev.h +++ b/net/core/dev.h @@ -145,4 +145,6 @@ void xdp_do_check_flushed(struct napi_struct *napi); #else static inline void xdp_do_check_flushed(struct napi_struct *napi) { } #endif + +struct napi_struct *napi_by_id(unsigned int napi_id); #endif |