]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: define the member stream as an object instead of pointer in asoc
authorXin Long <lucien.xin@gmail.com>
Wed, 31 May 2017 08:36:31 +0000 (16:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jun 2017 17:56:26 +0000 (13:56 -0400)
commit1a32502d2f41862d98b95c06ce54166bd65c88f4
treedb9b8575e7392b314e94a946590b71bb5c856e64
parent30945ccef75571e9b12d3ecd9aa11c337d870bb0
sctp: define the member stream as an object instead of pointer in asoc

As Marcelo's suggestion, stream is a fixed size member of asoc and would
not grow with more streams. To avoid an allocation for it, this patch is
to define it as an object instead of pointer and update the places using
it, also create sctp_stream_update() called in sctp_assoc_update() to
migrate the stream info from one stream to another.

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/chunk.c
net/sctp/outqueue.c
net/sctp/proc.c
net/sctp/sm_make_chunk.c
net/sctp/sm_statefuns.c
net/sctp/socket.c
net/sctp/stream.c
net/sctp/ulpqueue.c