sctp: disable max_burst when the max_burst is 0
authorwangweidong <wangweidong1@huawei.com>
Wed, 4 Dec 2013 09:32:39 +0000 (17:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 01:55:54 +0000 (20:55 -0500)
commit78ac814f120da17053b3d52aa215c7c547c5e77d
treec76badb03e31a435f95538416bbb60cffbf37435
parentdd0df47dc3548bf2dfdc7b4d65f49b452a9d9701
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 <dborkman@redhat.com>
Suggested-by: Vlad Yasevich <vyasevich@gmail.com>
Suggested-by: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/transport.c