[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <529D7A82.3070207@huawei.com>
Date: Tue, 3 Dec 2013 14:30:26 +0800
From: Wang Weidong <wangweidong1@...wei.com>
To: David Miller <davem@...emloft.net>,
Neil Horman <nhorman@...driver.com>,
Vlad Yasevich <vyasevich@...il.com>
CC: Michael Tuexen <Michael.Tuexen@...chi.franken.de>,
<linux-sctp@...r.kernel.org>, <netdev@...r.kernel.org>,
<dingtianhong@...wei.com>
Subject: [PATCH] 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.
Suggested-by: Vlad Yasevich <vyasevich@...il.com>
Suggested-by: Michael Tuexen <Michael.Tuexen@...chi.franken.de>
Signed-off-by: Wang Weidong <wangweidong1@...wei.com>
---
net/sctp/transport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index e332efb..e580e34 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -573,7 +573,8 @@ void sctp_transport_burst_limited(struct sctp_transport *t)
u32 old_cwnd = t->cwnd;
u32 max_burst_bytes;
- if (t->burst_limited)
+ /* if the max_burst is 0, do notihing */
+ if (t->burst_limited || !asoc->max_burst)
return;
max_burst_bytes = t->flight_size + (asoc->max_burst * asoc->pathmtu);
--
1.7.12
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists