Lines Matching defs:table

1204 					     struct fib6_table *table,
1214 fn = fib6_node_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr);
1238 /* Search through exception table */
1249 trace_fib6_table_lookup(net, &res, table, fl6);
1289 /* ip6_ins_rt is called with FREE table->tb6_lock.
1299 struct fib6_table *table;
1301 table = rt->fib6_table;
1302 spin_lock_bh(&table->tb6_lock);
1303 err = fib6_add(&table->tb6_root, rt, info, extack);
1304 spin_unlock_bh(&table->tb6_lock);
1436 /* exception hash table implementation
1440 /* Remove rt6_ex from hash table and free the memory
1509 /* Helper function to find the cached rt in the hash table
1542 /* Helper function to find the cached rt in the hash table
1683 * and exception table is indexed by a hash of
1685 * Otherwise, the exception table is indexed by
1783 /* Find cached rt in the hash table inside passed in rt
1797 * and exception table is indexed by a hash of
1828 /* Remove the passed in cached rt from the hash table that contains it */
1845 * and exception table is indexed by a hash of
1847 * Otherwise, the exception table is indexed by
1923 * and exception table is indexed by a hash of
1925 * Otherwise, the exception table is indexed by
2174 int fib6_table_lookup(struct net *net, struct fib6_table *table, int oif,
2179 fn = fib6_node_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr);
2196 trace_fib6_table_lookup(net, res, table, fl6);
2201 struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
2219 fib6_table_lookup(net, table, oif, fl6, &res, strict);
2225 /*Search through exception table */
2271 struct fib6_table *table,
2276 return ip6_pol_route(net, table, fl6->flowi6_iif, fl6, skb, flags);
2589 struct fib6_table *table,
2594 return ip6_pol_route(net, table, fl6->flowi6_oif, fl6, skb, flags);
3001 * So we keep searching in the exception table if the gateway
3040 struct fib6_table *table,
3068 fn = fib6_node_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr);
3118 trace_fib6_table_lookup(net, &res, table, fl6);
3320 struct fib6_table *table;
3323 table = fib6_get_table(net, tbid);
3324 if (!table)
3332 err = fib6_table_lookup(net, table, cfg->fc_ifindex, &fl6, res, flags);
3685 struct fib6_table *table;
3736 table = fib6_get_table(net, cfg->fc_table);
3737 if (!table) {
3739 table = fib6_new_table(net, cfg->fc_table);
3742 table = fib6_new_table(net, cfg->fc_table);
3745 if (!table)
3775 rt->fib6_table = table;
3856 struct fib6_table *table;
3864 table = rt->fib6_table;
3865 spin_lock_bh(&table->tb6_lock);
3867 spin_unlock_bh(&table->tb6_lock);
3889 struct fib6_table *table;
3894 table = rt->fib6_table;
3895 spin_lock_bh(&table->tb6_lock);
3922 lockdep_is_held(&table->tb6_lock));
3931 lockdep_is_held(&table->tb6_lock));
3952 spin_unlock_bh(&table->tb6_lock);
4022 struct fib6_table *table;
4027 table = fib6_get_table(cfg->fc_nlinfo.nl_net, cfg->fc_table);
4028 if (!table) {
4029 NL_SET_ERR_MSG(extack, "FIB table does not exist");
4035 fn = fib6_locate(&table->tb6_root,
4258 struct fib6_table *table;
4260 table = fib6_get_table(net, tb_id);
4261 if (!table)
4265 fn = fib6_locate(&table->tb6_root, prefix, prefixlen, NULL, 0, true);
4328 struct fib6_table *table;
4330 table = fib6_get_table(net, tb_id);
4331 if (!table)
4335 for_each_fib6_node_rt_rcu(&table->tb6_root) {
4376 struct fib6_table *table;
4378 table = fib6_get_table(dev_net(dev), cfg.fc_table);
4379 if (table)
4380 table->flags |= RT6_TABLE_HAS_DFLT_ROUTER;
4387 struct fib6_table *table)
4393 for_each_fib6_node_rt_rcu(&table->tb6_root) {
4407 table->flags &= ~RT6_TABLE_HAS_DFLT_ROUTER;
4412 struct fib6_table *table;
4420 hlist_for_each_entry_rcu(table, head, tb6_hlist) {
4421 if (table->flags & RT6_TABLE_HAS_DFLT_ROUTER)
4422 __rt6_purge_dflt_routers(net, table);
4635 /* Further clean up cached routes in exception table.
4835 /* called with write lock held for table with rt */
5602 u32 *pmetrics, table, rt6_flags;
5628 table = rt->fib6_table->tb6_id;
5630 table = RT6_TABLE_UNSPEC;
5631 rtm->rtm_table = table < 256 ? table : RT_TABLE_COMPAT;
5632 if (nla_put_u32(skb, RTA_TABLE, table))
6425 struct ctl_table *table;
6427 table = kmemdup(ipv6_route_table_template,
6431 if (table) {
6432 table[0].data = &net->ipv6.sysctl.ip6_rt_max_size;
6433 table[1].data = &net->ipv6.ip6_dst_ops.gc_thresh;
6434 table[2].data = &net->ipv6.sysctl.flush_delay;
6435 table[2].extra1 = net;
6436 table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval;
6437 table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout;
6438 table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval;
6439 table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity;
6440 table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires;
6441 table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss;
6442 table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval;
6443 table[10].data = &net->ipv6.sysctl.skip_notify_on_dev_down;
6447 table[1].procname = NULL;
6450 return table;