aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2018-06-24 10:38:39 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-25 16:14:03 +0900
commit246ab6f01efb808610535be34aab2de9325da6fa (patch)
tree16d10b317f153a2bd6215fd06ad2aac4bcb34f54 /drivers/net/ethernet/intel/igb
parentnfp: handle cls_flower command default case (diff)
downloadlinux-dev-246ab6f01efb808610535be34aab2de9325da6fa.tar.xz
linux-dev-246ab6f01efb808610535be34aab2de9325da6fa.zip
cls_flower: fix error values for commands not supported by drivers
-EOPNOTSUPP is the error value that should be reported if a flower command is not supported by a driver. Fix it in couple of Intel drivers. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/igb')
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index f707709969ac..6a78d8272eb2 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -2698,7 +2698,7 @@ static int igb_setup_tc_cls_flower(struct igb_adapter *adapter,
case TC_CLSFLOWER_STATS:
return -EOPNOTSUPP;
default:
- return -EINVAL;
+ return -EOPNOTSUPP;
}
}