]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Fix calculation of queue with VFs and flow director on interface flap
authorCambda Zhu <cambda@linux.alibaba.com>
Wed, 27 Nov 2019 09:03:55 +0000 (17:03 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 9 Jan 2020 17:21:40 +0000 (09:21 -0800)
commit88b954477436941141a0fd1652ec69fbe6f225e0
tree944ff322274f58fbba53bea6a9104599fcdc9e34
parent03eeed1dc313da4d505eae4009c48c743e8d0daf
ixgbe: Fix calculation of queue with VFs and flow director on interface flap

This patch fixes the calculation of queue when we restore flow director
filters after resetting adapter. In ixgbe_fdir_filter_restore(), filter's
vf may be zero which makes the queue outside of the rx_ring array.

The calculation is changed to the same as ixgbe_add_ethtool_fdir_entry().

Signed-off-by: Cambda Zhu <cambda@linux.alibaba.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_main.c