diff options
| author | Yuchung Cheng <[email protected]> | 2021-01-19 19:26:19 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-01-20 03:47:20 +0000 |
| commit | 9c30ae8398b0813e237bde387d67a7f74ab2db2d (patch) | |
| tree | d7bd663b98e76378c3a279078746b22962a30932 /tools/perf/builtin-script.c | |
| parent | net: dsa: b53: fix an off by one in checking "vlan->vid" (diff) | |
| download | kernel-9c30ae8398b0813e237bde387d67a7f74ab2db2d.tar.gz kernel-9c30ae8398b0813e237bde387d67a7f74ab2db2d.zip | |
tcp: fix TCP socket rehash stats mis-accounting
The previous commit 32efcc06d2a1 ("tcp: export count for rehash attempts")
would mis-account rehashing SNMP and socket stats:
a. During handshake of an active open, only counts the first
SYN timeout
b. After handshake of passive and active open, stop updating
after (roughly) TCP_RETRIES1 recurring RTOs
c. After the socket aborts, over count timeout_rehash by 1
This patch fixes this by checking the rehash result from sk_rethink_txhash.
Fixes: 32efcc06d2a1 ("tcp: export count for rehash attempts")
Signed-off-by: Yuchung Cheng <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Neal Cardwell <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
