pkt_sched: sch_multiq: Change errno on non-multiqueue devices use.
[safe/jmp/linux-2.6] / net / sched / sch_multiq.c
index 7e15186..9127312 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;