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:

committed by
David S. Miller

parent
d7c1c8d2e5
commit
38cf0426e5
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user