diff options
author | Wang Hai <wanghai38@huawei.com> | 2021-08-17 23:37:36 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-08-18 03:47:52 +0300 |
commit | 1b80fec7b043552e01609bae7d0aad07aa742adc (patch) | |
tree | aa50c12f42ab6bead3b1913422759db8078b8b72 /net/vmw_vsock | |
parent | e5e487a2ec8afa207b4e6d53a19c9ab3bf596683 (diff) | |
download | linux-1b80fec7b043552e01609bae7d0aad07aa742adc.tar.xz |
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: d49e286d354e ("ixgbe: add tracking of AF_XDP zero-copy state for each queue pair")
Fixes: 4a9b32f30f80 ("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>
Diffstat (limited to 'net/vmw_vsock')
0 files changed, 0 insertions, 0 deletions