igb: fix error code in igb_add_ethtool_nfc_entry()
authorGangfeng Huang <gangfeng.huang@ni.com>
Wed, 6 Jul 2016 05:22:57 +0000 (13:22 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 19 Aug 2016 05:27:48 +0000 (22:27 -0700)
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>
drivers/net/ethernet/intel/igb/igb_ethtool.c

index ef5408b8e0833e288c6c62ca6e26382c5ee1f7ad..0c33eca7c83286e245609f8704822ce71c026512 100644 (file)
@@ -2851,7 +2851,7 @@ static int igb_add_ethtool_nfc_entry(struct igb_adapter *adapter,
        int err = 0;
 
        if (!(netdev->hw_features & NETIF_F_NTUPLE))
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        /* Don't allow programming if the action is a queue greater than
         * the number of online Rx queues.