Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32779
b: refs/heads/master
c: 89e1df7
h: refs/heads/master
i:
  32777: 7e6c478
  32775: 6dc1197
v: v3
  • Loading branch information
Guillaume Chazarain authored and David S. Miller committed Jul 21, 2006
1 parent 93d73fc commit b65f878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: fbeff3c1d35d07b1f967e47fcfb00cd16b7ecd02
refs/heads/master: 89e1df74f841fc31e81838d30594c4eff01859f8
4 changes: 3 additions & 1 deletion trunk/net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ static long tabledist(unsigned long mu, long sigma,
static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)
{
struct netem_sched_data *q = qdisc_priv(sch);
struct netem_skb_cb *cb = (struct netem_skb_cb *)skb->cb;
/* We don't fill cb now as skb_unshare() may invalidate it */
struct netem_skb_cb *cb;
struct sk_buff *skb2;
int ret;
int count = 1;
Expand Down Expand Up @@ -200,6 +201,7 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)
skb->data[net_random() % skb_headlen(skb)] ^= 1<<(net_random() % 8);
}

cb = (struct netem_skb_cb *)skb->cb;
if (q->gap == 0 /* not doing reordering */
|| q->counter < q->gap /* inside last reordering gap */
|| q->reorder < get_crandom(&q->reorder_cor)) {
Expand Down

0 comments on commit b65f878

Please sign in to comment.