tcp: fix tcp_min_tso_segs sysctl
Subsystems (2)
PATCH 1/1 tcp: fix tcp_min_tso_segs sysctl
From: Eric Dumazet <[email protected]>
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 <[email protected]>
--- net/ipv4/sysctl_net_ipv4.c | 2 -- 1 file changed, 2 deletions(-)
net/ipv4/sysctl_net_ipv4.c +0 -2
@@ -31,7 +31,6 @@static int two =2 ;static int four =4 ;static int thousand =1000 ; -static int gso_max_segs =GSO_MAX_SEGS ;static int tcp_retr1_max =255 ;static int ip_local_port_range_min[] = {1 ,1 };static int ip_local_port_range_max[] = {65535 ,65535 };
@@ -1245,7 +1244,6 @@ static struct ctl_table ipv4_net_table[] = { .mode = 0644, .proc_handler = proc_dou8vec_minmax, .extra1 = SYSCTL_ONE, - .extra2 = &gso_max_segs, }, { .procname = "tcp_min_rtt_wlen",
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog