diff options
author | David S. Miller <davem@davemloft.net> | 2018-07-30 05:42:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-10 19:06:54 +0200 |
commit | a8305bff685252e80b7c60f4f5e7dd2e63e38218 (patch) | |
tree | 3f8f073a642ad27c0921917e3b9e1622b9956478 /net/sched/sch_netem.c | |
parent | brcmfmac: Use __skb_peek(). (diff) | |
download | linux-a8305bff685252e80b7c60f4f5e7dd2e63e38218.tar.xz linux-a8305bff685252e80b7c60f4f5e7dd2e63e38218.zip |
net: Add and use skb_mark_not_on_list().
An SKB is not on a list if skb->next is NULL.
Codify this convention into a helper function and use it
where we are dequeueing an SKB and need to mark it as such.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_netem.c')
-rw-r--r-- | net/sched/sch_netem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index b9541ce4d672..506e1960ed7f 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -568,7 +568,7 @@ finish_segs: if (segs) { while (segs) { skb2 = segs->next; - segs->next = NULL; + skb_mark_not_on_list(segs); qdisc_skb_cb(segs)->pkt_len = segs->len; last_len = segs->len; rc = qdisc_enqueue(segs, sch, to_free); |