Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 149490f1 authored by Jarek Poplawski's avatar Jarek Poplawski Committed by David S. Miller
Browse files

pkt_sched: sch_multiq: Change errno on non-multiqueue devices use.



Current "RTNETLINK answers: Invalid argument" warning, while trying to
add multiq qdisc to non-multiqueue device, isn't very helpful and some
of these devs can be changed btw., so let's use a better errno.

With feedback from Stephen Hemminger <shemminger@vyatta.com>

Reported-by: default avatarBadalian Vyacheslav <slavon@bigtelecom.ru>
Signed-off-by: default avatarJarek Poplawski <jarkao2@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d54e6d87
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -202,7 +202,7 @@ static int multiq_tune(struct Qdisc *sch, struct nlattr *opt)
	int i;
	int i;


	if (!netif_is_multiqueue(qdisc_dev(sch)))
	if (!netif_is_multiqueue(qdisc_dev(sch)))
		return -EINVAL;
		return -EOPNOTSUPP;
	if (nla_len(opt) < sizeof(*qopt))
	if (nla_len(opt) < sizeof(*qopt))
		return -EINVAL;
		return -EINVAL;