mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
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>
This commit is contained in:
parent
776f07ee30
commit
a8305bff68
22 changed files with 33 additions and 28 deletions
|
@ -535,7 +535,7 @@ static void ip_sublist_rcv_finish(struct list_head *head)
|
|||
/* Handle ip{6}_forward case, as sch_direct_xmit have
|
||||
* another kind of SKB-list usage (see validate_xmit_skb_list)
|
||||
*/
|
||||
skb->next = NULL;
|
||||
skb_mark_not_on_list(skb);
|
||||
dst_input(skb);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue