diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/xfrm.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index afa508d92c9..ed7c9747059 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -204,8 +204,7 @@ struct xfrm_type; | |||
204 | struct xfrm_dst; | 204 | struct xfrm_dst; |
205 | struct xfrm_policy_afinfo { | 205 | struct xfrm_policy_afinfo { |
206 | unsigned short family; | 206 | unsigned short family; |
207 | rwlock_t lock; | 207 | struct xfrm_type *type_map[256]; |
208 | struct xfrm_type_map *type_map; | ||
209 | struct dst_ops *dst_ops; | 208 | struct dst_ops *dst_ops; |
210 | void (*garbage_collect)(void); | 209 | void (*garbage_collect)(void); |
211 | int (*dst_lookup)(struct xfrm_dst **dst, struct flowi *fl); | 210 | int (*dst_lookup)(struct xfrm_dst **dst, struct flowi *fl); |
@@ -232,7 +231,6 @@ extern int __xfrm_state_delete(struct xfrm_state *x); | |||
232 | 231 | ||
233 | struct xfrm_state_afinfo { | 232 | struct xfrm_state_afinfo { |
234 | unsigned short family; | 233 | unsigned short family; |
235 | rwlock_t lock; | ||
236 | struct list_head *state_bydst; | 234 | struct list_head *state_bydst; |
237 | struct list_head *state_byspi; | 235 | struct list_head *state_byspi; |
238 | int (*init_flags)(struct xfrm_state *x); | 236 | int (*init_flags)(struct xfrm_state *x); |
@@ -264,11 +262,6 @@ struct xfrm_type | |||
264 | u32 (*get_max_size)(struct xfrm_state *, int size); | 262 | u32 (*get_max_size)(struct xfrm_state *, int size); |
265 | }; | 263 | }; |
266 | 264 | ||
267 | struct xfrm_type_map { | ||
268 | rwlock_t lock; | ||
269 | struct xfrm_type *map[256]; | ||
270 | }; | ||
271 | |||
272 | extern int xfrm_register_type(struct xfrm_type *type, unsigned short family); | 265 | extern int xfrm_register_type(struct xfrm_type *type, unsigned short family); |
273 | extern int xfrm_unregister_type(struct xfrm_type *type, unsigned short family); | 266 | extern int xfrm_unregister_type(struct xfrm_type *type, unsigned short family); |
274 | extern struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family); | 267 | extern struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family); |