diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-10-22 21:00:33 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-10-22 21:00:33 -0700 |
commit | 4e8a5201506423e0241202de1349422af4260296 (patch) | |
tree | e562a6cdbee37e3805551af92b264fa93d722c4b /net/sched | |
parent | 6a43487f43fbd4e03c606dcb62b98374a3af88fc (diff) | |
download | op-kernel-dev-4e8a5201506423e0241202de1349422af4260296.zip op-kernel-dev-4e8a5201506423e0241202de1349422af4260296.tar.gz |
[PKT_SCHED] netem: Orphan SKB when adding to queue.
The networking emulator can queue SKBs for a very long
time, so if you're using netem on the sender side for
large bandwidth/delay product testing, the SKB socket
send queue sizes become artificially larger.
Correct this by calling skb_orphan() in netem_enqueue().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_netem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 45939ba..ef8874b 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -170,6 +170,8 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch) return NET_XMIT_BYPASS; } + skb_orphan(skb); + /* * If we need to duplicate packet, then re-insert at top of the * qdisc tree, since parent queuer expects that only one |