| Submitter | Jarek Poplawski |
|---|---|
| Date | Oct. 8, 2008, 7:46 a.m. |
| Message ID | <20081008074604.GC4174@ff.dom.local> |
| Download | mbox | patch |
| Permalink | /patch/3273/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
From: Jarek Poplawski <jarkao2@gmail.com> Date: Wed, 8 Oct 2008 07:46:04 +0000 > pkt_sched: Update qdisc requeue stats in dev_requeue_skb() > > After the last change of requeuing there is no info about such > incidents in tc stats. This patch updates the counter, but we should > consider this should differ from previous stats because of additional > checks preventing to repeat this. On the other hand, previous stats > didn't include requeuing of gso_segmented skbs. > > Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> Applied to net-next-2.6, thanks Jarek. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 31f6b61..7b5572d 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -45,6 +45,7 @@ static inline int qdisc_qlen(struct Qdisc *q) static inline int dev_requeue_skb(struct sk_buff *skb, struct Qdisc *q) { q->gso_skb = skb; + q->qstats.requeues++; __netif_schedule(q); return 0;