Lines Matching refs:table

848 					     struct fib6_table *table,  in ip6_pol_route_lookup()  argument
854 read_lock_bh(&table->tb6_lock); in ip6_pol_route_lookup()
855 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); in ip6_pol_route_lookup()
867 read_unlock_bh(&table->tb6_lock); in ip6_pol_route_lookup()
914 struct fib6_table *table; in __ip6_ins_rt() local
916 table = rt->rt6i_table; in __ip6_ins_rt()
917 write_lock_bh(&table->tb6_lock); in __ip6_ins_rt()
918 err = fib6_add(&table->tb6_root, rt, info, mxc); in __ip6_ins_rt()
919 write_unlock_bh(&table->tb6_lock); in __ip6_ins_rt()
1004 struct fib6_table *table = rt->rt6i_table; in rt6_make_pcpu_route() local
1015 read_lock_bh(&table->tb6_lock); in rt6_make_pcpu_route()
1036 read_unlock_bh(&table->tb6_lock); in rt6_make_pcpu_route()
1040 static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table, int oif, in ip6_pol_route() argument
1051 read_lock_bh(&table->tb6_lock); in ip6_pol_route()
1053 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); in ip6_pol_route()
1078 read_unlock_bh(&table->tb6_lock); in ip6_pol_route()
1093 read_unlock_bh(&table->tb6_lock); in ip6_pol_route()
1116 read_unlock_bh(&table->tb6_lock); in ip6_pol_route()
1123 read_unlock_bh(&table->tb6_lock); in ip6_pol_route()
1133 static struct rt6_info *ip6_pol_route_input(struct net *net, struct fib6_table *table, in ip6_pol_route_input() argument
1136 return ip6_pol_route(net, table, fl6->flowi6_iif, fl6, flags); in ip6_pol_route_input()
1171 static struct rt6_info *ip6_pol_route_output(struct net *net, struct fib6_table *table, in ip6_pol_route_output() argument
1174 return ip6_pol_route(net, table, fl6->flowi6_oif, fl6, flags); in ip6_pol_route_output()
1423 struct fib6_table *table, in __ip6_route_redirect() argument
1441 read_lock_bh(&table->tb6_lock); in __ip6_route_redirect()
1442 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); in __ip6_route_redirect()
1474 read_unlock_bh(&table->tb6_lock); in __ip6_route_redirect()
1757 struct fib6_table *table; in ip6_route_info_create() local
1783 table = fib6_get_table(net, cfg->fc_table); in ip6_route_info_create()
1784 if (!table) { in ip6_route_info_create()
1786 table = fib6_new_table(net, cfg->fc_table); in ip6_route_info_create()
1789 table = fib6_new_table(net, cfg->fc_table); in ip6_route_info_create()
1792 if (!table) in ip6_route_info_create()
1981 rt->rt6i_table = table; in ip6_route_info_create()
2029 struct fib6_table *table; in __ip6_del_rt() local
2038 table = rt->rt6i_table; in __ip6_del_rt()
2039 write_lock_bh(&table->tb6_lock); in __ip6_del_rt()
2041 write_unlock_bh(&table->tb6_lock); in __ip6_del_rt()
2058 struct fib6_table *table; in ip6_route_del() local
2063 table = fib6_get_table(cfg->fc_nlinfo.nl_net, cfg->fc_table); in ip6_route_del()
2064 if (!table) in ip6_route_del()
2067 read_lock_bh(&table->tb6_lock); in ip6_route_del()
2069 fn = fib6_locate(&table->tb6_root, in ip6_route_del()
2088 read_unlock_bh(&table->tb6_lock); in ip6_route_del()
2093 read_unlock_bh(&table->tb6_lock); in ip6_route_del()
2257 struct fib6_table *table; in rt6_get_route_info() local
2259 table = fib6_get_table(net, RT6_TABLE_INFO); in rt6_get_route_info()
2260 if (!table) in rt6_get_route_info()
2263 read_lock_bh(&table->tb6_lock); in rt6_get_route_info()
2264 fn = fib6_locate(&table->tb6_root, prefix, prefixlen, NULL, 0); in rt6_get_route_info()
2279 read_unlock_bh(&table->tb6_lock); in rt6_get_route_info()
2316 struct fib6_table *table; in rt6_get_dflt_router() local
2318 table = fib6_get_table(dev_net(dev), RT6_TABLE_DFLT); in rt6_get_dflt_router()
2319 if (!table) in rt6_get_dflt_router()
2322 read_lock_bh(&table->tb6_lock); in rt6_get_dflt_router()
2323 for (rt = table->tb6_root.leaf; rt; rt = rt->dst.rt6_next) { in rt6_get_dflt_router()
2331 read_unlock_bh(&table->tb6_lock); in rt6_get_dflt_router()
2360 struct fib6_table *table; in rt6_purge_dflt_routers() local
2363 table = fib6_get_table(net, RT6_TABLE_DFLT); in rt6_purge_dflt_routers()
2364 if (!table) in rt6_purge_dflt_routers()
2368 read_lock_bh(&table->tb6_lock); in rt6_purge_dflt_routers()
2369 for (rt = table->tb6_root.leaf; rt; rt = rt->dst.rt6_next) { in rt6_purge_dflt_routers()
2373 read_unlock_bh(&table->tb6_lock); in rt6_purge_dflt_routers()
2378 read_unlock_bh(&table->tb6_lock); in rt6_purge_dflt_routers()
3057 u32 table; in rt6_fill_node() local
3076 table = rt->rt6i_table->tb6_id; in rt6_fill_node()
3078 table = RT6_TABLE_UNSPEC; in rt6_fill_node()
3079 rtm->rtm_table = table; in rt6_fill_node()
3080 if (nla_put_u32(skb, RTA_TABLE, table)) in rt6_fill_node()
3508 struct ctl_table *table; in ipv6_route_sysctl_init() local
3510 table = kmemdup(ipv6_route_table_template, in ipv6_route_sysctl_init()
3514 if (table) { in ipv6_route_sysctl_init()
3515 table[0].data = &net->ipv6.sysctl.flush_delay; in ipv6_route_sysctl_init()
3516 table[0].extra1 = net; in ipv6_route_sysctl_init()
3517 table[1].data = &net->ipv6.ip6_dst_ops.gc_thresh; in ipv6_route_sysctl_init()
3518 table[2].data = &net->ipv6.sysctl.ip6_rt_max_size; in ipv6_route_sysctl_init()
3519 table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; in ipv6_route_sysctl_init()
3520 table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout; in ipv6_route_sysctl_init()
3521 table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval; in ipv6_route_sysctl_init()
3522 table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity; in ipv6_route_sysctl_init()
3523 table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires; in ipv6_route_sysctl_init()
3524 table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss; in ipv6_route_sysctl_init()
3525 table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; in ipv6_route_sysctl_init()
3529 table[0].procname = NULL; in ipv6_route_sysctl_init()
3532 return table; in ipv6_route_sysctl_init()