Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299979
b: refs/heads/master
c: 116a0fc
h: refs/heads/master
i:
  299977: 2d2304e
  299975: 269a49b
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 1, 2012
1 parent e0944ad commit d0e1604
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: e072b3fad5f3915102c94628b4971f52ff99dd05
refs/heads/master: 116a0fc31c6c9b8fc821be5a96e5bf0b43260131
6 changes: 2 additions & 4 deletions trunk/net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,8 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)
if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor)) {
if (!(skb = skb_unshare(skb, GFP_ATOMIC)) ||
(skb->ip_summed == CHECKSUM_PARTIAL &&
skb_checksum_help(skb))) {
sch->qstats.drops++;
return NET_XMIT_DROP;
}
skb_checksum_help(skb)))
return qdisc_drop(skb, sch);

skb->data[net_random() % skb_headlen(skb)] ^= 1<<(net_random() % 8);
}
Expand Down

0 comments on commit d0e1604

Please sign in to comment.