]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
eth: mlx4: don't try to complete XDP frames in netpoll
authorJakub Kicinski <kuba@kernel.org>
Thu, 13 Feb 2025 01:06:33 +0000 (17:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:38:01 +0000 (14:38 +0200)
commitaf8431851b8e8ffd9ffcfdd942de4e83e992c9af
treeb9f50721437fdcb35916c660d51a0c3bd15eb5b2
parent30064eee8fe7777d15c1e7f5c6a999abd72a325a
eth: mlx4: don't try to complete XDP frames in netpoll

[ Upstream commit 8fdeafd66edaf420ea0063a1f13442fe3470fe70 ]

mlx4 doesn't support ndo_xdp_xmit / XDP_REDIRECT and wasn't
using page pool until now, so it could run XDP completions
in netpoll (NAPI budget == 0) just fine. Page pool has calling
context requirements, make sure we don't try to call it from
what is potentially HW IRQ context.

Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250213010635.1354034-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx4/en_tx.c