Eric Dumazet e11ecddf51 tcp: use TCP_SKB_CB(skb)->tcp_flags in input path
Input path of TCP do not currently uses TCP_SKB_CB(skb)->tcp_flags,
which is only used in output path.

tcp_recvmsg(), looks at tcp_hdr(skb)->syn for every skb found in receive queue,
and its unfortunate because this bit is located in a cache line right before
the payload.

We can simplify TCP by copying tcp flags into TCP_SKB_CB(skb)->tcp_flags.

This patch does so, and avoids the cache line miss in tcp_recvmsg()

Following patches will
- allow a segment with FIN being coalesced in tcp_try_coalesce()
- simplify tcp_collapse() by not copying the headers.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-15 14:41:07 -04:00
..
2014-09-10 12:40:10 -07:00
2014-07-01 23:46:21 -07:00
2014-08-22 12:23:11 -07:00
2014-09-10 12:40:10 -07:00
2014-06-04 22:46:38 -07:00
2014-09-07 16:07:25 -07:00
2014-09-01 21:49:08 -07:00
2014-09-13 12:30:26 -04:00
2014-08-13 18:13:19 -06:00
2014-09-10 14:00:58 -07:00