]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: devmem: do not WARN conditionally after netdev_rx_queue_restart()
authorTaehee Yoo <ap420073@gmail.com>
Sun, 9 Mar 2025 13:42:18 +0000 (13:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 10 Mar 2025 20:31:12 +0000 (13:31 -0700)
commita70f891e0fa0435379ad4950e156a15a4ef88b4d
treee3771070559f81e92e46aa389c46d883c4d6d46d
parent87dd2850835dd7886726b428a8ef7d73a60520c7
net: devmem: do not WARN conditionally after netdev_rx_queue_restart()

When devmem socket is closed, netdev_rx_queue_restart() is called to
reset queue by the net_devmem_unbind_dmabuf(). But callback may return
-ENETDOWN if the interface is down because queues are already freed
when the interface is down so queue reset is not needed.
So, it should not warn if the return value is -ENETDOWN.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Link: https://patch.msgid.link/20250309134219.91670-8-ap420073@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devmem.c