]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: page_pool: avoid false positive warning if NAPI was never added
authorJakub Kicinski <kuba@kernel.org>
Thu, 6 Feb 2025 22:56:37 +0000 (14:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:36 +0000 (11:13 +0200)
commita48894b8d1b6c23daa6f01a44a1caef7f4f5b6b4
tree02b206a874d3ff9582d4739633fbbf27202330e9
parenta8f32bb6e51e395b88c350e64809204b823e16e8
net: page_pool: avoid false positive warning if NAPI was never added

[ Upstream commit c1e00bc4be06cacee6307cedb9b55bbaddb5044d ]

We expect NAPI to be in disabled state when page pool is torn down.
But it is also legal if the NAPI is completely uninitialized.

Reviewed-by: Mina Almasry <almasrymina@google.com>
Link: https://patch.msgid.link/20250206225638.1387810-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/dev.h
net/core/page_pool.c