Lines Matching refs:ipv6

154 		atomic_dec(&net->ipv6.rt6_stats->fib_rt_uncache);  in rt6_uncached_list_del()
339 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in ip6_dst_alloc()
344 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_dst_alloc()
561 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
575 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
869 if (!leaf || leaf == net->ipv6.fib6_null_entry) in rt6_select()
908 res->f6i = net->ipv6.fib6_null_entry; in rt6_select()
1161 rt = net->ipv6.ip6_null_entry; in ip6_hold_safe()
1192 nrt = dev_net(dev)->ipv6.ip6_null_entry; in ip6_create_rt_rcu()
1215 res.f6i = net->ipv6.fib6_null_entry; in ip6_pol_route_lookup()
1220 if (res.f6i == net->ipv6.fib6_null_entry) { in ip6_pol_route_lookup()
1225 rt = net->ipv6.ip6_null_entry; in ip6_pol_route_lookup()
1450 net->ipv6.rt6_stats->fib_rt_cache--; in rt6_remove_exception()
1711 net->ipv6.rt6_stats->fib_rt_cache++; in rt6_insert_exception()
2187 if (res->f6i == net->ipv6.fib6_null_entry) { in fib6_table_lookup()
2217 if (net->ipv6.devconf_all->forwarding == 0) in ip6_pol_route()
2223 if (res.f6i == net->ipv6.fib6_null_entry) in ip6_pol_route()
2248 atomic_inc(&net->ipv6.rt6_stats->fib_rt_uncache); in ip6_pol_route()
2265 rt = net->ipv6.ip6_null_entry; in ip6_pol_route()
2520 dst = &net->ipv6.ip6_null_entry->dst; in ip6_route_output_flags()
2539 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_blackhole_route()
2706 rt6_update_expires(rt, net->ipv6.sysctl.ip6_rt_mtu_expires); in rt6_do_update_pmtu()
2973 rt = net->ipv6.fib6_null_entry; in __ip6_route_redirect()
2975 ret = net->ipv6.ip6_null_entry; in __ip6_route_redirect()
2979 if (rt == net->ipv6.fib6_null_entry) { in __ip6_route_redirect()
3071 if (mtu < net->ipv6.sysctl.ip6_rt_min_advmss) in ip6_default_advmss()
3072 mtu = net->ipv6.sysctl.ip6_rt_min_advmss; in ip6_default_advmss()
3179 atomic_inc(&net->ipv6.rt6_stats->fib_rt_uncache); in icmp6_dst_alloc()
3189 struct net *net = container_of(ops, struct net, ipv6.ip6_dst_ops); in ip6_dst_gc()
3190 int rt_min_interval = net->ipv6.sysctl.ip6_rt_gc_min_interval; in ip6_dst_gc()
3191 int rt_max_size = net->ipv6.sysctl.ip6_rt_max_size; in ip6_dst_gc()
3192 int rt_elasticity = net->ipv6.sysctl.ip6_rt_gc_elasticity; in ip6_dst_gc()
3193 int rt_gc_timeout = net->ipv6.sysctl.ip6_rt_gc_timeout; in ip6_dst_gc()
3194 unsigned long rt_last_gc = net->ipv6.ip6_rt_last_gc; in ip6_dst_gc()
3205 net->ipv6.ip6_rt_gc_expire++; in ip6_dst_gc()
3206 fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net, true); in ip6_dst_gc()
3209 net->ipv6.ip6_rt_gc_expire = rt_gc_timeout>>1; in ip6_dst_gc()
3211 net->ipv6.ip6_rt_gc_expire -= net->ipv6.ip6_rt_gc_expire>>rt_elasticity; in ip6_dst_gc()
3237 if (!err && res->f6i != net->ipv6.fib6_null_entry) in ip6_nh_lookup_table()
3754 if (rt == net->ipv6.fib6_null_entry) { in __ip6_del_rt()
3787 if (rt == net->ipv6.fib6_null_entry) in __ip6_del_rt_siblings()
4443 (net->ipv6.devconf_all->disable_policy || in addrconf_f6i_alloc()
4466 rt != net->ipv6.fib6_null_entry && in fib6_remove_prefsrc()
4625 if (rt != net->ipv6.fib6_null_entry && !rt->nh && in fib6_ifup()
4711 if (rt == net->ipv6.fib6_null_entry || rt->nh) in fib6_ifdown()
4758 if (net->ipv6.sysctl.skip_notify_on_dev_down) in rt6_sync_down_dev()
5746 if (rt == net->ipv6.fib6_null_entry) in rt6_dump_route()
5973 if (rt == net->ipv6.ip6_null_entry) { in inet6_rtm_getroute()
6089 net->ipv6.fib6_null_entry->fib6_nh->fib_nh_dev = dev; in ip6_route_dev_notify()
6090 net->ipv6.ip6_null_entry->dst.dev = dev; in ip6_route_dev_notify()
6091 net->ipv6.ip6_null_entry->rt6i_idev = in6_dev_get(dev); in ip6_route_dev_notify()
6093 net->ipv6.ip6_prohibit_entry->dst.dev = dev; in ip6_route_dev_notify()
6094 net->ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(dev); in ip6_route_dev_notify()
6095 net->ipv6.ip6_blk_hole_entry->dst.dev = dev; in ip6_route_dev_notify()
6096 net->ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(dev); in ip6_route_dev_notify()
6103 in6_dev_put_clear(&net->ipv6.ip6_null_entry->rt6i_idev); in ip6_route_dev_notify()
6105 in6_dev_put_clear(&net->ipv6.ip6_prohibit_entry->rt6i_idev); in ip6_route_dev_notify()
6106 in6_dev_put_clear(&net->ipv6.ip6_blk_hole_entry->rt6i_idev); in ip6_route_dev_notify()
6122 net->ipv6.rt6_stats->fib_nodes, in rt6_stats_seq_show()
6123 net->ipv6.rt6_stats->fib_route_nodes, in rt6_stats_seq_show()
6124 atomic_read(&net->ipv6.rt6_stats->fib_rt_alloc), in rt6_stats_seq_show()
6125 net->ipv6.rt6_stats->fib_rt_entries, in rt6_stats_seq_show()
6126 net->ipv6.rt6_stats->fib_rt_cache, in rt6_stats_seq_show()
6127 dst_entries_get_slow(&net->ipv6.ip6_dst_ops), in rt6_stats_seq_show()
6128 net->ipv6.rt6_stats->fib_discarded_routes); in rt6_stats_seq_show()
6146 delay = net->ipv6.sysctl.flush_delay; in ipv6_sysctl_rtcache_flush()
6158 .data = &init_net.ipv6.sysctl.flush_delay,
6172 .data = &init_net.ipv6.sysctl.ip6_rt_max_size,
6179 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval,
6186 .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout,
6193 .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval,
6200 .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity,
6207 .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires,
6214 .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss,
6221 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval,
6228 .data = &init_net.ipv6.sysctl.skip_notify_on_dev_down,
6247 table[0].data = &net->ipv6.sysctl.flush_delay; in ipv6_route_sysctl_init()
6249 table[1].data = &net->ipv6.ip6_dst_ops.gc_thresh; in ipv6_route_sysctl_init()
6250 table[2].data = &net->ipv6.sysctl.ip6_rt_max_size; in ipv6_route_sysctl_init()
6251 table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; in ipv6_route_sysctl_init()
6252 table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout; in ipv6_route_sysctl_init()
6253 table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval; in ipv6_route_sysctl_init()
6254 table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity; in ipv6_route_sysctl_init()
6255 table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires; in ipv6_route_sysctl_init()
6256 table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss; in ipv6_route_sysctl_init()
6257 table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; in ipv6_route_sysctl_init()
6258 table[10].data = &net->ipv6.sysctl.skip_notify_on_dev_down; in ipv6_route_sysctl_init()
6273 memcpy(&net->ipv6.ip6_dst_ops, &ip6_dst_ops_template, in ip6_route_net_init()
6274 sizeof(net->ipv6.ip6_dst_ops)); in ip6_route_net_init()
6276 if (dst_entries_init(&net->ipv6.ip6_dst_ops) < 0) in ip6_route_net_init()
6279 net->ipv6.fib6_null_entry = fib6_info_alloc(GFP_KERNEL, true); in ip6_route_net_init()
6280 if (!net->ipv6.fib6_null_entry) in ip6_route_net_init()
6282 memcpy(net->ipv6.fib6_null_entry, &fib6_null_entry_template, in ip6_route_net_init()
6283 sizeof(*net->ipv6.fib6_null_entry)); in ip6_route_net_init()
6285 net->ipv6.ip6_null_entry = kmemdup(&ip6_null_entry_template, in ip6_route_net_init()
6286 sizeof(*net->ipv6.ip6_null_entry), in ip6_route_net_init()
6288 if (!net->ipv6.ip6_null_entry) in ip6_route_net_init()
6290 net->ipv6.ip6_null_entry->dst.ops = &net->ipv6.ip6_dst_ops; in ip6_route_net_init()
6291 dst_init_metrics(&net->ipv6.ip6_null_entry->dst, in ip6_route_net_init()
6293 INIT_LIST_HEAD(&net->ipv6.ip6_null_entry->rt6i_uncached); in ip6_route_net_init()
6296 net->ipv6.fib6_has_custom_rules = false; in ip6_route_net_init()
6297 net->ipv6.ip6_prohibit_entry = kmemdup(&ip6_prohibit_entry_template, in ip6_route_net_init()
6298 sizeof(*net->ipv6.ip6_prohibit_entry), in ip6_route_net_init()
6300 if (!net->ipv6.ip6_prohibit_entry) in ip6_route_net_init()
6302 net->ipv6.ip6_prohibit_entry->dst.ops = &net->ipv6.ip6_dst_ops; in ip6_route_net_init()
6303 dst_init_metrics(&net->ipv6.ip6_prohibit_entry->dst, in ip6_route_net_init()
6305 INIT_LIST_HEAD(&net->ipv6.ip6_prohibit_entry->rt6i_uncached); in ip6_route_net_init()
6307 net->ipv6.ip6_blk_hole_entry = kmemdup(&ip6_blk_hole_entry_template, in ip6_route_net_init()
6308 sizeof(*net->ipv6.ip6_blk_hole_entry), in ip6_route_net_init()
6310 if (!net->ipv6.ip6_blk_hole_entry) in ip6_route_net_init()
6312 net->ipv6.ip6_blk_hole_entry->dst.ops = &net->ipv6.ip6_dst_ops; in ip6_route_net_init()
6313 dst_init_metrics(&net->ipv6.ip6_blk_hole_entry->dst, in ip6_route_net_init()
6315 INIT_LIST_HEAD(&net->ipv6.ip6_blk_hole_entry->rt6i_uncached); in ip6_route_net_init()
6317 net->ipv6.fib6_routes_require_src = 0; in ip6_route_net_init()
6321 net->ipv6.sysctl.flush_delay = 0; in ip6_route_net_init()
6322 net->ipv6.sysctl.ip6_rt_max_size = 4096; in ip6_route_net_init()
6323 net->ipv6.sysctl.ip6_rt_gc_min_interval = HZ / 2; in ip6_route_net_init()
6324 net->ipv6.sysctl.ip6_rt_gc_timeout = 60*HZ; in ip6_route_net_init()
6325 net->ipv6.sysctl.ip6_rt_gc_interval = 30*HZ; in ip6_route_net_init()
6326 net->ipv6.sysctl.ip6_rt_gc_elasticity = 9; in ip6_route_net_init()
6327 net->ipv6.sysctl.ip6_rt_mtu_expires = 10*60*HZ; in ip6_route_net_init()
6328 net->ipv6.sysctl.ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40; in ip6_route_net_init()
6329 net->ipv6.sysctl.skip_notify_on_dev_down = 0; in ip6_route_net_init()
6331 net->ipv6.ip6_rt_gc_expire = 30*HZ; in ip6_route_net_init()
6339 kfree(net->ipv6.ip6_prohibit_entry); in ip6_route_net_init()
6341 kfree(net->ipv6.ip6_null_entry); in ip6_route_net_init()
6344 kfree(net->ipv6.fib6_null_entry); in ip6_route_net_init()
6346 dst_entries_destroy(&net->ipv6.ip6_dst_ops); in ip6_route_net_init()
6353 kfree(net->ipv6.fib6_null_entry); in ip6_route_net_exit()
6354 kfree(net->ipv6.ip6_null_entry); in ip6_route_net_exit()
6356 kfree(net->ipv6.ip6_prohibit_entry); in ip6_route_net_exit()
6357 kfree(net->ipv6.ip6_blk_hole_entry); in ip6_route_net_exit()
6359 dst_entries_destroy(&net->ipv6.ip6_dst_ops); in ip6_route_net_exit()
6399 net->ipv6.peers = bp; in ipv6_inetpeer_init()
6405 struct inet_peer_base *bp = net->ipv6.peers; in ipv6_inetpeer_exit()
6407 net->ipv6.peers = NULL; in ipv6_inetpeer_exit()
6432 init_net.ipv6.fib6_null_entry->fib6_nh->fib_nh_dev = init_net.loopback_dev; in ip6_route_init_special_entries()
6433 init_net.ipv6.ip6_null_entry->dst.dev = init_net.loopback_dev; in ip6_route_init_special_entries()
6434 init_net.ipv6.ip6_null_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); in ip6_route_init_special_entries()
6436 init_net.ipv6.ip6_prohibit_entry->dst.dev = init_net.loopback_dev; in ip6_route_init_special_entries()
6437 init_net.ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); in ip6_route_init_special_entries()
6438 init_net.ipv6.ip6_blk_hole_entry->dst.dev = init_net.loopback_dev; in ip6_route_init_special_entries()
6439 init_net.ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); in ip6_route_init_special_entries()