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: http://pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=149490f131ab532a3b9e8806249a0e730994cdf6;p=linux-2.6-omap-h63xx.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 7e151861794..91273120304 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;