diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-04-14 03:05:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 03:05:09 -0400 |
commit | 7de6c033367ab86f39c7723392caf73325cbf286 (patch) | |
tree | e05d84e6e02b7a0245bfa62e02835882ffdffa48 /net | |
parent | bf299275882624b1908521ee8074df85160e9679 (diff) |
[SKB]: __skb_append = __skb_queue_after
This expresses __skb_append in terms of __skb_queue_after, exploiting that
__skb_append(old, new, list) = __skb_queue_after(list, old, new).
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/skbuff.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index e4259215607f..4cd12d99b12e 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -1860,7 +1860,7 @@ void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head | |||
1860 | unsigned long flags; | 1860 | unsigned long flags; |
1861 | 1861 | ||
1862 | spin_lock_irqsave(&list->lock, flags); | 1862 | spin_lock_irqsave(&list->lock, flags); |
1863 | __skb_append(old, newsk, list); | 1863 | __skb_queue_after(list, old, newsk); |
1864 | spin_unlock_irqrestore(&list->lock, flags); | 1864 | spin_unlock_irqrestore(&list->lock, flags); |
1865 | } | 1865 | } |
1866 | 1866 | ||
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 6e46b4c0f28c..743611956045 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -3968,7 +3968,7 @@ drop: | |||
3968 | u32 end_seq = TCP_SKB_CB(skb)->end_seq; | 3968 | u32 end_seq = TCP_SKB_CB(skb)->end_seq; |
3969 | 3969 | ||
3970 | if (seq == TCP_SKB_CB(skb1)->end_seq) { | 3970 | if (seq == TCP_SKB_CB(skb1)->end_seq) { |
3971 | __skb_append(skb1, skb, &tp->out_of_order_queue); | 3971 | __skb_queue_after(&tp->out_of_order_queue, skb1, skb); |
3972 | 3972 | ||
3973 | if (!tp->rx_opt.num_sacks || | 3973 | if (!tp->rx_opt.num_sacks || |
3974 | tp->selective_acks[0].end_seq != seq) | 3974 | tp->selective_acks[0].end_seq != seq) |