tcp: introduce tcp_data_queue_ofo
authorEric Dumazet <[email protected]>
Sun, 18 Mar 2012 11:06:44 +0000 (11:06 +0000)
committerDavid S. Miller <[email protected]>
Mon, 19 Mar 2012 20:53:07 +0000 (16:53 -0400)
commite86b291962cbf477e35d983d312428cf737bc0f8
tree11520ec988be8644df08684004512c35881e21b5
parentde1288041d01120559d53ebd98e0f92476ee56d3
tcp: introduce tcp_data_queue_ofo

Split tcp_data_queue() in two parts for better readability.

tcp_data_queue_ofo() is responsible for queueing incoming skb into out
of order queue.

Change code layout so that the skb_set_owner_r() is performed only if
skb is not dropped.

This is a preliminary patch before "reduce out_of_order memory use"
following patch.

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Neal Cardwell <[email protected]>
Cc: Yuchung Cheng <[email protected]>
Cc: H.K. Jerry Chu <[email protected]>
Cc: Tom Herbert <[email protected]>
Cc: Ilpo Järvinen <[email protected]>
Acked-by: Neal Cardwell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/tcp_input.c