]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: improve the events for sctp stream adding
authorXin Long <lucien.xin@gmail.com>
Mon, 21 Jan 2019 18:40:12 +0000 (02:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 02:13:57 +0000 (18:13 -0800)
commit3545382c57e879973d0b1e07772f9f6f3e4c9205
tree21fe38f0c83ed2147736e4ba16f33f69f2c7317e
parent1c2046d1996de257fbc83634e4c5cec387fdb6fd
sctp: improve the events for sctp stream adding

This patch is to improve sctp stream adding events in 2 places:

  1. In sctp_process_strreset_addstrm_out(), move up SCTP_MAX_STREAM
     and in stream allocation failure checks, as the adding has to
     succeed after reconf_timer stops for the in stream adding
     request retransmission.

  3. In sctp_process_strreset_addstrm_in(), no event should be sent,
     as no in or out stream is added here.

Fixes: 0f70823bd2b7 ("sctp: implement receiver-side procedures for the Add Outgoing Streams Request Parameter")
Fixes: b40446d3821b ("sctp: implement receiver-side procedures for the Add Incoming Streams Request Parameter")
Reported-by: Ying Xu <yinxu@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream.c