net: sched: change return value of ndo_setup_tc for driver supporting mqprio only

Change the return value from -EINVAL to -EOPNOTSUPP. The rest of the
drivers have it like that, so be aligned.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jiri Pirko
2017-08-07 10:15:31 +02:00
committed by David S. Miller
parent d7c1c8d2e5
commit 38cf0426e5
11 changed files with 11 additions and 11 deletions

View File

@@ -435,7 +435,7 @@ int ef4_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
int rc;
if (type != TC_SETUP_MQPRIO)
return -EINVAL;
return -EOPNOTSUPP;
num_tc = ntc->mqprio->num_tc;

View File

@@ -663,7 +663,7 @@ int efx_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
int rc;
if (type != TC_SETUP_MQPRIO)
return -EINVAL;
return -EOPNOTSUPP;
num_tc = ntc->mqprio->num_tc;