]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Check unsupported flag in igc_add_mac_filter()
authorAndre Guedes <andre.guedes@intel.com>
Wed, 18 Mar 2020 23:00:52 +0000 (16:00 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Apr 2020 18:40:56 +0000 (11:40 -0700)
commit0764240317b43f86175074c610e404e2af7687aa
treea7a17726f6dac55668c453651166135811e40efe
parentcea61ac15fd7aff054246a0c2d8dba66f69ae35e
igc: Check unsupported flag in igc_add_mac_filter()

The IGC_MAC_STATE_SRC_ADDR flags is not supported by igc_add_mac_
filter() so this patch adds a check for it and returns -ENOTSUPP
in case it is set.

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