]> git.baikalelectronics.ru Git - kernel.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)
commita921cf6bb28b60fe570b2187b7f0f59cfc25e9e9
treec9c5e1680de700ed403b570656a6be71c342185d
parent2b0f247a9603b14a438afd2846937bcd1dcb3b1a
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