]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:31 +0000 (14:39 +0200)
commit93c59b5548ee8f833a3cebeab9126e3dd7219f9e
treea8d8edc615fdc8d24b8ec07ffe9c8ec3bb080bd3
parentcf1b90486748fc7251794074aeacb779ac9befb2
net: devmem: do not WARN conditionally after netdev_rx_queue_restart()

[ Upstream commit a70f891e0fa0435379ad4950e156a15a4ef88b4d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/devmem.c