]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Improve address check in igc_del_mac_filter()
authorAndre Guedes <andre.guedes@intel.com>
Wed, 18 Mar 2020 23:00:56 +0000 (16:00 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Apr 2020 18:59:24 +0000 (11:59 -0700)
commitdcc525e1e426d9f7e830036e0a964754e4c00b91
tree2b5695b09f48cf080ec4aa5536362344aaf749b3
parent3420eede1ace0f64107f93ae8fc555a887bcf431
igc: Improve address check in igc_del_mac_filter()

igc_add_mac_filter() doesn't allow filters with invalid MAC address to
be added to adapter->mac_table so, in igc_del_mac_filter(), we can early
return if MAC address is invalid. No need to traverse the table.

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