Skip to content
Commit 93667e55 authored by Cambda Zhu's avatar Cambda Zhu Committed by Paul Gortmaker
Browse files

ixgbe: Fix calculation of queue with VFs and flow director on interface flap

commit 4fad78ad

 upstream.

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>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 442bf59a
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