]> Git Repo - linux.git/commitdiff
pkt_sched: sch_multiq: Change errno on non-multiqueue devices use.
authorJarek Poplawski <[email protected]>
Tue, 10 Feb 2009 08:11:21 +0000 (00:11 -0800)
committerDavid S. Miller <[email protected]>
Tue, 10 Feb 2009 08:11:21 +0000 (00:11 -0800)
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 <[email protected]>

Reported-by: Badalian Vyacheslav <[email protected]>
Signed-off-by: Jarek Poplawski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sched/sch_multiq.c

index 7e151861794b5eb09eb7eb448834fc7be9fec3bc..9127312030472a5bf86c3e29a86c0aa44c0116f5 100644 (file)
@@ -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;
 
This page took 0.054277 seconds and 4 git commands to generate.