diff options
author | 2021-07-25 13:42:51 -0400 | |
---|---|---|
committer | 2021-07-25 23:06:02 +0100 | |
commit | eacf078cf4c7aa23e9591738511f142cc39b5186 (patch) | |
tree | 0004a2401d2477cc7176caef1efa159af62df47f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | sctp: improve the code for pmtu probe send and recv update (diff) | |
download | wireguard-linux-eacf078cf4c7aa23e9591738511f142cc39b5186.tar.xz wireguard-linux-eacf078cf4c7aa23e9591738511f142cc39b5186.zip |
sctp: send pmtu probe only if packet loss in Search Complete state
This patch is to introduce last_rtx_chunks into sctp_transport to detect
if there's any packet retransmission/loss happened by checking against
asoc's rtx_data_chunks in sctp_transport_pl_send().
If there is, namely, transport->last_rtx_chunks != asoc->rtx_data_chunks,
the pmtu probe will be sent out. Otherwise, increment the pl.raise_count
and return when it's in Search Complete state.
With this patch, if in Search Complete state, which is a long period, it
doesn't need to keep probing the current pmtu unless there's data packet
loss. This will save quite some traffic.
v1->v2:
- add the missing Fixes tag.
Fixes: 0dac127c0557 ("sctp: do black hole detection in search complete state")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions