Skip to content
Commit 4fad78ad authored by Cambda Zhu's avatar Cambda Zhu Committed by Jeff Kirsher
Browse files

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: default avatarCambda Zhu <cambda@linux.alibaba.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent aa604651
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment