[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:
@@ -34,7 +34,6 @@
|
||||
|
||||
void skb_migrate(struct sk_buff_head *from,struct sk_buff_head *to)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
unsigned long flags;
|
||||
struct sk_buff *skb_from = (struct sk_buff *) from;
|
||||
struct sk_buff *skb_to = (struct sk_buff *) to;
|
||||
@@ -47,8 +46,6 @@ void skb_migrate(struct sk_buff_head *from,struct sk_buff_head *to)
|
||||
prev->next = skb_to;
|
||||
to->prev->next = from->next;
|
||||
to->prev = from->prev;
|
||||
for (skb = from->next; skb != skb_to; skb = skb->next)
|
||||
skb->list = to;
|
||||
to->qlen += from->qlen;
|
||||
spin_unlock(&to->lock);
|
||||
from->prev = skb_from;
|
||||
|
Reference in New Issue
Block a user