diff options
author | Yuchung Cheng <[email protected]> | 2018-04-17 23:18:46 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-04-19 13:05:16 -0400 |
commit | bef5767f37cfe42b1cf1ae60f01cfb4e16a7a2b8 (patch) | |
tree | 7b50df5aac4c33c0b4a1d360eb9d06216cdcfad3 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 415787d7799f4fccbe8d49cb0b8e5811be6b0389 (diff) |
tcp: better delivery accounting for SYN-ACK and SYN-data
the tcp_sock:delivered has inconsistent accounting for SYN and FIN.
1. it counts pure FIN
2. it counts pure SYN
3. it counts SYN-data twice
4. it does not count SYN-ACK
For congestion control perspective it does not matter much as C.C. only
cares about the difference not the aboslute value. But the next patch
would export this field to user-space so it's better to report the absolute
value w/o these caveats.
This patch counts SYN, SYN-ACK, or SYN-data delivery once always in
the "delivered" field.
Signed-off-by: Yuchung Cheng <[email protected]>
Reviewed-by: Neal Cardwell <[email protected]>
Reviewed-by: Soheil Hassas Yeganeh <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions