diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /net/sched/sch_drr.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'net/sched/sch_drr.c')
-rw-r--r-- | net/sched/sch_drr.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c index 71e50c80315..6b7fe4a84f1 100644 --- a/net/sched/sch_drr.c +++ b/net/sched/sch_drr.c | |||
@@ -260,8 +260,7 @@ static int drr_dump_class(struct Qdisc *sch, unsigned long arg, | |||
260 | nest = nla_nest_start(skb, TCA_OPTIONS); | 260 | nest = nla_nest_start(skb, TCA_OPTIONS); |
261 | if (nest == NULL) | 261 | if (nest == NULL) |
262 | goto nla_put_failure; | 262 | goto nla_put_failure; |
263 | if (nla_put_u32(skb, TCA_DRR_QUANTUM, cl->quantum)) | 263 | NLA_PUT_U32(skb, TCA_DRR_QUANTUM, cl->quantum); |
264 | goto nla_put_failure; | ||
265 | return nla_nest_end(skb, nest); | 264 | return nla_nest_end(skb, nest); |
266 | 265 | ||
267 | nla_put_failure: | 266 | nla_put_failure: |
@@ -352,7 +351,7 @@ static int drr_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
352 | { | 351 | { |
353 | struct drr_sched *q = qdisc_priv(sch); | 352 | struct drr_sched *q = qdisc_priv(sch); |
354 | struct drr_class *cl; | 353 | struct drr_class *cl; |
355 | int err = 0; | 354 | int err; |
356 | 355 | ||
357 | cl = drr_classify(skb, sch, &err); | 356 | cl = drr_classify(skb, sch, &err); |
358 | if (cl == NULL) { | 357 | if (cl == NULL) { |
@@ -376,6 +375,8 @@ static int drr_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
376 | cl->deficit = cl->quantum; | 375 | cl->deficit = cl->quantum; |
377 | } | 376 | } |
378 | 377 | ||
378 | bstats_update(&cl->bstats, skb); | ||
379 | |||
379 | sch->q.qlen++; | 380 | sch->q.qlen++; |
380 | return err; | 381 | return err; |
381 | } | 382 | } |
@@ -401,8 +402,6 @@ static struct sk_buff *drr_dequeue(struct Qdisc *sch) | |||
401 | skb = qdisc_dequeue_peeked(cl->qdisc); | 402 | skb = qdisc_dequeue_peeked(cl->qdisc); |
402 | if (cl->qdisc->q.qlen == 0) | 403 | if (cl->qdisc->q.qlen == 0) |
403 | list_del(&cl->alist); | 404 | list_del(&cl->alist); |
404 | |||
405 | bstats_update(&cl->bstats, skb); | ||
406 | qdisc_bstats_update(sch, skb); | 405 | qdisc_bstats_update(sch, skb); |
407 | sch->q.qlen--; | 406 | sch->q.qlen--; |
408 | return skb; | 407 | return skb; |