Re: HFSC drop count bug

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

 



Jesper Dangaard Brouer wrote:
Hi Patrick

I found a small bug in HFSC (Hierarchical Fair Service Curve).

When attaching a pfifo qdisc to an HFSC class, the dropped packets are not
reported by the tc class output.

I assume by not reported you mean reported as zero.


tc class output command: 'tc -s class show dev ethX'

When using a sfq qdisc, the drop count is correct.

It depends for what reason packets are dropped. If packets are dropped because they can't be classified, only the qdisc's drop counter is incremented (no classification, no class). In all other cases the class' drop count should be correctly incremented.

# tc -s class show dev ppp0
class hfsc 1:300 parent 1:10 leaf 300: ls m1 0bps d 0us m2 80Kbit ul m1 0bps d 0us m2 256Kbit
Sent 300181894 bytes 4818711 pkts (dropped 64786, overlimits 0)
rate 671bps 13pps
period 1633189 work 300148097 bytes level 0


# tc -s qdisc show dev ppp0
qdisc hfsc 1: default 300
 Sent 4426277948 bytes 22024331 pkts (dropped 1604722, overlimits 54353858)

Regards
Patrick


Hilsen Jesper Brouer

--
-------------------------------------------------------------------
Research Assistant
Dept. of Computer Science, University of Copenhagen
E-mail: hawk@diku.dk, Direct Tel.: 353 21464
-------------------------------------------------------------------


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