Lines Matching defs:net
124 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, in __xfrm_dst_lookup()
150 struct net *net = xs_net(x); in xfrm_dst_lookup() local
288 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
355 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash()
361 static void __get_hash_thresh(struct net *net, in __get_hash_thresh()
382 static struct hlist_head *policy_hash_bysel(struct net *net, in policy_hash_bysel()
401 static struct hlist_head *policy_hash_direct(struct net *net, in policy_hash_direct()
418 static void xfrm_dst_hash_transfer(struct net *net, in xfrm_dst_hash_transfer()
475 static void xfrm_bydst_resize(struct net *net, int dir) in xfrm_bydst_resize()
510 static void xfrm_byidx_resize(struct net *net, int total) in xfrm_byidx_resize()
535 static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) in xfrm_bydst_should_resize()
550 static inline int xfrm_byidx_should_resize(struct net *net, int total) in xfrm_byidx_should_resize()
561 void xfrm_spd_getinfo(struct net *net, struct xfrmk_spdinfo *si) in xfrm_spd_getinfo()
577 struct net *net = container_of(work, struct net, xfrm.policy_hash_work); in xfrm_hash_resize() local
595 struct net *net = container_of(work, struct net, in xfrm_hash_rebuild() local
672 void xfrm_policy_hash_rebuild(struct net *net) in xfrm_policy_hash_rebuild()
680 static u32 xfrm_gen_index(struct net *net, int dir, u32 index) in xfrm_gen_index()
772 struct net *net = xp_net(policy); in xfrm_policy_insert() local
836 struct xfrm_policy *xfrm_policy_bysel_ctx(struct net *net, u32 mark, u8 type, in xfrm_policy_bysel_ctx()
875 struct xfrm_policy *xfrm_policy_byid(struct net *net, u32 mark, u8 type, in xfrm_policy_byid()
916 xfrm_policy_flush_secctx_check(struct net *net, u8 type, bool task_valid) in xfrm_policy_flush_secctx_check()
954 xfrm_policy_flush_secctx_check(struct net *net, u8 type, bool task_valid) in xfrm_policy_flush_secctx_check()
960 int xfrm_policy_flush(struct net *net, u8 type, bool task_valid) in xfrm_policy_flush()
1019 int xfrm_policy_walk(struct net *net, struct xfrm_policy_walk *walk, in xfrm_policy_walk()
1076 void xfrm_policy_walk_done(struct xfrm_policy_walk *walk, struct net *net) in xfrm_policy_walk_done()
1113 static struct xfrm_policy *xfrm_policy_lookup_bytype(struct net *net, u8 type, in xfrm_policy_lookup_bytype()
1184 __xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir) in __xfrm_policy_lookup()
1215 xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, in xfrm_policy_lookup()
1295 struct net *net = xp_net(pol); in __xfrm_policy_link() local
1305 struct net *net = xp_net(pol); in __xfrm_policy_unlink() local
1334 struct net *net = xp_net(pol); in xfrm_policy_delete() local
1349 struct net *net = sock_net(sk); in xfrm_sk_policy_insert() local
1386 struct net *net = xp_net(old); in clone_policy() local
1437 xfrm_get_saddr(struct net *net, int oif, xfrm_address_t *local, in xfrm_get_saddr()
1456 struct net *net = xp_net(policy); in xfrm_tmpl_resolve_one() local
1617 static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family) in xfrm_alloc_dst()
1697 struct net *net = xp_net(policy); in xfrm_bundle_create() local
1868 struct net *net = xp_net(pols[0]); in xfrm_resolve_and_create_bundle() local
1903 struct net *net = xp_net(pol); in xfrm_policy_queue_process() local
1973 static int xdst_queue_output(struct net *net, struct sock *sk, struct sk_buff *skb) in xdst_queue_output()
2015 static struct xfrm_dst *xfrm_create_dummy_bundle(struct net *net, in xfrm_create_dummy_bundle()
2075 xfrm_bundle_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, in xfrm_bundle_lookup()
2176 static struct dst_entry *make_blackhole(struct net *net, u16 family, in make_blackhole()
2198 struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup()
2347 struct dst_entry *xfrm_lookup_route(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup_route()
2458 struct net *net = dev_net(skb->dev); in __xfrm_policy_check() local
2616 struct net *net = dev_net(skb->dev); in __xfrm_route_forward() local
2700 void xfrm_garbage_collect(struct net *net) in xfrm_garbage_collect()
2706 static void xfrm_garbage_collect_deferred(struct net *net) in xfrm_garbage_collect_deferred()
2903 static int __net_init xfrm_statistics_init(struct net *net) in xfrm_statistics_init()
2915 static void xfrm_statistics_fini(struct net *net) in xfrm_statistics_fini()
2921 static int __net_init xfrm_statistics_init(struct net *net) in xfrm_statistics_init()
2926 static void xfrm_statistics_fini(struct net *net) in xfrm_statistics_fini()
2931 static int __net_init xfrm_policy_init(struct net *net) in xfrm_policy_init()
2993 static void xfrm_policy_fini(struct net *net) in xfrm_policy_fini()
3022 static int __net_init xfrm_net_init(struct net *net) in xfrm_net_init()
3061 static void __net_exit xfrm_net_exit(struct net *net) in xfrm_net_exit()
3170 u8 dir, u8 type, struct net *net) in xfrm_migrate_policy_find()
3311 struct xfrm_kmaddress *k, struct net *net) in xfrm_migrate()