Lines Matching defs:net
118 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, in __xfrm_dst_lookup()
142 struct net *net = xs_net(x); in xfrm_dst_lookup() local
280 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
348 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash()
354 static void __get_hash_thresh(struct net *net, in __get_hash_thresh()
375 static struct hlist_head *policy_hash_bysel(struct net *net, in policy_hash_bysel()
392 static struct hlist_head *policy_hash_direct(struct net *net, in policy_hash_direct()
408 static void xfrm_dst_hash_transfer(struct net *net, in xfrm_dst_hash_transfer()
465 static void xfrm_bydst_resize(struct net *net, int dir) in xfrm_bydst_resize()
490 static void xfrm_byidx_resize(struct net *net, int total) in xfrm_byidx_resize()
515 static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) in xfrm_bydst_should_resize()
530 static inline int xfrm_byidx_should_resize(struct net *net, int total) in xfrm_byidx_should_resize()
541 void xfrm_spd_getinfo(struct net *net, struct xfrmk_spdinfo *si) in xfrm_spd_getinfo()
559 struct net *net = container_of(work, struct net, xfrm.policy_hash_work); in xfrm_hash_resize() local
577 struct net *net = container_of(work, struct net, in xfrm_hash_rebuild() local
649 void xfrm_policy_hash_rebuild(struct net *net) in xfrm_policy_hash_rebuild()
657 static u32 xfrm_gen_index(struct net *net, int dir, u32 index) in xfrm_gen_index()
749 struct net *net = xp_net(policy); in xfrm_policy_insert() local
813 struct xfrm_policy *xfrm_policy_bysel_ctx(struct net *net, u32 mark, u8 type, in xfrm_policy_bysel_ctx()
852 struct xfrm_policy *xfrm_policy_byid(struct net *net, u32 mark, u8 type, in xfrm_policy_byid()
893 xfrm_policy_flush_secctx_check(struct net *net, u8 type, bool task_valid) in xfrm_policy_flush_secctx_check()
931 xfrm_policy_flush_secctx_check(struct net *net, u8 type, bool task_valid) in xfrm_policy_flush_secctx_check()
937 int xfrm_policy_flush(struct net *net, u8 type, bool task_valid) in xfrm_policy_flush()
996 int xfrm_policy_walk(struct net *net, struct xfrm_policy_walk *walk, in xfrm_policy_walk()
1051 void xfrm_policy_walk_done(struct xfrm_policy_walk *walk, struct net *net) in xfrm_policy_walk_done()
1088 static struct xfrm_policy *xfrm_policy_lookup_bytype(struct net *net, u8 type, in xfrm_policy_lookup_bytype()
1145 __xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir) in __xfrm_policy_lookup()
1176 xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, in xfrm_policy_lookup()
1216 struct net *net = sock_net(sk); in xfrm_sk_policy_lookup() local
1248 struct net *net = xp_net(pol); in __xfrm_policy_link() local
1258 struct net *net = xp_net(pol); in __xfrm_policy_unlink() local
1287 struct net *net = xp_net(pol); in xfrm_policy_delete() local
1302 struct net *net = xp_net(pol); in xfrm_sk_policy_insert() local
1338 struct net *net = xp_net(old); in clone_policy() local
1379 xfrm_get_saddr(struct net *net, xfrm_address_t *local, xfrm_address_t *remote, in xfrm_get_saddr()
1398 struct net *net = xp_net(policy); in xfrm_tmpl_resolve_one() local
1557 static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family) in xfrm_alloc_dst()
1639 struct net *net = xp_net(policy); in xfrm_bundle_create() local
1846 struct net *net = xp_net(pols[0]); in xfrm_resolve_and_create_bundle() local
2004 static struct xfrm_dst *xfrm_create_dummy_bundle(struct net *net, in xfrm_create_dummy_bundle()
2064 xfrm_bundle_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, in xfrm_bundle_lookup()
2165 static struct dst_entry *make_blackhole(struct net *net, u16 family, in make_blackhole()
2187 struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup()
2335 struct dst_entry *xfrm_lookup_route(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup_route()
2446 struct net *net = dev_net(skb->dev); in __xfrm_policy_check() local
2603 struct net *net = dev_net(skb->dev); in __xfrm_route_forward() local
2687 void xfrm_garbage_collect(struct net *net) in xfrm_garbage_collect()
2693 static void xfrm_garbage_collect_deferred(struct net *net) in xfrm_garbage_collect_deferred()
2890 static int __net_init xfrm_statistics_init(struct net *net) in xfrm_statistics_init()
2902 static void xfrm_statistics_fini(struct net *net) in xfrm_statistics_fini()
2908 static int __net_init xfrm_statistics_init(struct net *net) in xfrm_statistics_init()
2913 static void xfrm_statistics_fini(struct net *net) in xfrm_statistics_fini()
2918 static int __net_init xfrm_policy_init(struct net *net) in xfrm_policy_init()
2980 static void xfrm_policy_fini(struct net *net) in xfrm_policy_fini()
3009 static int __net_init xfrm_net_init(struct net *net) in xfrm_net_init()
3048 static void __net_exit xfrm_net_exit(struct net *net) in xfrm_net_exit()
3156 u8 dir, u8 type, struct net *net) in xfrm_migrate_policy_find()
3296 struct xfrm_kmaddress *k, struct net *net) in xfrm_migrate()