]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tcp: fix tcp_min_tso_segs sysctl
authorEric Dumazet <edumazet@google.com>
Mon, 29 Mar 2021 17:40:49 +0000 (10:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 23:33:48 +0000 (16:33 -0700)
commitd24f511b04b8b159b705ec32a3b8782667d1b06a
treec9c5e1680de700ed403b570656a6be71c342185d
parent6289a98f0817a4a457750d6345e754838eae9439
tcp: fix tcp_min_tso_segs sysctl

tcp_min_tso_segs is now stored in u8, so max value is 255.

255 limit is enforced by proc_dou8vec_minmax().

We can therefore remove the gso_max_segs variable.

Fixes: 47996b489bdc ("tcp: convert elligible sysctls to u8")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/sysctl_net_ipv4.c