sched_prio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I'm tring to use sched_prio. The question i have is how can I put a
packet in a band by filter?

I looked at the code an found:

48 static __inline__ unsigned prio_classify(struct sk_buff *skb,
struct Qdisc *sch)
49 {
....
53 
54         band = skb->priority;
....
59                         return q->prio2band[band&TC_PRIO_MAX];
60                 }
61                 band = res.classid;
62         }
63         band = TC_H_MIN(band) - 1;
64         return band < q->bands ? band : q->prio2band[0];
65 }

So it uses the priority in the sk_buff to get the band (prio2band). I
also found that the priority in sk_buff is set by tos2prio. So I have
to set tos with ipchains in order to get the prio set -> which sets
the prioband of sched_prio, haven't I?

Does anyone know a way to set the prio or band directly? Using tc
filter or ipchains?

Best,
    Hans
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux