Commit 54be8132 authored by Gangfeng Huang's avatar Gangfeng Huang Committed by Jeff Kirsher

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: default avatarGangfeng Huang <gangfeng.huang@ni.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 7a277a96
...@@ -2851,7 +2851,7 @@ static int igb_add_ethtool_nfc_entry(struct igb_adapter *adapter, ...@@ -2851,7 +2851,7 @@ static int igb_add_ethtool_nfc_entry(struct igb_adapter *adapter,
int err = 0; int err = 0;
if (!(netdev->hw_features & NETIF_F_NTUPLE)) if (!(netdev->hw_features & NETIF_F_NTUPLE))
return -ENOTSUPP; return -EOPNOTSUPP;
/* Don't allow programming if the action is a queue greater than /* Don't allow programming if the action is a queue greater than
* the number of online Rx queues. * the number of online Rx queues.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment