* [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after VFLR
@ 2018-10-22 6:44 Radoslaw Tyl
2018-10-23 23:30 ` Bowers, AndrewX
0 siblings, 1 reply; 3+ messages in thread
From: Radoslaw Tyl @ 2018-10-22 6:44 UTC (permalink / raw)
To: intel-wired-lan
This change resolves a driver bug where the driver is logging a
message that says "Spoofed packets detected". This can occur on the PF
(host) when a VF has VLAN+MACVLAN enabled and is re-started with a
different MAC address.
MAC and VLAN anti-spoofing filters are to be enabled together.
Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
index af25a8f..5dacfc8 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
@@ -722,8 +722,10 @@ static inline void ixgbe_vf_reset_event(struct ixgbe_adapter *adapter, u32 vf)
ixgbe_set_vmvir(adapter, vfinfo->pf_vlan,
adapter->default_up, vf);
- if (vfinfo->spoofchk_enabled)
+ if (vfinfo->spoofchk_enabled) {
hw->mac.ops.set_vlan_anti_spoofing(hw, true, vf);
+ hw->mac.ops.set_mac_anti_spoofing(hw, true, vf);
+ }
}
/* reset multicast table array for vf */
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after VFLR
2018-10-22 6:44 [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after VFLR Radoslaw Tyl
@ 2018-10-23 23:30 ` Bowers, AndrewX
2018-10-31 8:41 ` Piotr Skajewski
0 siblings, 1 reply; 3+ messages in thread
From: Bowers, AndrewX @ 2018-10-23 23:30 UTC (permalink / raw)
To: intel-wired-lan
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Radoslaw Tyl
> Sent: Sunday, October 21, 2018 11:45 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Tyl, RadoslawX <radoslawx.tyl@intel.com>
> Subject: [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after
> VFLR
>
> This change resolves a driver bug where the driver is logging a message that
> says "Spoofed packets detected". This can occur on the PF
> (host) when a VF has VLAN+MACVLAN enabled and is re-started with a
> different MAC address.
>
> MAC and VLAN anti-spoofing filters are to be enabled together.
>
> Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
> ---
> drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after VFLR
2018-10-23 23:30 ` Bowers, AndrewX
@ 2018-10-31 8:41 ` Piotr Skajewski
0 siblings, 0 replies; 3+ messages in thread
From: Piotr Skajewski @ 2018-10-31 8:41 UTC (permalink / raw)
To: intel-wired-lan
>> -----Original Message-----
>> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
>> Behalf Of Radoslaw Tyl
>> Sent: Sunday, October 21, 2018 11:45 PM
>> To: intel-wired-lan at lists.osuosl.org
>> Cc: Tyl, RadoslawX <radoslawx.tyl@intel.com>
>> Subject: [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after
>> VFLR
>>
>> This change resolves a driver bug where the driver is logging a message that
>> says "Spoofed packets detected". This can occur on the PF
>> (host) when a VF has VLAN+MACVLAN enabled and is re-started with a
>> different MAC address.
>>
>> MAC and VLAN anti-spoofing filters are to be enabled together.
>>
>> Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
>> ---
>> drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Acked-by: Piotr Skajewski <piotrx.skajewski@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-31 8:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22 6:44 [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after VFLR Radoslaw Tyl
2018-10-23 23:30 ` Bowers, AndrewX
2018-10-31 8:41 ` Piotr Skajewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.