]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: incorrect XDP ring accounting in ethtool tx_frame param
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 7 Sep 2017 17:32:48 +0000 (10:32 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 15:02:47 +0000 (08:02 -0700)
commitaa48d3fe43e5a182a62400b36de7ef0de3a5b2ec
tree79a3acb37702c0b0940f5ebd2f2427b746d5ada2
parent9647a1a0dcd7313a491ddedbeeb4526a97c50190
ixgbe: incorrect XDP ring accounting in ethtool tx_frame param

Changing the TX ring parameters with an XDP program attached may
cause the XDP queues to be cleared and the TX rings to be incorrectly
configured.

Fix by doing correct ring accounting in setup call.

Fixes: e42e2464e0ba ("ixgbe: add support for XDP_TX action")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c