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)
commit8e679021c5b9465ac5b0d7efd26baab9b10a2dbd
tree79a3acb37702c0b0940f5ebd2f2427b746d5ada2
parent5e0fac63a694918870af9d6eaf716af19e7f5652
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: 33fdc82f0883 ("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