Commit Graph

6 Commits

Author SHA1 Message Date
Hongbo Li 963299648d net: namespaceify sysctl_tcp_rmem and sysctl_tcp_wmem
upstream commit: 356d1833b638bd465672aefeb71def3ab93fc17d

Note that when a new netns is created, it inherits its
sysctl_tcp_rmem and sysctl_tcp_wmem from initial netns.

This change is needed so that we can refine TCP rcvbuf autotuning,
to take RTT into consideration.

Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2020-01-02 11:34:10 +08:00
Hongbo Li c87ad92744 net: allow per netns sysctl_rmem and sysctl_wmem for protos
upstream commit: a3dcaf17ee54f1d01d22cc2b22cab0b4f60d78cf

As we want to gradually implement per netns sysctl_rmem and sysctl_wmem
on per protocol basis, add two new fields in struct proto,
and two new helpers : sk_get_wmem0() and sk_get_rmem0()

First user will be TCP. Then UDP and SCTP can be easily converted,
while DECNET probably wont get this support.

Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2020-01-02 11:33:14 +08:00
Hongbo Li d4b4a18384 net: namespaceify sysctl_tcp_workaround_signed_windows
upstream commit: ceef9ab6be7234f9e49f79769e0da88d1dccfcc7

Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2020-01-02 11:31:18 +08:00
Hongbo Li 4bd3c7c579 net: namespaceify sysctl_tcp_max_orphans
Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2020-01-02 11:29:45 +08:00
Hongbo Li 26fb4c44c9 net: namespaceify sysctl_tcp_no_delay_ack
isolate sysctl_tcp_no_delay_ack as net namespace

Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2020-01-02 11:29:03 +08:00
Xiaoming Gao 78a8c3c2c2 Init Repo base on 4.14.105 long term, and add base tlinux kernel interfaces
Signed-off-by: Xiaoming Gao <newtongao@tencent.com>
2020-01-02 10:51:04 +08:00