aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-09-22 00:28:51 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-22 00:28:51 -0400
commit43f59c89399fd76883a06c551f24794e98409432 (patch)
tree7ef8ac7047ea5e74c9d522d6438d03fb69a3ba67 /net/ipv4/tcp_input.c
parentf5fff5dc8a7a3f395b0525c02ba92c95d42b7390 (diff)
net: Remove __skb_insert() calls outside of skbuff internals.
This minor cleanup simplifies later changes which will convert struct sk_buff and friends over to using struct list_head. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 85627f83665f..cbfe13d5f423 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4156,7 +4156,7 @@ drop:
4156 skb1 = skb1->prev; 4156 skb1 = skb1->prev;
4157 } 4157 }
4158 } 4158 }
4159 __skb_insert(skb, skb1, skb1->next, &tp->out_of_order_queue); 4159 __skb_queue_after(&tp->out_of_order_queue, skb1, skb);
4160 4160
4161 /* And clean segments covered by new one as whole. */ 4161 /* And clean segments covered by new one as whole. */
4162 while ((skb1 = skb->next) != 4162 while ((skb1 = skb->next) !=
@@ -4254,7 +4254,7 @@ tcp_collapse(struct sock *sk, struct sk_buff_head *list,
4254 memcpy(nskb->head, skb->head, header); 4254 memcpy(nskb->head, skb->head, header);
4255 memcpy(nskb->cb, skb->cb, sizeof(skb->cb)); 4255 memcpy(nskb->cb, skb->cb, sizeof(skb->cb));
4256 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; 4256 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start;
4257 __skb_insert(nskb, skb->prev, skb, list); 4257 __skb_queue_before(list, skb, nskb);
4258 skb_set_owner_r(nskb, sk); 4258 skb_set_owner_r(nskb, sk);
4259 4259
4260 /* Copy data, releasing collapsed skbs. */ 4260 /* Copy data, releasing collapsed skbs. */