/openbmc/linux/net/ipv4/ |
H A D | fib_frontend.c | 56 main_table = fib_trie_table(RT_TABLE_MAIN, NULL); in fib4_rules_init() 82 id = RT_TABLE_MAIN; in fib_new_table() 88 alias = fib_new_table(net, RT_TABLE_MAIN); in fib_new_table() 95 case RT_TABLE_MAIN: in fib_new_table() 119 id = RT_TABLE_MAIN; in fib_get_table() 137 case RT_TABLE_MAIN: in fib_replace_table() 174 main_table = fib_get_table(net, RT_TABLE_MAIN); in fib_unmerge() 580 cfg->fc_table = RT_TABLE_MAIN; in rtentry_to_fib_config() 848 cfg->fc_table = RT_TABLE_MAIN; in rtm_to_fib_config() 1090 tb_id = (type == RTN_UNICAST) ? RT_TABLE_MAIN : RT_TABLE_LOCAL; in fib_magic()
|
H A D | fib_rules.c | 63 if (rule->table != RT_TABLE_LOCAL && rule->table != RT_TABLE_MAIN && in fib4_rule_default() 401 err = fib_default_rule_add(ops, 0x7FFE, RT_TABLE_MAIN, 0); in fib_default_rules_init()
|
H A D | fib_semantics.c | 1169 if (table && table != RT_TABLE_MAIN) in fib_check_nh_v4_gw() 1368 if (tb_id == RT_TABLE_MAIN) in fib_valid_prefsrc() 1877 int tb_id = l3mdev_fib_table(dev) ? : RT_TABLE_MAIN; in fib_sync_down_addr()
|
H A D | fib_trie.c | 2630 else if (tb->tb_id == RT_TABLE_MAIN) in fib_table_print() 2899 tb = fib_get_table(seq_file_net(seq), RT_TABLE_MAIN); in fib_route_seq_start()
|
H A D | nexthop.c | 2544 u32 tb_id = (cfg->dev ? l3mdev_fib_table(cfg->dev) : RT_TABLE_MAIN); in nh_create_ipv4()
|
H A D | route.c | 3279 u32 table_id = RT_TABLE_MAIN; in inet_rtm_getroute()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | fib_lookup.c | 59 .tbid = RT_TABLE_MAIN, }, 67 .tbid = RT_TABLE_MAIN, },
|
/openbmc/linux/net/phonet/ |
H A D | pn_netlink.c | 175 rtm->rtm_table = RT_TABLE_MAIN; in fill_route() 242 if (rtm->rtm_table != RT_TABLE_MAIN || rtm->rtm_type != RTN_UNICAST) in route_doit()
|
/openbmc/linux/include/net/ |
H A D | ip6_fib.h | 397 #define RT6_TABLE_MAIN RT_TABLE_MAIN 407 #define FIB6_TABLE_MIN RT_TABLE_MAIN
|
H A D | ip_fib.h | 290 #define TABLE_MAIN_INDEX (RT_TABLE_MAIN & (FIB_TABLE_HASHSZ - 1)) 319 tb = fib_get_table(net, RT_TABLE_MAIN); in fib_lookup()
|
/openbmc/phosphor-networkd/src/ |
H A D | rtnetlink.cpp | 120 if (rtm.rtm_table != RT_TABLE_MAIN || rtm.rtm_dst_len != 0) in gatewayFromRtm()
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_router_ipv4_user.c | 121 if (rt_msg->rtm_table != RT_TABLE_MAIN) in read_route() 285 req.rt.rtm_table = RT_TABLE_MAIN; in get_route_table()
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_router.c | 87 tb_id = RT_TABLE_MAIN; in prestera_fix_tb_id() 1003 fc_key.kern_tb_id = RT_TABLE_MAIN; in __prestera_k_arb_util_fib_overlaps() 1019 if (fc->key.kern_tb_id == RT_TABLE_MAIN) { in __prestera_k_arb_util_fib_overlapped()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_nve_vxlan.c | 158 config->ul_tb_id = RT_TABLE_MAIN; in mlxsw_sp_nve_vxlan_config()
|
H A D | spectrum_router.c | 816 tb_id = RT_TABLE_MAIN; in mlxsw_sp_fix_tb_id() 1077 tb_id = l3mdev_fib_table(d) ? : RT_TABLE_MAIN; in mlxsw_sp_ipip_dev_ul_tb_id() 1079 tb_id = RT_TABLE_MAIN; in mlxsw_sp_ipip_dev_ul_tb_id() 1470 u32 ul_tb_id = l3mdev_fib_table(ul_dev) ? : RT_TABLE_MAIN; in mlxsw_sp_ipip_entry_matches_decap() 1841 u32 ul_tb_id = l3mdev_fib_table(ul_dev) ? : RT_TABLE_MAIN; in mlxsw_sp_netdevice_ipip_ul_vrf_event() 6556 if (fib4_entry->tb_id == RT_TABLE_MAIN && in mlxsw_sp_fib4_allow_replace() 7245 if (rt->fib6_table->tb6_id == RT_TABLE_MAIN && in mlxsw_sp_fib6_allow_replace() 8395 vr = mlxsw_sp_vr_get(mlxsw_sp, tb_id ? : RT_TABLE_MAIN, extack); in mlxsw_sp_rif_create() 11305 lb_rif = mlxsw_sp_ul_rif_get(mlxsw_sp, RT_TABLE_MAIN, router->lb_crif, in mlxsw_sp_lb_rif_init()
|
/openbmc/linux/include/uapi/linux/ |
H A D | rtnetlink.h | 352 RT_TABLE_MAIN=254, enumerator
|
/openbmc/linux/net/mpls/ |
H A D | af_mpls.c | 1825 if (rtm->rtm_table != RT_TABLE_MAIN) { in rtm_to_route_config() 1989 rtm->rtm_table = RT_TABLE_MAIN; in mpls_dump_route() 2183 if ((filter.table_id && filter.table_id != RT_TABLE_MAIN) || in mpls_dump_routes() 2469 r->rtm_table = RT_TABLE_MAIN; in mpls_getroute()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | udpgso.c | 386 rt->rtm_table = RT_TABLE_MAIN; in set_route_mtu()
|
H A D | ipsec.c | 442 req.rt.rtm_table = RT_TABLE_MAIN; in ip4_route_set()
|
/openbmc/linux/net/core/ |
H A D | filter.c | 5905 u32 tbid = l3mdev_fib_table_rcu(dev) ? : RT_TABLE_MAIN; in bpf_ipv4_fib_lookup() 6047 u32 tbid = l3mdev_fib_table_rcu(dev) ? : RT_TABLE_MAIN; in bpf_ipv6_fib_lookup()
|
/openbmc/linux/net/ipv6/ |
H A D | route.c | 3349 u32 tbid = l3mdev_fib_table_rcu(dev) ? : RT_TABLE_MAIN; in ip6_route_check_nh_onlink()
|