]> git.itanic.dy.fi Git - linux-stable/commit
ice: Fix ice_xdp_xmit() when XDP TX queue number is not sufficient
authorLarysa Zaremba <larysa.zaremba@intel.com>
Mon, 19 Sep 2022 13:43:46 +0000 (15:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:32:20 +0000 (11:32 +0200)
commit56c167a564b6cb811d9cdb50bef5cedb13467b07
treeab1f71bcbd46361f4a7a2f022f30df31a5e5f073
parentb65c5336978628d550c5274086369d00b7bd7d7b
ice: Fix ice_xdp_xmit() when XDP TX queue number is not sufficient

[ Upstream commit 114f398d48c571bb628187a7b2dd42695156781f ]

The original patch added the static branch to handle the situation,
when assigning an XDP TX queue to every CPU is not possible,
so they have to be shared.

However, in the XDP transmit handler ice_xdp_xmit(), an error was
returned in such cases even before static condition was checked,
thus making queue sharing still impossible.

Fixes: 22bf877e528f ("ice: introduce XDP_TX fallback path")
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
Reviewed-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Link: https://lore.kernel.org/r/20220919134346.25030-1-larysa.zaremba@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_txrx.c