linux/drivers/net/ethernet/intel
Wang Hai 1b80fec7b0 ixgbe, xsk: clean up the resources in ixgbe_xsk_pool_enable error path
In ixgbe_xsk_pool_enable(), if ixgbe_xsk_wakeup() fails,
We should restore the previous state and clean up the
resources. Add the missing clear af_xdp_zc_qps and unmap dma
to fix this bug.

Fixes: d49e286d35 ("ixgbe: add tracking of AF_XDP zero-copy state for each queue pair")
Fixes: 4a9b32f30f ("ixgbe: fix potential RX buffer starvation for AF_XDP")
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20210817203736.3529939-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-08-17 17:47:52 -07:00
..
e1000 intel: remove checker warning 2021-05-26 09:11:40 -07:00
e1000e e1000e: Fix an error handling path in 'e1000_probe()' 2021-07-01 10:59:21 -07:00
fm10k fm10k: Fix an error handling path in 'fm10k_probe()' 2021-07-01 10:59:21 -07:00
i40e i40e: Fix log TC creation failure when max num of queues is exceeded 2021-07-23 07:44:48 -07:00
iavf iavf: Set RSS LUT and key in reset handle path 2021-08-09 09:59:23 -07:00
ice ice: Fix perout start time rounding 2021-08-13 17:22:53 -07:00
igb igb: Fix position of assignment to *ring 2021-07-01 10:59:21 -07:00
igbvf igbvf: convert to strongly typed descriptors 2021-05-26 09:11:41 -07:00
igc igc: Fix an error handling path in 'igc_probe()' 2021-07-01 10:53:22 -07:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe ixgbe, xsk: clean up the resources in ixgbe_xsk_pool_enable error path 2021-08-17 17:47:52 -07:00
ixgbevf ixgbevf: use xso.real_dev instead of xso.dev in callback functions of struct xfrmdev_ops 2021-07-06 10:36:59 -07:00
e100.c e100: handle eeprom as little endian 2021-05-26 09:11:40 -07:00
Kconfig ice: register 1588 PTP clock device object for E810 devices 2021-06-11 08:47:30 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00