]> 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)
commit78c4b1d75cbaab77947dadc263b6d614c17bb7ba
treedb9b8575e7392b314e94a946590b71bb5c856e64
parent29bc1356c05c70972583ec0d0e2bd6da7724c5f1
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