summaryrefslogtreecommitdiffstats
path: root/include/net/sctp
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2021-06-24 17:48:08 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-24 21:58:03 +0200
commit0dac127c05579854405ef14480936b32371ddaed (patch)
tree2fe112dfb28ca540d7fd0f58a6d8815c40e2f447 /include/net/sctp
parentMerge branch 'sja1110-doc' (diff)
downloadlinux-0dac127c05579854405ef14480936b32371ddaed.tar.xz
linux-0dac127c05579854405ef14480936b32371ddaed.zip
sctp: do black hole detection in search complete state
Currently the PLPMUTD probe will stop for a long period (interval * 30) after it enters search complete state. If there's a pmtu change on the route path, it takes a long time to be aware if the ICMP TooBig packet is lost or filtered. As it says in rfc8899#section-4.3: "A DPLPMTUD method MUST NOT rely solely on this method." (ICMP PTB message). This patch is to enable the other method for search complete state: "A PL can use the DPLPMTUD probing mechanism to periodically generate probe packets of the size of the current PLPMTU." With this patch, the probe will continue with the current pmtu every 'interval' until the PMTU_RAISE_TIMER 'timeout', which we implement by adding raise_count to raise the probe size when it counts to 30 and removing the SCTP_PL_COMPLETE check for PMTU_RAISE_TIMER. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r--include/net/sctp/structs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 9eaa701cda23..c4a4c1754be8 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -987,7 +987,8 @@ struct sctp_transport {
__u16 pmtu;
__u16 probe_size;
__u16 probe_high;
- __u8 probe_count;
+ __u8 probe_count:3;
+ __u8 raise_count:5;
__u8 state;
} pl; /* plpmtud related */