mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
sctp: disable max_burst when the max_burst is 0
As Michael pointed out that when max_burst is 0, it just disable max_burst. It declared in rfc6458#section-8.1.24. so add the check in sctp_transport_burst_limited, when it 0, just do nothing. Reviewed-by: Daniel Borkmann <[email protected]> Suggested-by: Vlad Yasevich <[email protected]> Suggested-by: Michael Tuexen <[email protected]> Signed-off-by: Wang Weidong <[email protected]> Acked-by: Neil Horman <[email protected]> Acked-by: Vlad Yasevich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
dd0df47dc3
commit
78ac814f12
1 changed files with 1 additions and 1 deletions
|
|
@ -573,7 +573,7 @@ void sctp_transport_burst_limited(struct sctp_transport *t)
|
|||
u32 old_cwnd = t->cwnd;
|
||||
u32 max_burst_bytes;
|
||||
|
||||
if (t->burst_limited)
|
||||
if (t->burst_limited || asoc->max_burst == 0)
|
||||
return;
|
||||
|
||||
max_burst_bytes = t->flight_size + (asoc->max_burst * asoc->pathmtu);
|
||||
|
|
|
|||
Loading…
Reference in a new issue