net: page_pool: stash the NAPI ID for easier access
authorJakub Kicinski <kuba@kernel.org>
Sun, 26 Nov 2023 23:07:31 +0000 (15:07 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Nov 2023 14:48:39 +0000 (15:48 +0100)
commit02b3de80c5f879f92e5f4bb3f535d172e0fc0ea0
treedb3a33025453778ddac1a6c5e2e93214c8db180e
parent083772c9f972dcc248913b52a0dec1025baa1e16
net: page_pool: stash the NAPI ID for easier access

To avoid any issues with race conditions on accessing napi
and having to think about the lifetime of NAPI objects
in netlink GET - stash the napi_id to which page pool
was linked at creation time.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/page_pool/types.h
net/core/page_pool_user.c