]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix xdp handle calculations
authorCiara Loftus <ciara.loftus@intel.com>
Fri, 13 Sep 2019 10:39:47 +0000 (10:39 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 16 Sep 2019 07:35:09 +0000 (09:35 +0200)
commit0b3896089545cf3e02f375ebaa46864dd2b33ac1
tree3b34e465d226a662f0cc022f9cac8cdc580d26ff
parent2d4e3213b445b38f8fc9b35e5bb73515d944b15c
ixgbe: fix xdp handle calculations

Commit 23bb7fbf035d ("ixgbe: fix xdp handle calculations") reintroduced
the addition of the umem headroom to the xdp handle in the ixgbe_zca_free,
ixgbe_alloc_buffer_slow_zc and ixgbe_alloc_buffer_zc functions. However,
the headroom is already added to the handle in the function
ixgbe_run_xdp_zc. This commit removes the latter addition and fixes the
case where the headroom is non-zero.

Fixes: 23bb7fbf035d ("ixgbe: fix xdp handle calculations")
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c