Lines Matching refs:ipv6

154 		atomic_dec(&net->ipv6.rt6_stats->fib_rt_uncache);  in rt6_uncached_list_del()
353 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in ip6_dst_alloc()
358 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_dst_alloc()
497 return net->ipv6.fib6_null_entry; in rt6_device_match()
499 return rt->fib6_nh.nh_flags & RTNH_F_DEAD ? net->ipv6.fib6_null_entry : rt; in rt6_device_match()
744 if (!leaf || leaf == net->ipv6.fib6_null_entry) in rt6_select()
745 return net->ipv6.fib6_null_entry; in rt6_select()
762 return net->ipv6.fib6_null_entry; in rt6_select()
783 return match ? match : net->ipv6.fib6_null_entry; in rt6_select()
1032 rt = net->ipv6.ip6_null_entry; in ip6_hold_safe()
1078 f6i = net->ipv6.fib6_null_entry; in ip6_pol_route_lookup()
1087 if (f6i == net->ipv6.fib6_null_entry) { in ip6_pol_route_lookup()
1100 } else if (f6i == net->ipv6.fib6_null_entry) { in ip6_pol_route_lookup()
1101 rt = net->ipv6.ip6_null_entry; in ip6_pol_route_lookup()
1106 rt = net->ipv6.ip6_null_entry; in ip6_pol_route_lookup()
1261 dst_hold(&net->ipv6.ip6_null_entry->dst); in rt6_make_pcpu_route()
1262 return net->ipv6.ip6_null_entry; in rt6_make_pcpu_route()
1294 net->ipv6.rt6_stats->fib_rt_cache--; in rt6_remove_exception()
1485 net->ipv6.rt6_stats->fib_rt_cache++; in rt6_insert_exception()
1840 if (f6i == net->ipv6.fib6_null_entry) { in fib6_table_lookup()
1867 if (net->ipv6.devconf_all->forwarding == 0) in ip6_pol_route()
1876 if (f6i == net->ipv6.fib6_null_entry) { in ip6_pol_route()
1877 rt = net->ipv6.ip6_null_entry; in ip6_pol_route()
1909 atomic_inc(&net->ipv6.rt6_stats->fib_rt_uncache); in ip6_pol_route()
1911 uncached_rt = net->ipv6.ip6_null_entry; in ip6_pol_route()
2140 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_blackhole_route()
2305 rt6_update_expires(rt, net->ipv6.sysctl.ip6_rt_mtu_expires); in rt6_do_update_pmtu()
2491 rt = net->ipv6.fib6_null_entry; in __ip6_route_redirect()
2493 ret = net->ipv6.ip6_null_entry; in __ip6_route_redirect()
2497 if (rt == net->ipv6.fib6_null_entry) { in __ip6_route_redirect()
2588 if (mtu < net->ipv6.sysctl.ip6_rt_min_advmss) in ip6_default_advmss()
2589 mtu = net->ipv6.sysctl.ip6_rt_min_advmss; in ip6_default_advmss()
2704 atomic_inc(&net->ipv6.rt6_stats->fib_rt_uncache); in icmp6_dst_alloc()
2714 struct net *net = container_of(ops, struct net, ipv6.ip6_dst_ops); in ip6_dst_gc()
2715 int rt_min_interval = net->ipv6.sysctl.ip6_rt_gc_min_interval; in ip6_dst_gc()
2716 int rt_max_size = net->ipv6.sysctl.ip6_rt_max_size; in ip6_dst_gc()
2717 int rt_elasticity = net->ipv6.sysctl.ip6_rt_gc_elasticity; in ip6_dst_gc()
2718 int rt_gc_timeout = net->ipv6.sysctl.ip6_rt_gc_timeout; in ip6_dst_gc()
2719 unsigned long rt_last_gc = net->ipv6.ip6_rt_last_gc; in ip6_dst_gc()
2727 net->ipv6.ip6_rt_gc_expire++; in ip6_dst_gc()
2728 fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net, true); in ip6_dst_gc()
2731 net->ipv6.ip6_rt_gc_expire = rt_gc_timeout>>1; in ip6_dst_gc()
2733 net->ipv6.ip6_rt_gc_expire -= net->ipv6.ip6_rt_gc_expire>>rt_elasticity; in ip6_dst_gc()
2779 if (rt == net->ipv6.ip6_null_entry) { in ip6_nh_lookup_table()
3183 if (rt == net->ipv6.fib6_null_entry) { in __ip6_del_rt()
3213 if (rt == net->ipv6.fib6_null_entry) in __ip6_del_rt_siblings()
3624 head = &net->ipv6.fib_table_hash[h]; in rt6_purge_dflt_routers()
3798 rt != net->ipv6.fib6_null_entry && in fib6_remove_prefsrc()
3953 if (rt != net->ipv6.fib6_null_entry && rt->fib6_nh.nh_dev == arg->dev) { in fib6_ifup()
4037 if (rt == net->ipv6.fib6_null_entry) in fib6_ifdown()
4823 if (rt == net->ipv6.fib6_null_entry) in rt6_dump_route()
4944 if (rt == net->ipv6.ip6_null_entry) { in inet6_rtm_getroute()
5024 net->ipv6.fib6_null_entry->fib6_nh.nh_dev = dev; in ip6_route_dev_notify()
5025 net->ipv6.ip6_null_entry->dst.dev = dev; in ip6_route_dev_notify()
5026 net->ipv6.ip6_null_entry->rt6i_idev = in6_dev_get(dev); in ip6_route_dev_notify()
5028 net->ipv6.ip6_prohibit_entry->dst.dev = dev; in ip6_route_dev_notify()
5029 net->ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(dev); in ip6_route_dev_notify()
5030 net->ipv6.ip6_blk_hole_entry->dst.dev = dev; in ip6_route_dev_notify()
5031 net->ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(dev); in ip6_route_dev_notify()
5038 in6_dev_put_clear(&net->ipv6.ip6_null_entry->rt6i_idev); in ip6_route_dev_notify()
5040 in6_dev_put_clear(&net->ipv6.ip6_prohibit_entry->rt6i_idev); in ip6_route_dev_notify()
5041 in6_dev_put_clear(&net->ipv6.ip6_blk_hole_entry->rt6i_idev); in ip6_route_dev_notify()
5057 net->ipv6.rt6_stats->fib_nodes, in rt6_stats_seq_show()
5058 net->ipv6.rt6_stats->fib_route_nodes, in rt6_stats_seq_show()
5059 atomic_read(&net->ipv6.rt6_stats->fib_rt_alloc), in rt6_stats_seq_show()
5060 net->ipv6.rt6_stats->fib_rt_entries, in rt6_stats_seq_show()
5061 net->ipv6.rt6_stats->fib_rt_cache, in rt6_stats_seq_show()
5062 dst_entries_get_slow(&net->ipv6.ip6_dst_ops), in rt6_stats_seq_show()
5063 net->ipv6.rt6_stats->fib_discarded_routes); in rt6_stats_seq_show()
5081 delay = net->ipv6.sysctl.flush_delay; in ipv6_sysctl_rtcache_flush()
5090 .data = &init_net.ipv6.sysctl.flush_delay,
5104 .data = &init_net.ipv6.sysctl.ip6_rt_max_size,
5111 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval,
5118 .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout,
5125 .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval,
5132 .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity,
5139 .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires,
5146 .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss,
5153 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval,
5170 table[0].data = &net->ipv6.sysctl.flush_delay; in ipv6_route_sysctl_init()
5172 table[1].data = &net->ipv6.ip6_dst_ops.gc_thresh; in ipv6_route_sysctl_init()
5173 table[2].data = &net->ipv6.sysctl.ip6_rt_max_size; in ipv6_route_sysctl_init()
5174 table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; in ipv6_route_sysctl_init()
5175 table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout; in ipv6_route_sysctl_init()
5176 table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval; in ipv6_route_sysctl_init()
5177 table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity; in ipv6_route_sysctl_init()
5178 table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires; in ipv6_route_sysctl_init()
5179 table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss; in ipv6_route_sysctl_init()
5180 table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; in ipv6_route_sysctl_init()
5195 memcpy(&net->ipv6.ip6_dst_ops, &ip6_dst_ops_template, in ip6_route_net_init()
5196 sizeof(net->ipv6.ip6_dst_ops)); in ip6_route_net_init()
5198 if (dst_entries_init(&net->ipv6.ip6_dst_ops) < 0) in ip6_route_net_init()
5201 net->ipv6.fib6_null_entry = kmemdup(&fib6_null_entry_template, in ip6_route_net_init()
5202 sizeof(*net->ipv6.fib6_null_entry), in ip6_route_net_init()
5204 if (!net->ipv6.fib6_null_entry) in ip6_route_net_init()
5207 net->ipv6.ip6_null_entry = kmemdup(&ip6_null_entry_template, in ip6_route_net_init()
5208 sizeof(*net->ipv6.ip6_null_entry), in ip6_route_net_init()
5210 if (!net->ipv6.ip6_null_entry) in ip6_route_net_init()
5212 net->ipv6.ip6_null_entry->dst.ops = &net->ipv6.ip6_dst_ops; in ip6_route_net_init()
5213 dst_init_metrics(&net->ipv6.ip6_null_entry->dst, in ip6_route_net_init()
5217 net->ipv6.fib6_has_custom_rules = false; in ip6_route_net_init()
5218 net->ipv6.ip6_prohibit_entry = kmemdup(&ip6_prohibit_entry_template, in ip6_route_net_init()
5219 sizeof(*net->ipv6.ip6_prohibit_entry), in ip6_route_net_init()
5221 if (!net->ipv6.ip6_prohibit_entry) in ip6_route_net_init()
5223 net->ipv6.ip6_prohibit_entry->dst.ops = &net->ipv6.ip6_dst_ops; in ip6_route_net_init()
5224 dst_init_metrics(&net->ipv6.ip6_prohibit_entry->dst, in ip6_route_net_init()
5227 net->ipv6.ip6_blk_hole_entry = kmemdup(&ip6_blk_hole_entry_template, in ip6_route_net_init()
5228 sizeof(*net->ipv6.ip6_blk_hole_entry), in ip6_route_net_init()
5230 if (!net->ipv6.ip6_blk_hole_entry) in ip6_route_net_init()
5232 net->ipv6.ip6_blk_hole_entry->dst.ops = &net->ipv6.ip6_dst_ops; in ip6_route_net_init()
5233 dst_init_metrics(&net->ipv6.ip6_blk_hole_entry->dst, in ip6_route_net_init()
5237 net->ipv6.sysctl.flush_delay = 0; in ip6_route_net_init()
5238 net->ipv6.sysctl.ip6_rt_max_size = 4096; in ip6_route_net_init()
5239 net->ipv6.sysctl.ip6_rt_gc_min_interval = HZ / 2; in ip6_route_net_init()
5240 net->ipv6.sysctl.ip6_rt_gc_timeout = 60*HZ; in ip6_route_net_init()
5241 net->ipv6.sysctl.ip6_rt_gc_interval = 30*HZ; in ip6_route_net_init()
5242 net->ipv6.sysctl.ip6_rt_gc_elasticity = 9; in ip6_route_net_init()
5243 net->ipv6.sysctl.ip6_rt_mtu_expires = 10*60*HZ; in ip6_route_net_init()
5244 net->ipv6.sysctl.ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40; in ip6_route_net_init()
5246 net->ipv6.ip6_rt_gc_expire = 30*HZ; in ip6_route_net_init()
5254 kfree(net->ipv6.ip6_prohibit_entry); in ip6_route_net_init()
5256 kfree(net->ipv6.ip6_null_entry); in ip6_route_net_init()
5259 kfree(net->ipv6.fib6_null_entry); in ip6_route_net_init()
5261 dst_entries_destroy(&net->ipv6.ip6_dst_ops); in ip6_route_net_init()
5268 kfree(net->ipv6.fib6_null_entry); in ip6_route_net_exit()
5269 kfree(net->ipv6.ip6_null_entry); in ip6_route_net_exit()
5271 kfree(net->ipv6.ip6_prohibit_entry); in ip6_route_net_exit()
5272 kfree(net->ipv6.ip6_blk_hole_entry); in ip6_route_net_exit()
5274 dst_entries_destroy(&net->ipv6.ip6_dst_ops); in ip6_route_net_exit()
5308 net->ipv6.peers = bp; in ipv6_inetpeer_init()
5314 struct inet_peer_base *bp = net->ipv6.peers; in ipv6_inetpeer_exit()
5316 net->ipv6.peers = NULL; in ipv6_inetpeer_exit()
5341 init_net.ipv6.fib6_null_entry->fib6_nh.nh_dev = init_net.loopback_dev; in ip6_route_init_special_entries()
5342 init_net.ipv6.ip6_null_entry->dst.dev = init_net.loopback_dev; in ip6_route_init_special_entries()
5343 init_net.ipv6.ip6_null_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); in ip6_route_init_special_entries()
5345 init_net.ipv6.ip6_prohibit_entry->dst.dev = init_net.loopback_dev; in ip6_route_init_special_entries()
5346 init_net.ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); in ip6_route_init_special_entries()
5347 init_net.ipv6.ip6_blk_hole_entry->dst.dev = init_net.loopback_dev; in ip6_route_init_special_entries()
5348 init_net.ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); in ip6_route_init_special_entries()