From: Yuchung Cheng Date: Mon, 12 May 2014 03:22:11 +0000 (-0700) Subject: tcp: use tcp_v4_send_synack on first SYN-ACK X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~239^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=843f4a55e336e6d0c7bb92e7f9621535bc8d5fcd;p=pandora-kernel.git tcp: use tcp_v4_send_synack on first SYN-ACK To avoid large code duplication in IPv6, we need to first simplify the complicate SYN-ACK sending code in tcp_v4_conn_request(). To use tcp_v4(6)_send_synack() to send all SYN-ACKs, we need to initialize the mini socket's receive window before trying to create the child socket and/or building the SYN-ACK packet. So we move that initialization from tcp_make_synack() to tcp_v4_conn_request() as a new function tcp_openreq_init_req_rwin(). After this refactoring the SYN-ACK sending code is simpler and easier to implement Fast Open for IPv6. Signed-off-by: Yuchung Cheng Signed-off-by: Daniel Lee Signed-off-by: Jerry Chu Acked-by: Neal Cardwell Signed-off-by: David S. Miller --- Reading git-diff-tree failed