From: Jarek Poplawski Date: Tue, 10 Feb 2009 08:11:21 +0000 (-0800) Subject: pkt_sched: sch_multiq: Change errno on non-multiqueue devices use. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=149490f131ab532a3b9e8806249a0e730994cdf6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reported-by: Badalian Vyacheslav Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c index 7e151861794b..912731203047 100644 --- a/net/sched/sch_multiq.c +++ b/net/sched/sch_multiq.c @@ -202,7 +202,7 @@ static int multiq_tune(struct Qdisc *sch, struct nlattr *opt) int i; if (!netif_is_multiqueue(qdisc_dev(sch))) - return -EINVAL; + return -EOPNOTSUPP; if (nla_len(opt) < sizeof(*qopt)) return -EINVAL;