]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: move hlist_node and hashent out of sctp_ep_common
authorXin Long <lucien.xin@gmail.com>
Tue, 21 Dec 2021 21:40:30 +0000 (16:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2021 11:15:30 +0000 (11:15 +0000)
commitb4588a52e6f564c77df89372bc47b3cb5626819d
tree61f4a068e6fa93493bcaeca252a01cbb9aed7698
parent15fe061546fed05a19bd5dad9253fb6ee9e68936
sctp: move hlist_node and hashent out of sctp_ep_common

Struct sctp_ep_common is included in both asoc and ep, but hlist_node
and hashent are only needed by ep after asoc_hashtable was dropped by
Commit 9f94203b9212 ("sctp: drop the old assoc hashtable of sctp").

So it is better to move hlist_node and hashent from sctp_ep_common to
sctp_endpoint, and it saves some space for each asoc.

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