]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix receive buffer starvation for AF_XDP
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 7 Oct 2019 22:07:24 +0000 (15:07 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 1 Nov 2019 20:20:18 +0000 (13:20 -0700)
commit78007638c009265440aa5682dfc54c4c2db14bff
tree5682380ccaf2c978ee98d83af6c13fd11dc538bb
parent43ce337d69fa4ad54e7f3e77ce959e448a15f2fa
i40e: Fix receive buffer starvation for AF_XDP

Magnus's fix to resolve a potential receive buffer starvation for AF_XDP
got applied to both the i40e_xsk_umem_enable/disable() functions, when it
should have only been applied to the "enable".  So clean up the undesired
code in the disable function.

CC: Magnus Karlsson <magnus.karlsson@intel.com>
Fixes: fceee18ac987 ("i40e: fix potential RX buffer starvation for AF_XDP")
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
drivers/net/ethernet/intel/i40e/i40e_xsk.c