mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
igc: Fix NFC rules with multicast addresses
Multicast MAC addresses are valid address for NFC rules but igc_add_mac_filter() is currently rejecting them. In fact, the I225 controller doesn't impose any constraint on the address value so this patch gets rid of the address validation check in MAC filter APIs. 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>
This commit is contained in:
parent
4bdf89e85e
commit
39707c16e6
1 changed files with 0 additions and 6 deletions
|
@ -2249,9 +2249,6 @@ int igc_add_mac_filter(struct igc_adapter *adapter,
|
||||||
struct net_device *dev = adapter->netdev;
|
struct net_device *dev = adapter->netdev;
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
if (!is_valid_ether_addr(addr))
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
index = igc_find_mac_filter(adapter, type, addr);
|
index = igc_find_mac_filter(adapter, type, addr);
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
goto update_filter;
|
goto update_filter;
|
||||||
|
@ -2283,9 +2280,6 @@ int igc_del_mac_filter(struct igc_adapter *adapter,
|
||||||
struct net_device *dev = adapter->netdev;
|
struct net_device *dev = adapter->netdev;
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
if (!is_valid_ether_addr(addr))
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
index = igc_find_mac_filter(adapter, type, addr);
|
index = igc_find_mac_filter(adapter, type, addr);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
|
Loading…
Reference in a new issue