Home
last modified time | relevance | path

Searched refs:tb_id (Results 1 – 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/include/linux/
Dmroute_base.h46 u32 tb_id; member
53 unsigned short vif_index, u32 tb_id, in mr_call_vif_notifier() argument
64 .tb_id = tb_id, in mr_call_vif_notifier()
74 unsigned short vif_index, u32 tb_id, in mr_call_vif_notifiers() argument
84 .tb_id = tb_id, in mr_call_vif_notifiers()
171 u32 tb_id; member
177 struct mr_mfc *mfc, u32 tb_id, in mr_call_mfc_notifier() argument
186 .tb_id = tb_id in mr_call_mfc_notifier()
195 struct mr_mfc *mfc, u32 tb_id, in mr_call_mfc_notifiers() argument
203 .tb_id = tb_id in mr_call_mfc_notifiers()
/kernel/linux/linux-5.10/net/ipv4/
Dfib_trie.c86 .tb_id = fa->tb_id, in call_fib_entry_notifier()
103 .tb_id = fa->tb_id, in call_fib_entry_notifiers()
982 u8 tos, u32 prio, u32 tb_id, in fib_find_alias() argument
995 if (fa->tb_id > tb_id) in fib_find_alias()
997 if (fa->tb_id != tb_id) in fib_find_alias()
1019 tb = fib_get_table(net, fri->tb_id); in fib_find_matching_alias()
1029 if (fa->fa_slen == slen && fa->tb_id == fri->tb_id && in fib_find_matching_alias()
1128 (new->tb_id > last->tb_id)) in fib_insert_alias()
1187 pr_debug("Insert table=%u %08x/%d\n", tb->tb_id, key, plen); in fib_table_insert()
1197 tb->tb_id, false) : NULL; in fib_table_insert()
[all …]
Dfib_lookup.h17 u32 tb_id; member
44 u32 tb_id, const struct nl_info *info, unsigned int nlm_flags);
Dfib_rules.c113 u32 tb_id; in fib4_rule_action() local
132 tb_id = fib_rule_get_table(rule, arg); in fib4_rule_action()
133 tbl = fib_get_table(rule->fr_net, tb_id); in fib4_rule_action()
253 rule->table = table->tb_id; in fib4_rule_configure()
Dfib_frontend.c124 if (tb->tb_id == id) in fib_get_table()
135 switch (new->tb_id) { in fib_replace_table()
207 __be32 addr, u32 tb_id) in __inet_dev_addr_type() argument
221 table = fib_get_table(net, tb_id); in __inet_dev_addr_type()
236 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table() argument
238 return __inet_dev_addr_type(net, NULL, addr, tb_id); in inet_addr_type_table()
1062 u32 tb_id = l3mdev_fib_table(ifa->ifa_dev->dev); in fib_magic() local
1078 if (!tb_id) in fib_magic()
1079 tb_id = (type == RTN_UNICAST) ? RT_TABLE_MAIN : RT_TABLE_LOCAL; in fib_magic()
1081 tb = fib_new_table(net, tb_id); in fib_magic()
[all …]
Dfib_semantics.c513 int dst_len, u32 tb_id, const struct nl_info *info, in rtmsg_fib() argument
526 fri.tb_id = tb_id; in rtmsg_fib()
1380 u32 tb_id = cfg->fc_table; in fib_valid_prefsrc() local
1383 if (tb_id == RT_TABLE_MAIN) in fib_valid_prefsrc()
1384 tb_id = RT_TABLE_LOCAL; in fib_valid_prefsrc()
1387 fib_prefsrc, tb_id); in fib_valid_prefsrc()
1389 if (rc != RTN_LOCAL && tb_id != RT_TABLE_LOCAL) { in fib_valid_prefsrc()
1797 u32 tb_id = fri->tb_id; in fib_dump_info() local
1810 if (tb_id < 256) in fib_dump_info()
1811 rtm->rtm_table = tb_id; in fib_dump_info()
[all …]
Draw.c723 u32 tb_id = RT_TABLE_LOCAL; in raw_bind() local
732 tb_id = l3mdev_fib_table_by_index(sock_net(sk), in raw_bind()
733 sk->sk_bound_dev_if) ? : tb_id; in raw_bind()
736 tb_id); in raw_bind()
Dping.c308 u32 tb_id = RT_TABLE_LOCAL; in ping_check_bind_addr() local
325 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id; in ping_check_bind_addr()
326 chk_addr_ret = inet_addr_type_table(net, addr->sin_addr.s_addr, tb_id); in ping_check_bind_addr()
Daf_inet.c475 u32 tb_id = RT_TABLE_LOCAL; in __inet_bind() local
488 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id; in __inet_bind()
489 chk_addr_ret = inet_addr_type_table(net, addr->sin_addr.s_addr, tb_id); in __inet_bind()
Dipmr.c622 vifi_t vif_index, u32 tb_id) in call_ipmr_vif_entry_notifiers() argument
625 vif, vif_index, tb_id, in call_ipmr_vif_entry_notifiers()
631 struct mfc_cache *mfc, u32 tb_id) in call_ipmr_mfc_entry_notifiers() argument
634 &mfc->_c, tb_id, &net->ipv4.ipmr_seq); in call_ipmr_mfc_entry_notifiers()
/kernel/linux/linux-5.10/include/trace/events/
Dfib.h15 TP_PROTO(u32 tb_id, const struct flowi4 *flp,
18 TP_ARGS(tb_id, flp, nhc, err),
21 __field( u32, tb_id )
44 __entry->tb_id = tb_id;
95 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
Dfib6.h21 __field( u32, tb_id )
41 __entry->tb_id = table->tb6_id;
83 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
/kernel/linux/linux-5.10/net/l3mdev/
Dl3mdev.c164 u32 tb_id = 0; in l3mdev_fib_table_rcu() local
171 tb_id = dev->l3mdev_ops->l3mdev_fib_table(dev); in l3mdev_fib_table_rcu()
182 tb_id = master->l3mdev_ops->l3mdev_fib_table(master); in l3mdev_fib_table_rcu()
185 return tb_id; in l3mdev_fib_table_rcu()
192 u32 tb_id = 0; in l3mdev_fib_table_by_index() local
201 tb_id = l3mdev_fib_table_rcu(dev); in l3mdev_fib_table_by_index()
205 return tb_id; in l3mdev_fib_table_by_index()
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dfib.c55 u32 tb_id; member
198 int family, u32 tb_id) in nsim_fib_rt_init() argument
203 fib_rt->key.tb_id = tb_id; in nsim_fib_rt_init()
215 int family, u32 tb_id) in nsim_fib_rt_lookup() argument
223 key.tb_id = tb_id; in nsim_fib_rt_lookup()
239 fen_info->dst_len, AF_INET, fen_info->tb_id); in nsim_fib4_rt_create()
264 fen_info->tb_id); in nsim_fib4_rt_lookup()
280 fri.tb_id = fib4_rt->common.key.tb_id; in nsim_fib4_rt_hw_flags_set()
/kernel/linux/linux-5.10/net/ipv6/
Dfib6_rules.c165 u32 tb_id; in fib6_rule_action_alt() local
179 tb_id = fib_rule_get_table(rule, arg); in fib6_rule_action_alt()
180 table = fib6_get_table(net, tb_id); in fib6_rule_action_alt()
205 u32 tb_id; in __fib6_rule_action() local
225 tb_id = fib_rule_get_table(rule, arg); in __fib6_rule_action()
226 table = fib6_get_table(net, tb_id); in __fib6_rule_action()
Dip6mr.c679 mifi_t vif_index, u32 tb_id) in call_ip6mr_vif_entry_notifiers() argument
682 vif, vif_index, tb_id, in call_ip6mr_vif_entry_notifiers()
688 struct mfc6_cache *mfc, u32 tb_id) in call_ip6mr_mfc_entry_notifiers() argument
691 &mfc->_c, tb_id, &net->ipv6.ipmr_seq); in call_ip6mr_mfc_entry_notifiers()
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dlib.sh460 local tb_id
463 tb_id=$?
465 ip link add dev $vrf_name type vrf table $tb_id
466 ip -4 route add table $tb_id unreachable default metric 4278198272
467 ip -6 route add table $tb_id unreachable default metric 4278198272
473 local tb_id
476 tb_id=$?
478 ip -6 route del table $tb_id unreachable default metric 4278198272
479 ip -4 route del table $tb_id unreachable default metric 4278198272
/kernel/linux/linux-5.10/include/net/
Dl3mdev.h134 u32 tb_id; in l3mdev_fib_table() local
137 tb_id = l3mdev_fib_table_rcu(dev); in l3mdev_fib_table()
140 return tb_id; in l3mdev_fib_table()
Dip_fib.h185 unsigned char tb_id; /* Results */ member
209 u32 tb_id; member
226 u32 tb_id; member
249 u32 tb_id; member
Droute.h223 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c381 u32 tb_id; member
416 u32 tb_id; /* kernel fib table id */ member
706 static u32 mlxsw_sp_fix_tb_id(u32 tb_id) in mlxsw_sp_fix_tb_id() argument
709 if (tb_id == RT_TABLE_LOCAL || tb_id == RT_TABLE_DEFAULT) in mlxsw_sp_fix_tb_id()
710 tb_id = RT_TABLE_MAIN; in mlxsw_sp_fix_tb_id()
711 return tb_id; in mlxsw_sp_fix_tb_id()
715 u32 tb_id) in mlxsw_sp_vr_find() argument
720 tb_id = mlxsw_sp_fix_tb_id(tb_id); in mlxsw_sp_vr_find()
724 if (mlxsw_sp_vr_is_used(vr) && vr->tb_id == tb_id) in mlxsw_sp_vr_find()
730 int mlxsw_sp_router_tb_id_vr_id(struct mlxsw_sp *mlxsw_sp, u32 tb_id, in mlxsw_sp_router_tb_id_vr_id() argument
[all …]
Dspectrum_mr.h89 u32 tb_id,
/kernel/linux/linux-5.10/drivers/net/
Dvrf.c116 u32 tb_id; member
271 u32 table_id = vrf->tb_id; in vrf_map_register_dev()
329 u32 table_id = vrf->tb_id; in vrf_map_unregister_dev()
837 vrf->fib6_table = fib6_new_table(net, vrf->tb_id); in vrf_rt6_create()
1084 if (!fib_new_table(dev_net(dev), vrf->tb_id)) in vrf_rtable_create()
1237 return vrf->tb_id; in vrf_fib_table()
1690 vrf->tb_id = nla_get_u32(data[IFLA_VRF_TABLE]); in vrf_newlink()
1691 if (vrf->tb_id == RT_TABLE_UNSPEC) { in vrf_newlink()
1743 return nla_put_u32(skb, IFLA_VRF_TABLE, vrf->tb_id); in vrf_fillinfo()
1758 if (nla_put_u32(skb, IFLA_VRF_PORT_TABLE, vrf->tb_id)) in vrf_fill_slave_info()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Droute.c818 u32 tb_id; in nip_addrconf_dst_alloc() local
840 tb_id = NIP_RT_TABLE_LOCAL; in nip_addrconf_dst_alloc()
841 rt->rt_table = nip_fib_get_table(net, tb_id); in nip_addrconf_dst_alloc()
/kernel/linux/linux-5.10/Documentation/networking/
Dswitchdev.rst345 u32 tb_id;
349 to add/modify/delete IPv4 dst/dest_len prefix on table tb_id. The ``*fi``

12