From: Eric Dumazet Date: Sun, 9 Jan 2011 08:30:54 +0000 (+0000) Subject: net_sched: factorize qdisc stats handling X-Git-Tag: v2.6.38-rc1~403^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfe0d0298f2a67d94d58c39ea904a999aeeb7c3c;p=pandora-kernel.git net_sched: factorize qdisc stats handling HTB takes into account skb is segmented in stats updates. Generalize this to all schedulers. They should use qdisc_bstats_update() helper instead of manipulating bstats.bytes and bstats.packets Add bstats_update() helper too for classes that use gnet_stats_basic_packed fields. Note : Right now, TCQ_F_CAN_BYPASS shortcurt can be taken only if no stab is setup on qdisc. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed