: [XFRM]: Convert xfrm_state hash linkage to hlists.
Subsystems (3)
David Miller
maintainerPATCH 4/10 : [XFRM]: Convert xfrm_state hash linkage to hlists.
[XFRM]: Convert xfrm_state hash linkage to hlists.
Signed-off-by David S. Miller <[email protected]>
--- include/net/xfrm.h | 4 +-- net/xfrm/xfrm_state.c | 71 +++++++++++++++++++++++++++---------------------- 2 files changed, 41 insertions(+), 34 deletions(-)
include/net/xfrm.h +2 -2
@@ -94,8 +94,8 @@ extern struct mutex xfrm_cfg_mutex;struct xfrm_state {/* Note: bydst is re-used during gc */ -struct list_head bydst; -struct list_head byspi; +struct hlist_node bydst; +struct hlist_node byspi;atomic_t refcnt;spinlock_t lock;
net/xfrm/xfrm_state.c +39 -32
217 lines not on this page · raw message
Signature · 1 line
1.4.2.rc2.g3e042