]> 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)
commit900b350e6bec2fc5f415fdd02ab1ac7587b24309
tree79a3acb37702c0b0940f5ebd2f2427b746d5ada2
parentea1fc9eb5c8bcd9d8cf731712c41d17e037c9c8b
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: 909d4968f405 ("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