Skip to contentSkip to conversation

: [XFRM]: Convert xfrm_state hash linkage to hlists.

PATCH In review David Miller 1 participant 1 message Aug 15, 2006

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 4/10 : [XFRM]: Convert xfrm_state hash linkage to hlists.

[XFRM]: Convert xfrm_state hash linkage to hlists.

---
 include/net/xfrm.h    |    4 +--
 net/xfrm/xfrm_state.c |   71 +++++++++++++++++++++++++++----------------------
 2 files changed, 41 insertions(+), 34 deletions(-)
include/net/xfrm.h +2 -2
index 2cbaee7..e2bb0a9 100644
@@ -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