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_dsmark.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'net/sched/sch_dsmark.c')
-rw-r--r-- | net/sched/sch_dsmark.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c index 3886365cc20..2c790204d04 100644 --- a/net/sched/sch_dsmark.c +++ b/net/sched/sch_dsmark.c | |||
@@ -265,7 +265,8 @@ static int dsmark_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
265 | return NET_XMIT_SUCCESS; | 265 | return NET_XMIT_SUCCESS; |
266 | 266 | ||
267 | drop: | 267 | drop: |
268 | qdisc_drop(skb, sch); | 268 | kfree_skb(skb); |
269 | sch->qstats.drops++; | ||
269 | return NET_XMIT_SUCCESS | __NET_XMIT_BYPASS; | 270 | return NET_XMIT_SUCCESS | __NET_XMIT_BYPASS; |
270 | } | 271 | } |
271 | 272 | ||
@@ -428,9 +429,8 @@ static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl, | |||
428 | opts = nla_nest_start(skb, TCA_OPTIONS); | 429 | opts = nla_nest_start(skb, TCA_OPTIONS); |
429 | if (opts == NULL) | 430 | if (opts == NULL) |
430 | goto nla_put_failure; | 431 | goto nla_put_failure; |
431 | if (nla_put_u8(skb, TCA_DSMARK_MASK, p->mask[cl - 1]) || | 432 | NLA_PUT_U8(skb, TCA_DSMARK_MASK, p->mask[cl - 1]); |
432 | nla_put_u8(skb, TCA_DSMARK_VALUE, p->value[cl - 1])) | 433 | NLA_PUT_U8(skb, TCA_DSMARK_VALUE, p->value[cl - 1]); |
433 | goto nla_put_failure; | ||
434 | 434 | ||
435 | return nla_nest_end(skb, opts); | 435 | return nla_nest_end(skb, opts); |
436 | 436 | ||
@@ -447,16 +447,13 @@ static int dsmark_dump(struct Qdisc *sch, struct sk_buff *skb) | |||
447 | opts = nla_nest_start(skb, TCA_OPTIONS); | 447 | opts = nla_nest_start(skb, TCA_OPTIONS); |
448 | if (opts == NULL) | 448 | if (opts == NULL) |
449 | goto nla_put_failure; | 449 | goto nla_put_failure; |
450 | if (nla_put_u16(skb, TCA_DSMARK_INDICES, p->indices)) | 450 | NLA_PUT_U16(skb, TCA_DSMARK_INDICES, p->indices); |
451 | goto nla_put_failure; | ||
452 | 451 | ||
453 | if (p->default_index != NO_DEFAULT_INDEX && | 452 | if (p->default_index != NO_DEFAULT_INDEX) |
454 | nla_put_u16(skb, TCA_DSMARK_DEFAULT_INDEX, p->default_index)) | 453 | NLA_PUT_U16(skb, TCA_DSMARK_DEFAULT_INDEX, p->default_index); |
455 | goto nla_put_failure; | ||
456 | 454 | ||
457 | if (p->set_tc_index && | 455 | if (p->set_tc_index) |
458 | nla_put_flag(skb, TCA_DSMARK_SET_TC_INDEX)) | 456 | NLA_PUT_FLAG(skb, TCA_DSMARK_SET_TC_INDEX); |
459 | goto nla_put_failure; | ||
460 | 457 | ||
461 | return nla_nest_end(skb, opts); | 458 | return nla_nest_end(skb, opts); |
462 | 459 | ||