* [Intel-wired-lan] [PATCH] igc: Fix default MAC address filter override
@ 2020-03-09 23:10 Andre Guedes
2020-03-19 7:03 ` Brown, Aaron F
0 siblings, 1 reply; 2+ messages in thread
From: Andre Guedes @ 2020-03-09 23:10 UTC (permalink / raw)
To: intel-wired-lan
This patch fixes a bug when the user adds the first MAC address filter
via ethtool NFC mechanism.
When the first MAC address filter is added, it overwrites the default
MAC address filter configured at RAL[0] and RAH[0]. As consequence,
frames addressed to the interface MAC address are not sent to host
anymore.
This patch fixes the bug by calling igc_set_default_mac_filter() during
adapter init so the position 0 of adapter->mac_table[] is assigned to
the default MAC address.
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
---
drivers/net/ethernet/intel/igc/igc_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
index 025f2e439aef..3ddea16ec1da 100644
--- a/drivers/net/ethernet/intel/igc/igc_main.c
+++ b/drivers/net/ethernet/intel/igc/igc_main.c
@@ -2350,7 +2350,9 @@ static void igc_configure(struct igc_adapter *adapter)
igc_setup_mrqc(adapter);
igc_setup_rctl(adapter);
+ igc_set_default_mac_filter(adapter);
igc_nfc_filter_restore(adapter);
+
igc_configure_tx(adapter);
igc_configure_rx(adapter);
--
2.25.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Intel-wired-lan] [PATCH] igc: Fix default MAC address filter override
2020-03-09 23:10 [Intel-wired-lan] [PATCH] igc: Fix default MAC address filter override Andre Guedes
@ 2020-03-19 7:03 ` Brown, Aaron F
0 siblings, 0 replies; 2+ messages in thread
From: Brown, Aaron F @ 2020-03-19 7:03 UTC (permalink / raw)
To: intel-wired-lan
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Andre Guedes
> Sent: Monday, March 9, 2020 4:11 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH] igc: Fix default MAC address filter override
>
> This patch fixes a bug when the user adds the first MAC address filter
> via ethtool NFC mechanism.
>
> When the first MAC address filter is added, it overwrites the default
> MAC address filter configured at RAL[0] and RAH[0]. As consequence,
> frames addressed to the interface MAC address are not sent to host
> anymore.
>
> This patch fixes the bug by calling igc_set_default_mac_filter() during
> adapter init so the position 0 of adapter->mac_table[] is assigned to
> the default MAC address.
>
> Signed-off-by: Andre Guedes <andre.guedes@intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc_main.c | 2 ++
> 1 file changed, 2 insertions(+)
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-19 7:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-09 23:10 [Intel-wired-lan] [PATCH] igc: Fix default MAC address filter override Andre Guedes
2020-03-19 7:03 ` Brown, Aaron F
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox