mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
[NET]: Kill skb->list
Remove the "list" member of struct sk_buff, as it is entirely redundant. All SKB list removal callers know which list the SKB is on, so storing this in sk_buff does nothing other than taking up some space. Two tricky bits were SCTP, which I took care of, and two ATM drivers which Francois Romieu <romieu@fr.zoreil.com> fixed up. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
This commit is contained in:
parent
6869c4d8e0
commit
8728b834b2
29 changed files with 229 additions and 283 deletions
|
@ -286,16 +286,16 @@ void unix_gc(void)
|
|||
skb = skb_peek(&s->sk_receive_queue);
|
||||
while (skb &&
|
||||
skb != (struct sk_buff *)&s->sk_receive_queue) {
|
||||
nextsk=skb->next;
|
||||
nextsk = skb->next;
|
||||
/*
|
||||
* Do we have file descriptors ?
|
||||
*/
|
||||
if(UNIXCB(skb).fp)
|
||||
{
|
||||
__skb_unlink(skb, skb->list);
|
||||
__skb_queue_tail(&hitlist,skb);
|
||||
if (UNIXCB(skb).fp) {
|
||||
__skb_unlink(skb,
|
||||
&s->sk_receive_queue);
|
||||
__skb_queue_tail(&hitlist, skb);
|
||||
}
|
||||
skb=nextsk;
|
||||
skb = nextsk;
|
||||
}
|
||||
spin_unlock(&s->sk_receive_queue.lock);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue