]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix default MAC address filter override
authorAndre Guedes <andre.guedes@intel.com>
Mon, 9 Mar 2020 23:10:40 +0000 (16:10 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Apr 2020 17:19:24 +0000 (10:19 -0700)
commita6cce7a28787cd6caec71fc84ec1812a33d74f0b
tree73109f4de9ce129e8b1084819a594b68800550af
parente0bacb09509bf02e3d3dea49a0fa2b4d85755080
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>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c