Lines Matching defs:net

97 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos,  in __xfrm_dst_lookup()
121 struct net *net = xs_net(x); in xfrm_dst_lookup() local
259 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
312 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash()
317 static struct hlist_head *policy_hash_bysel(struct net *net, in policy_hash_bysel()
329 static struct hlist_head *policy_hash_direct(struct net *net, in policy_hash_direct()
392 static void xfrm_bydst_resize(struct net *net, int dir) in xfrm_bydst_resize()
417 static void xfrm_byidx_resize(struct net *net, int total) in xfrm_byidx_resize()
442 static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) in xfrm_bydst_should_resize()
457 static inline int xfrm_byidx_should_resize(struct net *net, int total) in xfrm_byidx_should_resize()
468 void xfrm_spd_getinfo(struct net *net, struct xfrmk_spdinfo *si) in xfrm_spd_getinfo()
486 struct net *net = container_of(work, struct net, xfrm.policy_hash_work); in xfrm_hash_resize() local
504 static u32 xfrm_gen_index(struct net *net, int dir) in xfrm_gen_index()
549 struct net *net = xp_net(policy); in xfrm_policy_insert() local
607 struct xfrm_policy *xfrm_policy_bysel_ctx(struct net *net, u32 mark, u8 type, in xfrm_policy_bysel_ctx()
647 struct xfrm_policy *xfrm_policy_byid(struct net *net, u32 mark, u8 type, in xfrm_policy_byid()
689 xfrm_policy_flush_secctx_check(struct net *net, u8 type, struct xfrm_audit *audit_info) in xfrm_policy_flush_secctx_check()
733 xfrm_policy_flush_secctx_check(struct net *net, u8 type, struct xfrm_audit *audit_info) in xfrm_policy_flush_secctx_check()
739 int xfrm_policy_flush(struct net *net, u8 type, struct xfrm_audit *audit_info) in xfrm_policy_flush()
804 int xfrm_policy_walk(struct net *net, struct xfrm_policy_walk *walk, in xfrm_policy_walk()
895 static struct xfrm_policy *xfrm_policy_lookup_bytype(struct net *net, u8 type, in xfrm_policy_lookup_bytype()
953 __xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir) in __xfrm_policy_lookup()
966 xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, in xfrm_policy_lookup()
1037 struct net *net = xp_net(pol); in __xfrm_policy_link() local
1054 struct net *net = xp_net(pol); in __xfrm_policy_unlink() local
1082 struct net *net = xp_net(pol); in xfrm_sk_policy_insert() local
1154 xfrm_get_saddr(struct net *net, xfrm_address_t *local, xfrm_address_t *remote, in xfrm_get_saddr()
1173 struct net *net = xp_net(policy); in xfrm_tmpl_resolve_one() local
1330 static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family) in xfrm_alloc_dst()
1409 struct net *net = xp_net(policy); in xfrm_bundle_create() local
1617 struct net *net = xp_net(pols[0]); in xfrm_resolve_and_create_bundle() local
1657 xfrm_bundle_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, in xfrm_bundle_lookup()
1756 static struct dst_entry *make_blackhole(struct net *net, u16 family, in make_blackhole()
1778 struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup()
2035 struct net *net = dev_net(skb->dev); in __xfrm_policy_check() local
2192 struct net *net = dev_net(skb->dev); in __xfrm_route_forward() local
2275 static void __xfrm_garbage_collect(struct net *net) in __xfrm_garbage_collect()
2291 static void xfrm_garbage_collect(struct net *net) in xfrm_garbage_collect()
2297 static void xfrm_garbage_collect_deferred(struct net *net) in xfrm_garbage_collect_deferred()
2409 struct net *net; in xfrm_policy_register_afinfo() local
2490 static void __net_init xfrm_dst_ops_init(struct net *net) in xfrm_dst_ops_init()
2539 static int __net_init xfrm_statistics_init(struct net *net) in xfrm_statistics_init()
2553 static void xfrm_statistics_fini(struct net *net) in xfrm_statistics_fini()
2559 static int __net_init xfrm_statistics_init(struct net *net) in xfrm_statistics_init()
2564 static void xfrm_statistics_fini(struct net *net) in xfrm_statistics_fini()
2569 static int __net_init xfrm_policy_init(struct net *net) in xfrm_policy_init()
2619 static void xfrm_policy_fini(struct net *net) in xfrm_policy_fini()
2655 static int __net_init xfrm_net_init(struct net *net) in xfrm_net_init()
2684 static void __net_exit xfrm_net_exit(struct net *net) in xfrm_net_exit()