Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22186
b: refs/heads/master
c: 053cfed
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Mar 21, 2006
1 parent 84ce8a7 commit 0d85ae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdc7f8e362bcadbc312c97fb69d8d59676eec422
refs/heads/master: 053cfed75d9e01bda274c5b0126f5937181dcb62
5 changes: 3 additions & 2 deletions trunk/net/sched/sch_tbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,14 @@ static int tbf_change(struct Qdisc* sch, struct rtattr *opt)
if (max_size < 0)
goto done;

if (q->qdisc == &noop_qdisc) {
if (qopt->limit > 0) {
if ((child = tbf_create_dflt_qdisc(sch->dev, qopt->limit)) == NULL)
goto done;
}

sch_tree_lock(sch);
if (child) q->qdisc = child;
if (child)
qdisc_destroy(xchg(&q->qdisc, child));
q->limit = qopt->limit;
q->mtu = qopt->mtu;
q->max_size = max_size;
Expand Down

0 comments on commit 0d85ae1

Please sign in to comment.