diff options
author | Xin Long <lucien.xin@gmail.com> | 2021-12-22 00:40:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-23 14:15:30 +0300 |
commit | 3d3b2f57d4447e6e9f4096ad01d0e4129f7bc7e9 (patch) | |
tree | 61f4a068e6fa93493bcaeca252a01cbb9aed7698 /include/net/sctp/sctp.h | |
parent | e087cba11677217bf100888bc679d3013abffa5e (diff) | |
download | linux-3d3b2f57d4447e6e9f4096ad01d0e4129f7bc7e9.tar.xz |
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>
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r-- | include/net/sctp/sctp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 189fdb9db162..33cf4789009f 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -510,8 +510,8 @@ static inline int sctp_ep_hashfn(struct net *net, __u16 lport) return (net_hash_mix(net) + lport) & (sctp_ep_hashsize - 1); } -#define sctp_for_each_hentry(epb, head) \ - hlist_for_each_entry(epb, head, node) +#define sctp_for_each_hentry(ep, head) \ + hlist_for_each_entry(ep, head, node) /* Is a socket of this style? */ #define sctp_style(sk, style) __sctp_style((sk), (SCTP_SOCKET_##style)) |