diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-08-07 04:15:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 12:42:37 -0400 |
commit | 38cf0426e5178b1c3810bb88e65dd23882e40283 (patch) | |
tree | a9f36a71fc52ae80cb895f6cab0c8eb05f179526 /drivers/net/ethernet/sfc/falcon | |
parent | d7c1c8d2e53be974b5c72e31d7d35f6d9737fe84 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/falcon')
-rw-r--r-- | drivers/net/ethernet/sfc/falcon/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/falcon/tx.c b/drivers/net/ethernet/sfc/falcon/tx.c index 447519ac3fa4..0f125e15143a 100644 --- a/drivers/net/ethernet/sfc/falcon/tx.c +++ b/drivers/net/ethernet/sfc/falcon/tx.c | |||
@@ -435,7 +435,7 @@ int ef4_setup_tc(struct net_device *net_dev, enum tc_setup_type type, | |||
435 | int rc; | 435 | int rc; |
436 | 436 | ||
437 | if (type != TC_SETUP_MQPRIO) | 437 | if (type != TC_SETUP_MQPRIO) |
438 | return -EINVAL; | 438 | return -EOPNOTSUPP; |
439 | 439 | ||
440 | num_tc = ntc->mqprio->num_tc; | 440 | num_tc = ntc->mqprio->num_tc; |
441 | 441 | ||