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)
commit3d3b2f57d4447e6e9f4096ad01d0e4129f7bc7e9
tree61f4a068e6fa93493bcaeca252a01cbb9aed7698
parente087cba11677217bf100888bc679d3013abffa5e
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 b5eff7128366 ("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