Re: [Patch v3 2/3] ipv4: Namespaceify tcp_fastopen_key knob

2017-09-20 Thread David Miller
From: Haishuang Yan Date: Tue, 19 Sep 2017 17:38:15 +0800 > @@ -128,6 +130,8 @@ struct netns_ipv4 { > struct inet_timewait_death_row tcp_death_row; > int sysctl_max_syn_backlog; > int sysctl_tcp_fastopen; > + struct tcp_fastopen_context __rcu *tcp_fastopen_ctx; > + spinl

[Patch v3 2/3] ipv4: Namespaceify tcp_fastopen_key knob

2017-09-19 Thread Haishuang Yan
Different namespace application might require different tcp_fastopen_key independently of the host. Tested: 1. Container namespace: # cat /proc/sys/net/ipv4/tcp_fastopen_key: 2817fff2-f803cf97-eadfd1f3-78c0992b cookie key in tcp syn packets: Fast Open Cookie Kind: TCP Fast Open Cookie (34)