]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sctp: merge sctp_stream_new and sctp_stream_init
authorXin Long <lucien.xin@gmail.com>
Wed, 31 May 2017 08:36:32 +0000 (16:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jun 2017 17:56:26 +0000 (13:56 -0400)
commitff356414dc006170153c79434eb81d130c03beec
tree55ec0eab1ade81782ef50358fb2ae2739c57251f
parentcee360ab4dd66fc1de33a5fa1cb418fa21c27ce3
sctp: merge sctp_stream_new and sctp_stream_init

Since last patch, sctp doesn't need to alloc memory for asoc->stream any
more. sctp_stream_new and sctp_stream_init both are used to alloc memory
for stream.in or stream.out, and their names are also confusing.

This patch is to merge them into sctp_stream_init, and only pass stream
and streamcnt parameters into it, instead of the whole asoc.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/associola.c
net/sctp/sm_make_chunk.c
net/sctp/stream.c