]> 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:40:13 +0000 (14:40 +0200)
commit5f1ecc9aa59f0e9cdd9583258a94051a75579582
tree8b4fed40da19f7aeb492915e8108ef31374ef1a5
parent0d9d54113f4380c32752c6004c006b348aa54cec
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