Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/linux/
Dmroute_base.h45 u32 tb_id; member
53 unsigned short vif_index, u32 tb_id) in mr_call_vif_notifier() argument
63 .tb_id = tb_id, in mr_call_vif_notifier()
73 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
178 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
204 .tb_id = tb_id in mr_call_mfc_notifiers()
/Linux-v4.19/net/l3mdev/
Dl3mdev.c57 u32 tb_id = 0; in l3mdev_fib_table_rcu() local
64 tb_id = dev->l3mdev_ops->l3mdev_fib_table(dev); in l3mdev_fib_table_rcu()
75 tb_id = master->l3mdev_ops->l3mdev_fib_table(master); in l3mdev_fib_table_rcu()
78 return tb_id; in l3mdev_fib_table_rcu()
85 u32 tb_id = 0; in l3mdev_fib_table_by_index() local
94 tb_id = l3mdev_fib_table_rcu(dev); in l3mdev_fib_table_by_index()
98 return tb_id; in l3mdev_fib_table_by_index()
/Linux-v4.19/include/trace/events/
Dfib.h15 TP_PROTO(u32 tb_id, const struct flowi4 *flp,
18 TP_ARGS(tb_id, flp, nh, err),
21 __field( u32, tb_id )
41 __entry->tb_id = tb_id;
85 __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,
/Linux-v4.19/net/ipv4/
Dfib_trie.c99 .tb_id = fa->tb_id, in call_fib_entry_notifier()
116 .tb_id = fa->tb_id, in call_fib_entry_notifiers()
987 u8 tos, u32 prio, u32 tb_id) in fib_find_alias() argument
999 if (fa->tb_id > tb_id) in fib_find_alias()
1001 if (fa->tb_id != tb_id) in fib_find_alias()
1087 (new->tb_id > last->tb_id)) in fib_insert_alias()
1144 pr_debug("Insert table=%u %08x/%d\n", tb->tb_id, key, plen); in fib_table_insert()
1154 tb->tb_id) : NULL; in fib_table_insert()
1184 (fa->tb_id != tb->tb_id) || in fib_table_insert()
1219 new_fa->tb_id = tb->tb_id; in fib_table_insert()
[all …]
Dfib_lookup.h16 u32 tb_id; member
37 int fib_dump_info(struct sk_buff *skb, u32 pid, u32 seq, int event, u32 tb_id,
41 u32 tb_id, const struct nl_info *info, unsigned int nlm_flags);
Dfib_semantics.c408 int dst_len, u32 tb_id, const struct nl_info *info, in rtmsg_fib() argument
419 err = fib_dump_info(skb, info->portid, seq, event, tb_id, in rtmsg_fib()
1001 u32 tb_id = cfg->fc_table; in fib_valid_prefsrc() local
1004 if (tb_id == RT_TABLE_MAIN) in fib_valid_prefsrc()
1005 tb_id = RT_TABLE_LOCAL; in fib_valid_prefsrc()
1008 fib_prefsrc, tb_id); in fib_valid_prefsrc()
1010 if (rc != RTN_LOCAL && tb_id != RT_TABLE_LOCAL) { in fib_valid_prefsrc()
1292 u32 tb_id, u8 type, __be32 dst, int dst_len, u8 tos, in fib_dump_info() argument
1307 if (tb_id < 256) in fib_dump_info()
1308 rtm->rtm_table = tb_id; in fib_dump_info()
[all …]
Dfib_frontend.c131 if (tb->tb_id == id) in fib_get_table()
147 switch (new->tb_id) { in fib_replace_table()
219 __be32 addr, u32 tb_id) in __inet_dev_addr_type() argument
233 table = fib_get_table(net, tb_id); in __inet_dev_addr_type()
246 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table() argument
248 return __inet_dev_addr_type(net, NULL, addr, tb_id); in inet_addr_type_table()
855 u32 tb_id = l3mdev_fib_table(ifa->ifa_dev->dev); in fib_magic() local
871 if (!tb_id) in fib_magic()
872 tb_id = (type == RTN_UNICAST) ? RT_TABLE_MAIN : RT_TABLE_LOCAL; in fib_magic()
874 tb = fib_new_table(net, tb_id); in fib_magic()
[all …]
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()
243 rule->table = table->tb_id; in fib4_rule_configure()
Draw.c724 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()
Daf_inet.c465 u32 tb_id = RT_TABLE_LOCAL; in __inet_bind() local
478 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id; in __inet_bind()
479 chk_addr_ret = inet_addr_type_table(net, addr->sin_addr.s_addr, tb_id); in __inet_bind()
Dipmr.c652 vifi_t vif_index, u32 tb_id) in call_ipmr_vif_entry_notifiers() argument
655 vif, vif_index, tb_id, in call_ipmr_vif_entry_notifiers()
661 struct mfc_cache *mfc, u32 tb_id) in call_ipmr_mfc_entry_notifiers() argument
664 &mfc->_c, tb_id, &net->ipv4.ipmr_seq); in call_ipmr_mfc_entry_notifiers()
/Linux-v4.19/tools/testing/selftests/net/forwarding/
Dlib.sh317 local tb_id
320 tb_id=$?
322 ip link add dev $vrf_name type vrf table $tb_id
323 ip -4 route add table $tb_id unreachable default metric 4278198272
324 ip -6 route add table $tb_id unreachable default metric 4278198272
330 local tb_id
333 tb_id=$?
335 ip -6 route del table $tb_id unreachable default metric 4278198272
336 ip -4 route del table $tb_id unreachable default metric 4278198272
/Linux-v4.19/include/net/
Dl3mdev.h108 u32 tb_id; in l3mdev_fib_table() local
111 tb_id = l3mdev_fib_table_rcu(dev); in l3mdev_fib_table()
114 return tb_id; in l3mdev_fib_table()
Dip_fib.h156 unsigned char tb_id; /* Results */ member
197 u32 tb_id; member
218 u32 tb_id; member
Droute.h212 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id);
/Linux-v4.19/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()
206 u32 tb_id; in __fib6_rule_action() local
226 tb_id = fib_rule_get_table(rule, arg); in __fib6_rule_action()
227 table = fib6_get_table(net, tb_id); in __fib6_rule_action()
Dip6mr.c667 mifi_t vif_index, u32 tb_id) in call_ip6mr_vif_entry_notifiers() argument
670 vif, vif_index, tb_id, in call_ip6mr_vif_entry_notifiers()
676 struct mfc6_cache *mfc, u32 tb_id) in call_ip6mr_mfc_entry_notifiers() argument
679 &mfc->_c, tb_id, &net->ipv6.ipmr_seq); in call_ip6mr_mfc_entry_notifiers()
Droute.c3471 u32 tb_id = l3mdev_fib_table(dev) ? : RT6_TABLE_INFO; in rt6_get_route_info() local
3477 table = fib6_get_table(net, tb_id); in rt6_get_route_info()
3539 u32 tb_id = l3mdev_fib_table(dev) ? : RT6_TABLE_DFLT; in rt6_get_dflt_router() local
3543 table = fib6_get_table(net, tb_id); in rt6_get_dflt_router()
3753 u32 tb_id; in addrconf_f6i_alloc() local
3778 tb_id = l3mdev_fib_table(idev->dev) ? : RT6_TABLE_LOCAL; in addrconf_f6i_alloc()
3779 f6i->fib6_table = fib6_get_table(net, tb_id); in addrconf_f6i_alloc()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c397 u32 tb_id; member
432 u32 tb_id; /* kernel fib table id */ member
720 static u32 mlxsw_sp_fix_tb_id(u32 tb_id) in mlxsw_sp_fix_tb_id() argument
723 if (tb_id == RT_TABLE_LOCAL || tb_id == RT_TABLE_DEFAULT) in mlxsw_sp_fix_tb_id()
724 tb_id = RT_TABLE_MAIN; in mlxsw_sp_fix_tb_id()
725 return tb_id; in mlxsw_sp_fix_tb_id()
729 u32 tb_id) in mlxsw_sp_vr_find() argument
734 tb_id = mlxsw_sp_fix_tb_id(tb_id); in mlxsw_sp_vr_find()
738 if (mlxsw_sp_vr_is_used(vr) && vr->tb_id == tb_id) in mlxsw_sp_vr_find()
757 u32 tb_id, in mlxsw_sp_vr_create() argument
[all …]
Dspectrum_mr.h89 u32 tb_id,
/Linux-v4.19/drivers/net/
Dvrf.c54 u32 tb_id; member
509 vrf->fib6_table = fib6_new_table(net, vrf->tb_id); in vrf_rt6_create()
732 if (!fib_new_table(dev_net(dev), vrf->tb_id)) in vrf_rtable_create()
886 return vrf->tb_id; in vrf_fib_table()
1308 vrf->tb_id = nla_get_u32(data[IFLA_VRF_TABLE]); in vrf_newlink()
1309 if (vrf->tb_id == RT_TABLE_UNSPEC) { in vrf_newlink()
1346 return nla_put_u32(skb, IFLA_VRF_TABLE, vrf->tb_id); in vrf_fillinfo()
1361 if (nla_put_u32(skb, IFLA_VRF_PORT_TABLE, vrf->tb_id)) in vrf_fill_slave_info()
/Linux-v4.19/net/decnet/
Ddn_table.c302 u32 tb_id, u8 type, u8 scope, void *dst, int dst_len, in dn_fib_dump_info() argument
317 rtm->rtm_table = tb_id; in dn_fib_dump_info()
323 if (nla_put_u32(skb, RTA_TABLE, tb_id) < 0) in dn_fib_dump_info()
381 static void dn_rtmsg_fib(int event, struct dn_fib_node *f, int z, u32 tb_id, in dn_rtmsg_fib() argument
392 err = dn_fib_dump_info(skb, portid, nlh->nlmsg_seq, event, tb_id, in dn_rtmsg_fib()
/Linux-v4.19/Documentation/networking/
Dswitchdev.txt333 u32 tb_id;
337 to add/modify/delete IPv4 dst/dest_len prefix on table tb_id. The *fi
/Linux-v4.19/drivers/net/ethernet/rocker/
Drocker_ofdpa.c2271 int dst_len, struct fib_info *fi, u32 tb_id, in ofdpa_port_fib_ipv4() argument
2759 fen_info->tb_id, 0); in ofdpa_fib4_add()
2780 fen_info->tb_id, OFDPA_OP_FLAG_REMOVE); in ofdpa_fib4_del()

12