• Xin Long's avatar
    sctp: improve the events for sctp stream adding · 8220c870
    Xin Long authored
    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: 50a41591 ("sctp: implement receiver-side procedures for the Add Outgoing Streams Request Parameter")
    Fixes: c5c4ebb3 ("sctp: implement receiver-side procedures for the Add Incoming Streams Request Parameter")
    Reported-by: default avatarYing Xu <yinxu@redhat.com>
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8220c870
stream.c 28.1 KB