diff options
author | Wen Gu <[email protected]> | 2024-05-31 16:54:17 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-06-05 09:42:57 +0100 |
commit | fb0aa0781a5f457e3864da68af52c3b1f4f7fd8f (patch) | |
tree | 6c3472b6da62b25f61c3a4f47bed4bb4ec2f03ae /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8b0f7410942cdc420c4557eda02bfcdf60ccec17 (diff) |
net/smc: avoid overwriting when adjusting sock bufsizes
When copying smc settings to clcsock, avoid setting clcsock's sk_sndbuf
to sysctl_tcp_wmem[1], since this may overwrite the value set by
tcp_sndbuf_expand() in TCP connection establishment.
And the other setting sk_{snd|rcv}buf to sysctl value in
smc_adjust_sock_bufsizes() can also be omitted since the initialization
of smc sock and clcsock has set sk_{snd|rcv}buf to smc.sysctl_{w|r}mem
or ipv4_sysctl_tcp_{w|r}mem[1].
Fixes: 30c3c4a4497c ("net/smc: Use correct buffer sizes when switching between TCP and SMC")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wen Gu <[email protected]>
Reviewed-by: Wenjia Zhang <[email protected]>
Reviewed-by: Gerd Bayer <[email protected]>, too.
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions