mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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: 0dac127c05
("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>
This commit is contained in:
parent
058e6e0ed0
commit
eacf078cf4
2 changed files with 6 additions and 1 deletions
|
@ -984,6 +984,7 @@ struct sctp_transport {
|
|||
} cacc;
|
||||
|
||||
struct {
|
||||
__u32 last_rtx_chunks;
|
||||
__u16 pmtu;
|
||||
__u16 probe_size;
|
||||
__u16 probe_high;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue