diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2009-02-10 00:11:21 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-10 00:11:21 -0800 |
commit | 149490f131ab532a3b9e8806249a0e730994cdf6 (patch) | |
tree | e8b0e3313c554547704b3b0444579a2fbbeeb431 /net/sched | |
parent | d54e6d872767ae6512978f86a35d623a8ed948c5 (diff) | |
download | linux-3.10-149490f131ab532a3b9e8806249a0e730994cdf6.tar.gz linux-3.10-149490f131ab532a3b9e8806249a0e730994cdf6.tar.bz2 linux-3.10-149490f131ab532a3b9e8806249a0e730994cdf6.zip |
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: Badalian Vyacheslav <slavon@bigtelecom.ru>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_multiq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |