X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsched%2Fsch_dsmark.c;h=a935676987e2ad1dd7858f03bb8aff3b8065c799;hb=9ee08c2df47c10ba624ff05a6c0f2500748bcb69;hp=3aafbd17393abb8c86372cef999b893a9bb72b7e;hpb=5ce2d488fe039ddd86a638496cf704df86c74eeb;p=linux-2.6 diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c index 3aafbd1739..a935676987 100644 --- a/net/sched/sch_dsmark.c +++ b/net/sched/sch_dsmark.c @@ -252,13 +252,13 @@ static int dsmark_enqueue(struct sk_buff *skb, struct Qdisc *sch) } } - err = p->q->enqueue(skb, p->q); + err = qdisc_enqueue(skb, p->q); if (err != NET_XMIT_SUCCESS) { sch->qstats.drops++; return err; } - sch->bstats.bytes += skb->len; + sch->bstats.bytes += qdisc_pkt_len(skb); sch->bstats.packets++; sch->q.qlen++;