diff options
-rw-r--r-- | include/linux/skbuff.h | 12 | ||||
-rw-r--r-- | include/net/tcp.h | 2 | ||||
-rw-r--r-- | net/core/skbuff.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
4 files changed, 6 insertions, 12 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index bb107ab675fc..83c851846829 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -697,6 +697,9 @@ static inline void __skb_queue_after(struct sk_buff_head *list, | |||
697 | __skb_insert(newsk, prev, prev->next, list); | 697 | __skb_insert(newsk, prev, prev->next, list); |
698 | } | 698 | } |
699 | 699 | ||
700 | extern void skb_append(struct sk_buff *old, struct sk_buff *newsk, | ||
701 | struct sk_buff_head *list); | ||
702 | |||
700 | /** | 703 | /** |
701 | * __skb_queue_head - queue a buffer at the list head | 704 | * __skb_queue_head - queue a buffer at the list head |
702 | * @list: list to use | 705 | * @list: list to use |
@@ -739,15 +742,6 @@ static inline void __skb_queue_tail(struct sk_buff_head *list, | |||
739 | } | 742 | } |
740 | 743 | ||
741 | /* | 744 | /* |
742 | * Place a packet after a given packet in a list. | ||
743 | */ | ||
744 | extern void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list); | ||
745 | static inline void __skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list) | ||
746 | { | ||
747 | __skb_insert(newsk, old, old->next, list); | ||
748 | } | ||
749 | |||
750 | /* | ||
751 | * remove sk_buff from list. _Must_ be called atomically, and with | 745 | * remove sk_buff from list. _Must_ be called atomically, and with |
752 | * the list known.. | 746 | * the list known.. |
753 | */ | 747 | */ |
diff --git a/include/net/tcp.h b/include/net/tcp.h index 58d82822414d..2ab350eca02e 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1247,7 +1247,7 @@ static inline void tcp_insert_write_queue_after(struct sk_buff *skb, | |||
1247 | struct sk_buff *buff, | 1247 | struct sk_buff *buff, |
1248 | struct sock *sk) | 1248 | struct sock *sk) |
1249 | { | 1249 | { |
1250 | __skb_append(skb, buff, &sk->sk_write_queue); | 1250 | __skb_queue_after(&sk->sk_write_queue, skb, buff); |
1251 | } | 1251 | } |
1252 | 1252 | ||
1253 | /* Insert skb between prev and next on the write queue of sk. */ | 1253 | /* Insert skb between prev and next on the write queue of sk. */ |
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) |