linux-brain/drivers/net/ethernet/intel
Sylwester Dziedziuch 85813f1f9e iavf: Fix ping is lost after untrusted VF had tried to change MAC
[ Upstream commit 8da80c9d50220a8e4190a4eaa0dd6aeefcbbb5bf ]

Make changes to MAC address dependent on the response of PF.
Disallow changes to HW MAC address and MAC filter from untrusted
VF, thanks to that ping is not lost if VF tries to change MAC.
Add a new field in iavf_mac_filter, to indicate whether there
was response from PF for given filter. Based on this field pass
or discard the filter.
If untrusted VF tried to change it's address, it's not changed.
Still filter was changed, because of that ping couldn't go through.

Fixes: c5c922b3e0 ("iavf: fix MAC address setting for VFs when filter is rejected")
Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Gurucharan G <Gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-26 08:36:19 -04:00
..
e1000 e1000: Do not perform reset in reset_task if we are already down 2020-10-01 13:18:03 +02:00
e1000e e1000e: Fix an error handling path in 'e1000_probe()' 2021-07-28 13:30:52 +02:00
fm10k fm10k: Fix an error handling path in 'fm10k_probe()' 2021-07-28 13:30:52 +02:00
i40e i40e: Fix ATR queue selection 2021-08-26 08:36:19 -04:00
iavf iavf: Fix ping is lost after untrusted VF had tried to change MAC 2021-08-26 08:36:19 -04:00
ice ice: set the value of global config lock timeout longer 2021-07-19 08:53:09 +02:00
igb igb: Fix position of assignment to *ring 2021-07-28 13:30:53 +02:00
igbvf igb: handle vlan types with checker enabled 2021-07-19 08:53:09 +02:00
igc igc: Fix an error handling path in 'igc_probe()' 2021-07-28 13:30:52 +02:00
ixgb net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
ixgbe ixgbe: Fix packet corruption due to missing DMA sync 2021-07-28 13:31:01 +02:00
ixgbevf ixgbevf: add correct exception tracing for XDP 2021-06-10 13:37:05 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00
e100.c e100: handle eeprom as little endian 2021-07-19 08:53:09 +02:00