]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: refactor struct tcp_skb_cb
authorLawrence Brakmo <brakmo@fb.com>
Sat, 7 May 2016 03:35:35 +0000 (20:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2016 04:03:26 +0000 (00:03 -0400)
commit4544688e8b91db54490352f7cac14f439fdbfa0c
tree87760e042352445348961f6e4326d11a0e6b4a20
parent1d60e8bfa11beb380bc8ade97537bcb50c0eacf5
tcp: refactor struct tcp_skb_cb

Refactor tcp_skb_cb to create two overlaping areas to store
state for incoming or outgoing skbs based on comments by
Neal Cardwell to tcp_nv patch:

   AFAICT this patch would not require an increase in the size of
   sk_buff cb[] if it were to take advantage of the fact that the
   tcp_skb_cb header.h4 and header.h6 fields are only used in the packet
   reception code path, and this in_flight field is only used on the
   transmit side.

Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h