/kernel/linux/linux-5.10/include/trace/events/ |
H A D | fib.h | 15 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,
|
H A D | fib6.h | 21 __field( u32, tb_id ) 41 __entry->tb_id = table->tb6_id; 83 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | fib.h | 15 TP_PROTO(u32 tb_id, const struct flowi4 *flp, 18 TP_ARGS(tb_id, flp, nhc, err), 21 __field( u32, tb_id ) 43 __entry->tb_id = tb_id; 94 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
|
H A D | fib6.h | 21 __field( u32, tb_id ) 41 __entry->tb_id = table->tb6_id; 80 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | fib_trie.c | 86 .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() 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() 981 fib_find_alias(struct hlist_head *fah, u8 slen, u8 tos, u32 prio, u32 tb_id, bool find_first) fib_find_alias() argument 1639 u32 tb_id = fa_to_delete->tb_id; fib_notify_alias_delete() local [all...] |
H A D | fib_lookup.h | 17 u32 tb_id; member 44 u32 tb_id, const struct nl_info *info, unsigned int nlm_flags);
|
H A D | fib_semantics.c | 514 int dst_len, u32 tb_id, const struct nl_info *info, in rtmsg_fib() 527 fri.tb_id = tb_id; in rtmsg_fib() 1385 u32 tb_id = cfg->fc_table; in fib_valid_prefsrc() local 1388 if (tb_id == RT_TABLE_MAIN) in fib_valid_prefsrc() 1389 tb_id = RT_TABLE_LOCAL; in fib_valid_prefsrc() 1392 fib_prefsrc, tb_id); in fib_valid_prefsrc() 1394 if (rc != RTN_LOCAL && tb_id != RT_TABLE_LOCAL) { in fib_valid_prefsrc() 1804 u32 tb_id = fri->tb_id; in fib_dump_info() local 513 rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len, u32 tb_id, const struct nl_info *info, unsigned int nlm_flags) rtmsg_fib() argument 1898 int tb_id = l3mdev_fib_table(dev) ? : RT_TABLE_MAIN; fib_sync_down_addr() local [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | fib_trie.c | 87 .tb_id = fa->tb_id, in call_fib_entry_notifier() 104 .tb_id = fa->tb_id, in call_fib_entry_notifiers() 983 dscp_t dscp, u32 prio, u32 tb_id, in fib_find_alias() 1000 if (fa->tb_id > tb_id) in fib_find_alias() 1002 if (fa->tb_id != tb_id) in fib_find_alias() 1024 tb = fib_get_table(net, fri->tb_id); in fib_find_matching_alias() 982 fib_find_alias(struct hlist_head *fah, u8 slen, dscp_t dscp, u32 prio, u32 tb_id, bool find_first) fib_find_alias() argument 1687 u32 tb_id = fa_to_delete->tb_id; fib_notify_alias_delete() local [all...] |
H A D | fib_lookup.h | 18 u32 tb_id; member 45 u32 tb_id, const struct nl_info *info, unsigned int nlm_flags);
|
H A D | fib_semantics.c | 514 int dst_len, u32 tb_id, const struct nl_info *info, in rtmsg_fib() 527 fri.tb_id = tb_id; in rtmsg_fib() 1365 u32 tb_id = cfg->fc_table; in fib_valid_prefsrc() local 1368 if (tb_id == RT_TABLE_MAIN) in fib_valid_prefsrc() 1369 tb_id = RT_TABLE_LOCAL; in fib_valid_prefsrc() 1372 fib_prefsrc, tb_id); in fib_valid_prefsrc() 1374 if (rc != RTN_LOCAL && tb_id != RT_TABLE_LOCAL) { in fib_valid_prefsrc() 1785 u32 tb_id = fri->tb_id; in fib_dump_info() local 513 rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len, u32 tb_id, const struct nl_info *info, unsigned int nlm_flags) rtmsg_fib() argument 1878 int tb_id = l3mdev_fib_table(dev) ? : RT_TABLE_MAIN; fib_sync_down_addr() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | mroute_base.h | 46 u32 tb_id; member 53 unsigned short vif_index, u32 tb_id, in mr_call_vif_notifier() 64 .tb_id = tb_id, in mr_call_vif_notifier() 74 unsigned short vif_index, u32 tb_id, in mr_call_vif_notifiers() 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() 186 .tb_id in mr_call_mfc_notifier() 49 mr_call_vif_notifier(struct notifier_block *nb, unsigned short family, enum fib_event_type event_type, struct vif_device *vif, unsigned short vif_index, u32 tb_id, struct netlink_ext_ack *extack) mr_call_vif_notifier() argument 70 mr_call_vif_notifiers(struct net *net, unsigned short family, enum fib_event_type event_type, struct vif_device *vif, unsigned short vif_index, u32 tb_id, unsigned int *ipmr_seq) mr_call_vif_notifiers() argument 174 mr_call_mfc_notifier(struct notifier_block *nb, unsigned short family, enum fib_event_type event_type, struct mr_mfc *mfc, u32 tb_id, struct netlink_ext_ack *extack) mr_call_mfc_notifier() argument 192 mr_call_mfc_notifiers(struct net *net, unsigned short family, enum fib_event_type event_type, struct mr_mfc *mfc, u32 tb_id, unsigned int *ipmr_seq) mr_call_mfc_notifiers() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | mroute_base.h | 48 u32 tb_id; member 56 unsigned short vif_index, u32 tb_id, in mr_call_vif_notifier() 67 .tb_id = tb_id, in mr_call_vif_notifier() 78 unsigned short vif_index, u32 tb_id, in mr_call_vif_notifiers() 88 .tb_id = tb_id, in mr_call_vif_notifiers() 176 u32 tb_id; member 182 struct mr_mfc *mfc, u32 tb_id, in mr_call_mfc_notifier() 191 .tb_id in mr_call_mfc_notifier() 51 mr_call_vif_notifier(struct notifier_block *nb, unsigned short family, enum fib_event_type event_type, struct vif_device *vif, struct net_device *vif_dev, unsigned short vif_index, u32 tb_id, struct netlink_ext_ack *extack) mr_call_vif_notifier() argument 73 mr_call_vif_notifiers(struct net *net, unsigned short family, enum fib_event_type event_type, struct vif_device *vif, struct net_device *vif_dev, unsigned short vif_index, u32 tb_id, unsigned int *ipmr_seq) mr_call_vif_notifiers() argument 179 mr_call_mfc_notifier(struct notifier_block *nb, unsigned short family, enum fib_event_type event_type, struct mr_mfc *mfc, u32 tb_id, struct netlink_ext_ack *extack) mr_call_mfc_notifier() argument 197 mr_call_mfc_notifiers(struct net *net, unsigned short family, enum fib_event_type event_type, struct mr_mfc *mfc, u32 tb_id, unsigned int *ipmr_seq) mr_call_mfc_notifiers() argument [all...] |
/kernel/linux/linux-5.10/net/l3mdev/ |
H A D | l3mdev.c | 164 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-6.6/net/l3mdev/ |
H A D | l3mdev.c | 164 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-6.6/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_router_hw.c | 111 u32 tb_id) in __prestera_vr_find() 116 if (vr->tb_id == tb_id) in __prestera_vr_find() 124 u32 tb_id, in __prestera_vr_create() 136 vr->tb_id = tb_id; in __prestera_vr_create() 160 static struct prestera_vr *prestera_vr_get(struct prestera_switch *sw, u32 tb_id, in prestera_vr_get() argument 165 vr = __prestera_vr_find(sw, tb_id); in prestera_vr_get() 169 vr = __prestera_vr_create(sw, tb_id, extack); in prestera_vr_get() 249 u32 tb_id, cons in prestera_rif_entry_create() 110 __prestera_vr_find(struct prestera_switch *sw, u32 tb_id) __prestera_vr_find() argument 123 __prestera_vr_create(struct prestera_switch *sw, u32 tb_id, struct netlink_ext_ack *extack) __prestera_vr_create() argument 247 prestera_rif_entry_create(struct prestera_switch *sw, struct prestera_rif_entry_key *k, u32 tb_id, const unsigned char *addr) prestera_rif_entry_create() argument [all...] |
H A D | prestera_router_hw.h | 10 u32 tb_id; /* key (kernel fib table id) */ member 96 u32 tb_id; member 130 u32 tb_id, const unsigned char *addr);
|
H A D | prestera_router.c | 42 u32 kern_tb_id; /* tb_id from kernel (not fixed) */ 82 static u32 prestera_fix_tb_id(u32 tb_id) in prestera_fix_tb_id() argument 84 if (tb_id == RT_TABLE_UNSPEC || in prestera_fix_tb_id() 85 tb_id == RT_TABLE_LOCAL || in prestera_fix_tb_id() 86 tb_id == RT_TABLE_DEFAULT) in prestera_fix_tb_id() 87 tb_id = RT_TABLE_MAIN; in prestera_fix_tb_id() 89 return tb_id; in prestera_fix_tb_id() 103 key->kern_tb_id = fen_info->tb_id; in prestera_util_fen_info2fib_cache_key() 247 static int prestera_util_kern_get_route(struct fib_result *res, u32 tb_id, in prestera_util_kern_get_route() argument 261 __prestera_util_kern_n_is_reachable_v4(u32 tb_id, __be3 argument 282 prestera_util_kern_n_is_reachable(u32 tb_id, struct prestera_ip_addr *addr, struct net_device *dev) prestera_util_kern_n_is_reachable() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
H A D | fib.c | 55 u32 tb_id; member 198 int family, u32 tb_id) in nsim_fib_rt_init() 203 fib_rt->key.tb_id = tb_id; in nsim_fib_rt_init() 215 int family, u32 tb_id) in nsim_fib_rt_lookup() 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 in nsim_fib4_rt_hw_flags_set() 195 nsim_fib_rt_init(struct nsim_fib_data *data, struct nsim_fib_rt *fib_rt, const void *addr, size_t addr_len, unsigned int prefix_len, int family, u32 tb_id) nsim_fib_rt_init() argument 212 nsim_fib_rt_lookup(struct rhashtable *fib_rt_ht, const void *addr, size_t addr_len, unsigned int prefix_len, int family, u32 tb_id) nsim_fib_rt_lookup() argument [all...] |
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | fib6_rules.c | 165 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()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | fib6_rules.c | 166 u32 tb_id; in fib6_rule_action_alt() local 180 tb_id = fib_rule_get_table(rule, arg); in fib6_rule_action_alt() 181 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()
|
/kernel/linux/linux-6.6/drivers/net/netdevsim/ |
H A D | fib.c | 72 u32 tb_id; member 244 int family, u32 tb_id) in nsim_fib_rt_init() 249 fib_rt->key.tb_id = tb_id; in nsim_fib_rt_init() 261 int family, u32 tb_id) in nsim_fib_rt_lookup() 269 key.tb_id = tb_id; in nsim_fib_rt_lookup() 285 fen_info->dst_len, AF_INET, fen_info->tb_id); in nsim_fib4_rt_create() 310 fen_info->tb_id); in nsim_fib4_rt_lookup() 325 fri.tb_id in nsim_fib4_rt_offload_failed_flag_set() 241 nsim_fib_rt_init(struct nsim_fib_data *data, struct nsim_fib_rt *fib_rt, const void *addr, size_t addr_len, unsigned int prefix_len, int family, u32 tb_id) nsim_fib_rt_init() argument 258 nsim_fib_rt_lookup(struct rhashtable *fib_rt_ht, const void *addr, size_t addr_len, unsigned int prefix_len, int family, u32 tb_id) nsim_fib_rt_lookup() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | lib.sh | 460 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/ |
H A D | l3mdev.h | 134 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()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | l3mdev.h | 134 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 381 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() 720 tb_id = mlxsw_sp_fix_tb_id(tb_id); in mlxsw_sp_vr_find() 714 mlxsw_sp_vr_find(struct mlxsw_sp *mlxsw_sp, u32 tb_id) mlxsw_sp_vr_find() argument 730 mlxsw_sp_router_tb_id_vr_id(struct mlxsw_sp *mlxsw_sp, u32 tb_id, u16 *vr_id) mlxsw_sp_router_tb_id_vr_id() argument 760 mlxsw_sp_vr_create(struct mlxsw_sp *mlxsw_sp, u32 tb_id, struct netlink_ext_ack *extack) mlxsw_sp_vr_create() argument 825 mlxsw_sp_vr_get(struct mlxsw_sp *mlxsw_sp, u32 tb_id, struct netlink_ext_ack *extack) mlxsw_sp_vr_get() argument 973 u32 tb_id; mlxsw_sp_ipip_dev_ul_tb_id() local 1142 mlxsw_sp_router_ip2me_fib_entry_find(struct mlxsw_sp *mlxsw_sp, u32 tb_id, enum mlxsw_sp_l3proto proto, const union mlxsw_sp_l3addr *addr, enum mlxsw_sp_fib_entry_type type) mlxsw_sp_router_ip2me_fib_entry_find() argument 4537 u32 tb_id = mlxsw_sp_fix_tb_id(fen_info->tb_id); mlxsw_sp_fib4_entry_type_set() local 4831 mlxsw_sp_fib_node_get(struct mlxsw_sp *mlxsw_sp, u32 tb_id, const void *addr, size_t addr_len, unsigned char prefix_len, enum mlxsw_sp_l3proto proto) mlxsw_sp_fib_node_get() argument 6512 u32 tb_id = l3mdev_fib_table(params->dev); mlxsw_sp_rif_create() local 7753 mlxsw_sp_ul_rif_get(struct mlxsw_sp *mlxsw_sp, u32 tb_id, struct netlink_ext_ack *extack) mlxsw_sp_ul_rif_get() argument [all...] |