sctp: prepare asoc stream for stream reconf
authorXin Long <lucien.xin@gmail.com>
Fri, 6 Jan 2017 14:18:33 +0000 (22:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jan 2017 02:07:26 +0000 (21:07 -0500)
commita83863174a6137fb3e03f279c9dcdba9e35315d0
tree0d0a508f3b8d59486d0faf49f7a7eee2d303a612
parentdf560056d960a3e164c179d89770d5a51b798537
sctp: prepare asoc stream for stream reconf

sctp stream reconf, described in RFC 6525, needs a structure to
save per stream information in assoc, like stream state.

In the future, sctp stream scheduler also needs it to save some
stream scheduler params and queues.

This patchset is to prepare the stream array in assoc for stream
reconf. It defines sctp_stream that includes stream arrays inside
to replace ssnmap.

Note that we use different structures for IN and OUT streams, as
the members in per OUT stream will get more and more different
from per IN stream.

v1->v2:
  - put these patches into a smaller group.
v2->v3:
  - define sctp_stream to contain stream arrays, and create stream.c
    to put stream-related functions.
  - merge 3 patches into 1, as new sctp_stream has the same name
    with before.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
include/net/sctp/structs.h
net/sctp/Makefile
net/sctp/associola.c
net/sctp/objcnt.c
net/sctp/sm_make_chunk.c
net/sctp/sm_statefuns.c
net/sctp/ssnmap.c [deleted file]
net/sctp/stream.c [new file with mode: 0644]
net/sctp/ulpqueue.c