Skip to content

sctp: add receiver-side procedures for stream reconf asoc reset and add streams and response

Xin Long linux-sctp netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 8 repliesIn review

Changes in v2 from the cover letter

- put these into a smaller group.
- rename the titles of the commits and improve some changelogs.
- improve sctp_chunk_lookup_strreset_param and reuse it in patch 4/7.
- process addstrm outreq as the ack of in addstrm inreq if strreset_chunk is not NULL in patch 4/7.
- remove the stream alloc when sending addstrm inreq, and the process in peer will response it by sending a addstrm out request back in patch 5/7.
- adjust the process of addstrm in resp to fit in the codes that only alloc streams through addstrm outreq in patch 6/7.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7sctp: add support for generating assoc reset event notificationinclude/net/sctp/ulpevent.h include/uapi/linux/sctp.h net/sctp/ulpevent.c+47 -00 replies
2/7sctp: implement receiver-side procedures for the SSN/TSN Reset Request Parameterinclude/net/sctp/sm.h net/sctp/sm_statefuns.c net/sctp/stream.c+86 -06 replies
3/7sctp: add support for generating add stream change event notificationinclude/net/sctp/ulpevent.h include/uapi/linux/sctp.h net/sctp/ulpevent.c+47 -00 replies
4/7sctp: implement receiver-side procedures for the Add Outgoing Streams Request Parameterinclude/net/sctp/sm.h net/sctp/sm_statefuns.c net/sctp/stream.c+86 -100 replies
5/7sctp: implement receiver-side procedures for the Add Incoming Streams Request Parameterinclude/net/sctp/sm.h net/sctp/sm_statefuns.c net/sctp/stream.c+69 -120 replies
6/7sctp: implement receiver-side procedures for the Reconf Response Parameterinclude/net/sctp/sm.h net/sctp/sm_statefuns.c net/sctp/stream.c+161 -30 replies
7/7sctp: add get and set sockopt for reconf_enableinclude/uapi/linux/sctp.h net/sctp/socket.c net/sctp/sysctl.c+89 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 net-next 0/7] sctp: add receiver-side procedures for stream reconf asoc reset and add streams and response

Patch 2/7, 4/7, 5/7, 6/7 are to implement the process of asoc reset request, add streams requests and all kinds of responses.

Patch 1/7 and 3/7 are ahead of 2/7 and 4/7 to add two event notification for asoc reset and add streams.

Patch 7/7 is the last patch for implementing rfc6525 sctp stream reconf to add sysctl and sockopt interface for users to enable sctp stream reconf.

After this patchset, sctp stream reconf will be able to work as rfc6525.

v1->v2:
- put these into a smaller group.
- rename the titles of the commits and improve some changelogs.
- improve sctp_chunk_lookup_strreset_param and reuse it in patch 4/7.
- process addstrm outreq as the ack of in addstrm inreq if strreset_chunk is not NULL in patch 4/7.
- remove the stream alloc when sending addstrm inreq, and the process in peer will response it by sending a addstrm out request back in patch 5/7.
- adjust the process of addstrm in resp to fit in the codes that only alloc streams through addstrm outreq in patch 6/7.

Xin Long (7):
sctp: add support for generating assoc reset event notification
sctp: implement receiver-side procedures for the SSN/TSN Reset Request
Parameter
sctp: add support for generating add stream change event notification
sctp: implement receiver-side procedures for the Add Outgoing Streams
Request Parameter
sctp: implement receiver-side procedures for the Add Incoming Streams
Request Parameter
sctp: implement receiver-side procedures for the Reconf Response
Parameter
sctp: add get and set sockopt for reconf_enable

 include/net/sctp/sm.h       |  16 ++
 include/net/sctp/ulpevent.h |   8 +
 include/uapi/linux/sctp.h   |  31 ++++
 net/sctp/sm_statefuns.c     |  15 +-
 net/sctp/socket.c           |  81 +++++++++
 net/sctp/stream.c           | 396 +++++++++++++++++++++++++++++++++++++++++---
 net/sctp/sysctl.c           |   7 +
 net/sctp/ulpevent.c         |  56 +++++++
 8 files changed, 585 insertions(+), 25 deletions(-)
Signature · 1 line
2.1.0