Skip to content

Commit

Permalink
igb: fix error code in igb_add_ethtool_nfc_entry()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gangfeng Huang authored and Jeff Kirsher committed Aug 19, 2016
1 parent 7a277a9 commit 54be813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/igb/igb_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 54be813

Please sign in to comment.