]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Return -EOPNOTSUPP when VLAN mask doesn't match
authorAndre Guedes <andre.guedes@intel.com>
Fri, 3 Apr 2020 18:17:42 +0000 (11:17 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 19 May 2020 22:18:33 +0000 (15:18 -0700)
commitce9bd2d65fe424591dfe0d87204d0ab5a7a47ec5
treea98d2d3075eea563274b1291c36a807997065fbd
parentc1cfeaf217851f7ea5f2f79a3cfc2575871bdc53
igc: Return -EOPNOTSUPP when VLAN mask doesn't match

The I225 controller supports Rx queue assignment based on VLAN priority
only. Other Tag Control Information (TCI) are valid, but not supported
by the driver. So this patch changes the returning code from igc_add_
ethtool_nfc_entry() to -EOPNOTSUPP in order to provide more meaningful
information on why the function failed.

It also adds a debug messages to give the user a hint about what went
wrong with the NFC setup.

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_ethtool.c