CBQ - classification problem with cbq_classify()

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

 



Hello,

I have such configuration


 Client1------->Router<-----------Client2
                  |
                  |
                  v
                 Sink

Client1 IPv6 addr: 2001:6a8:802:7::2
Client2 IPv6 addr: 2001:6a8:802:6::2

Sink IPv6 addr: 2001:6a8:802:3::2

Router(2.4.20) has CBWFQ configured on interfacce to Sink:

tc qdisc add dev eth1 root handle 1:0 cbq bandwidth 10mbit avpkt 1000 mpu 64

tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 10mbit rate 2mbit
maxburst 1 allot 1000 avpkt 1000 bounded isolated
tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth 10mbit rate
200kbit weight 200  allot 1000 maxburst 10 avpkt 1000
tc class add dev eth1 parent 1:0 classid 1:3 cbq bandwidth 10mbit rate
1.8mbit weight 1800 allot 1000 maxburst 10 avpkt 1000

tc filter add dev eth1 parent 1:0 protocol ipv6 prio 2 u32 match ip6 src
2001:6a8:802:7::2 classid 1:2

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tc filter add dev eth1 parent 1:0 protocol ipv6 prio 4 u32 match ip6 src
2001:6a8:802:6::2 classid 1:3

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


So i think that for EVERY_PACKET processed by Router, there should be
cbq_classify() called from sch_cbq.c, right??

ONE return point from cbq_classify is
(lxr.linux.no/source/net/sched/sch_cbq.c#L241):

250         /*
251          *  Step 1. If skb->priority points to one of our classes, use
it.
252          */
253         if (TC_H_MAJ(prio^sch->handle) == 0 &&
254             (cl = cbq_class_lookup(q, prio)) != NULL)
255                         return cl;
>>>> so if i dump some data to buffer in here (ex.
spritnf(buff,"%s",some_data) it should be there

SECOND preturn point that stands for classification success, is just before
exiting cbq_classify:

>>>> so if i dump some data to buffer (e.x spritnf(buff,"%s",some_data) ) in
here it should be there
310         return cl;
311 }


Please tell me if i am correct assuming i MUST get some info in my dump
file, from either of those probe points????

If so that WHY i don get any info from cbq_classify() in my dump file???


-
: 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