diff options
author | Gangfeng Huang <gangfeng.huang@ni.com> | 2016-07-06 01:22:57 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-08-19 01:27:48 -0400 |
commit | 54be81328c07324a88cd5dd86b2e7422db3e768e (patch) | |
tree | ecf2b95dda45613f1aa63741311b45289111d594 /drivers/net/ethernet/intel/igb | |
parent | 7a277a963bf394d80f8998a7143a208e0891f6e7 (diff) |
igb: fix error code in igb_add_ethtool_nfc_entry()
Use error "rmgr: Cannot insert RX class rule: Operation not supported" is
more meaningful than "rmgr: Cannot insert RX class rule: Unknown error 524"
Signed-off-by: Gangfeng Huang <gangfeng.huang@ni.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb')
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index ef5408b8e083..0c33eca7c832 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c | |||
@@ -2851,7 +2851,7 @@ static int igb_add_ethtool_nfc_entry(struct igb_adapter *adapter, | |||
2851 | int err = 0; | 2851 | int err = 0; |
2852 | 2852 | ||
2853 | if (!(netdev->hw_features & NETIF_F_NTUPLE)) | 2853 | if (!(netdev->hw_features & NETIF_F_NTUPLE)) |
2854 | return -ENOTSUPP; | 2854 | return -EOPNOTSUPP; |
2855 | 2855 | ||
2856 | /* Don't allow programming if the action is a queue greater than | 2856 | /* Don't allow programming if the action is a queue greater than |
2857 | * the number of online Rx queues. | 2857 | * the number of online Rx queues. |