ixgbe: Fix crash with VFs and flow director on interface flap
authorRadoslaw Tyl <radoslawx.tyl@intel.com>
Mon, 24 Sep 2018 07:24:20 +0000 (09:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:53:27 +0000 (09:53 +0100)
commitfe92d894826c1900e6a4863ae8997ad363936b7b
tree4ee5e50dd6bf43c714fac91a7588d3b979f98bae
parent57176df1159e67c14ff1542e9c34d2e4dd3b361e
ixgbe: Fix crash with VFs and flow director on interface flap

[ Upstream commit 5d826d209164b0752c883607be4cdbbcf7cab494 ]

This patch fix crash when we have restore flow director filters after reset
adapter. In ixgbe_fdir_filter_restore() filter->action is outside of the
rx_ring array, as it has a VF identifier in the upper 32 bits.

Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c