tcp: add a sysctl to config the tcp_default_init_rwnd
[firefly-linux-kernel-4.4.55.git] / net / ipv4 / tcp_input.c
index d4c51158470f5afb7cee8a5c875b5f9ed5b04e14..da34f830f4bc17ba611a6151d4feebc4ae5faa72 100644 (file)
@@ -102,6 +102,7 @@ int sysctl_tcp_thin_dupack __read_mostly;
 int sysctl_tcp_moderate_rcvbuf __read_mostly = 1;
 int sysctl_tcp_early_retrans __read_mostly = 3;
 int sysctl_tcp_invalid_ratelimit __read_mostly = HZ/2;
+int sysctl_tcp_default_init_rwnd __read_mostly = TCP_INIT_CWND * 2;
 
 #define FLAG_DATA              0x01 /* Incoming frame contained data.          */
 #define FLAG_WIN_UPDATE                0x02 /* Incoming ACK was a window update.       */