Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 237298
b: refs/heads/master
c: 250a65f
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Feb 25, 2011
1 parent 2ebf2c2 commit 4206c54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 661b79725fea030803a89a16cda506bac8eeca78
refs/heads/master: 250a65f78265940ac33a2dd2002924e6126efe14
10 changes: 4 additions & 6 deletions trunk/net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <net/netlink.h>
#include <net/pkt_sched.h>

#define VERSION "1.2"
#define VERSION "1.3"

/* Network Emulation Queuing algorithm.
====================================
Expand Down Expand Up @@ -311,8 +311,6 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)
int ret;
int count = 1;

pr_debug("netem_enqueue skb=%p\n", skb);

/* Random duplication */
if (q->duplicate && q->duplicate >= get_crandom(&q->dup_cor))
++count;
Expand Down Expand Up @@ -633,7 +631,7 @@ static int netem_change(struct Qdisc *sch, struct nlattr *opt)

ret = fifo_set_limit(q->qdisc, qopt->limit);
if (ret) {
pr_debug("netem: can't set fifo limit\n");
pr_info("netem: can't set fifo limit\n");
return ret;
}

Expand Down Expand Up @@ -769,13 +767,13 @@ static int netem_init(struct Qdisc *sch, struct nlattr *opt)
q->qdisc = qdisc_create_dflt(sch->dev_queue, &tfifo_qdisc_ops,
TC_H_MAKE(sch->handle, 1));
if (!q->qdisc) {
pr_debug("netem: qdisc create failed\n");
pr_notice("netem: qdisc create tfifo qdisc failed\n");
return -ENOMEM;
}

ret = netem_change(sch, opt);
if (ret) {
pr_debug("netem: change failed\n");
pr_info("netem: change failed\n");
qdisc_destroy(q->qdisc);
}
return ret;
Expand Down

0 comments on commit 4206c54

Please sign in to comment.