]> git.baikalelectronics.ru Git - kernel.git/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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 00:33:29 +0000 (17:33 -0700)
commita9bbf648ca5c63589fd374bba04011f524e95e7b
tree1a8e0c58c49ca294f97ec5c7e00ca06786a742f7
parent248d8665a5acb9a02d3e31ee1ef1362b8e10033a
ice: Fix ice_xdp_xmit() when XDP TX queue number is not sufficient

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: db0ba47f7e66 ("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>
drivers/net/ethernet/intel/ice/ice_txrx.c