aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-07-29 23:42:53 -0400
committerDavid S. Miller <davem@davemloft.net>2018-09-10 13:06:54 -0400
commita8305bff685252e80b7c60f4f5e7dd2e63e38218 (patch)
tree3f8f073a642ad27c0921917e3b9e1622b9956478 /net/ipv4/ip_output.c
parent776f07ee303a5e13970cbfaed767e28cbab4002f (diff)
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/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 9c4e72e9c60a..c09219e7f230 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -278,7 +278,7 @@ static int ip_finish_output_gso(struct net *net, struct sock *sk,
278 struct sk_buff *nskb = segs->next; 278 struct sk_buff *nskb = segs->next;
279 int err; 279 int err;
280 280
281 segs->next = NULL; 281 skb_mark_not_on_list(segs);
282 err = ip_fragment(net, sk, segs, mtu, ip_finish_output2); 282 err = ip_fragment(net, sk, segs, mtu, ip_finish_output2);
283 283
284 if (err && ret == 0) 284 if (err && ret == 0)
@@ -684,7 +684,7 @@ int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
684 684
685 skb = frag; 685 skb = frag;
686 frag = skb->next; 686 frag = skb->next;
687 skb->next = NULL; 687 skb_mark_not_on_list(skb);
688 } 688 }
689 689
690 if (err == 0) { 690 if (err == 0) {