Lines Matching refs:net
48 static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net) in xfrm6_tunnel_pernet() argument
50 return net_generic(net, xfrm6_tunnel_net_id); in xfrm6_tunnel_pernet()
87 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sa… in __xfrm6_tunnel_spi_lookup() argument
89 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in __xfrm6_tunnel_spi_lookup()
102 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup() argument
108 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_spi_lookup()
115 static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi) in __xfrm6_tunnel_spi_check() argument
117 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in __xfrm6_tunnel_spi_check()
130 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi() argument
132 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in __xfrm6_tunnel_alloc_spi()
144 index = __xfrm6_tunnel_spi_check(net, spi); in __xfrm6_tunnel_alloc_spi()
149 index = __xfrm6_tunnel_spi_check(net, spi); in __xfrm6_tunnel_alloc_spi()
173 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi() argument
179 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_alloc_spi()
184 spi = __xfrm6_tunnel_alloc_spi(net, saddr); in xfrm6_tunnel_alloc_spi()
197 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_free_spi() argument
199 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in xfrm6_tunnel_free_spi()
234 struct net *net = dev_net(skb->dev); in xfrm6_tunnel_rcv() local
238 spi = xfrm6_tunnel_spi_lookup(net, (const xfrm_address_t *)&iph->saddr); in xfrm6_tunnel_rcv()
298 struct net *net = xs_net(x); in xfrm6_tunnel_destroy() local
300 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr); in xfrm6_tunnel_destroy()
325 static int __net_init xfrm6_tunnel_net_init(struct net *net) in xfrm6_tunnel_net_init() argument
327 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); in xfrm6_tunnel_net_init()
339 static void __net_exit xfrm6_tunnel_net_exit(struct net *net) in xfrm6_tunnel_net_exit() argument