diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-08-07 10:15:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 18:42:37 +0200 |
commit | 38cf0426e5178b1c3810bb88e65dd23882e40283 (patch) | |
tree | a9f36a71fc52ae80cb895f6cab0c8eb05f179526 /drivers/net/ethernet/hisilicon | |
parent | net: sched: move prio into cls_common (diff) | |
download | linux-38cf0426e5178b1c3810bb88e65dd23882e40283.tar.xz linux-38cf0426e5178b1c3810bb88e65dd23882e40283.zip |
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/hisilicon')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c index dc64d751db24..aa43ebda9a00 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c @@ -1223,7 +1223,7 @@ static int hns3_nic_setup_tc(struct net_device *dev, enum tc_setup_type type, struct tc_to_netdev *tc) { if (type != TC_SETUP_MQPRIO) - return -EINVAL; + return -EOPNOTSUPP; return hns3_setup_tc(dev, tc->mqprio->num_tc); } |