Searched refs:xfrm6_tn (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/net/ipv6/
H A Dxfrm6_tunnel.c89 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); __xfrm6_tunnel_spi_lookup() local
93 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)], __xfrm6_tunnel_spi_lookup()
117 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); __xfrm6_tunnel_spi_check() local
122 &xfrm6_tn->spi_byspi[index], __xfrm6_tunnel_spi_check()
132 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); __xfrm6_tunnel_alloc_spi() local
137 if (xfrm6_tn->spi < XFRM6_TUNNEL_SPI_MIN || __xfrm6_tunnel_alloc_spi()
138 xfrm6_tn->spi >= XFRM6_TUNNEL_SPI_MAX) __xfrm6_tunnel_alloc_spi()
139 xfrm6_tn->spi = XFRM6_TUNNEL_SPI_MIN; __xfrm6_tunnel_alloc_spi()
141 xfrm6_tn->spi++; __xfrm6_tunnel_alloc_spi()
143 for (spi = xfrm6_tn->spi; spi <= XFRM6_TUNNEL_SPI_MAX; spi++) { __xfrm6_tunnel_alloc_spi()
148 for (spi = XFRM6_TUNNEL_SPI_MIN; spi < xfrm6_tn->spi; spi++) { __xfrm6_tunnel_alloc_spi()
156 xfrm6_tn->spi = spi; __xfrm6_tunnel_alloc_spi()
165 hlist_add_head_rcu(&x6spi->list_byspi, &xfrm6_tn->spi_byspi[index]); __xfrm6_tunnel_alloc_spi()
168 hlist_add_head_rcu(&x6spi->list_byaddr, &xfrm6_tn->spi_byaddr[index]); __xfrm6_tunnel_alloc_spi()
199 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); xfrm6_tunnel_free_spi() local
206 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)], xfrm6_tunnel_free_spi()
327 struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); xfrm6_tunnel_net_init() local
331 INIT_HLIST_HEAD(&xfrm6_tn->spi_byaddr[i]); xfrm6_tunnel_net_init()
333 INIT_HLIST_HEAD(&xfrm6_tn->spi_byspi[i]); xfrm6_tunnel_net_init()
334 xfrm6_tn->spi = 0; xfrm6_tunnel_net_init()

Completed in 95 milliseconds