]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: ensure tx function is not running in stmmac_xdp_release()
authorMohd Faizal Abdul Rahim <faizal.abdul.rahim@intel.com>
Thu, 10 Nov 2022 06:45:52 +0000 (14:45 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Nov 2022 03:59:36 +0000 (19:59 -0800)
commit9190a0d29af3360173e2126e93fd6dc1b2211ed4
tree8cd682d3ba7c3142bf273a45a4d55e4d753a7076
parent2e0c055bbc0547f1519252eaa8db25bd640604de
net: stmmac: ensure tx function is not running in stmmac_xdp_release()

When stmmac_xdp_release() is called, there is a possibility that tx
function is still running on other queues which will lead to tx queue
timed out and reset adapter.

This commit ensure that tx function is not running xdp before release
flow continue to run.

Fixes: 88573938efdc ("net: stmmac: enhance XDP ZC driver level switching performance")
Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com>
Signed-off-by: Mohd Faizal Abdul Rahim <faizal.abdul.rahim@intel.com>
Signed-off-by: Noor Azura Ahmad Tarmizi <noor.azura.ahmad.tarmizi@intel.com>
Link: https://lore.kernel.org/r/20221110064552.22504-1-noor.azura.ahmad.tarmizi@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c