/Linux-v4.19/net/ipv4/ |
D | fib_semantics.c | 64 int nhsel; const struct fib_nh *nh; \ 65 for (nhsel = 0, nh = (fi)->fib_nh; \ 70 int nhsel; struct fib_nh *nexthop_nh; \ 71 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 80 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \ 85 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 160 static void free_nh_exceptions(struct fib_nh *nh) in free_nh_exceptions() 265 const struct fib_nh *onh = ofi->fib_nh; in nh_comp() 344 struct fib_nh *nh; in ip_fib_check_default() 443 n = neigh_lookup(&arp_tbl, &fi->fib_nh[0].nh_gw, fi->fib_dev); in fib_detect_death() [all …]
|
D | route.c | 635 static void update_or_create_fnhe(struct fib_nh *nh, __be32 daddr, __be32 gw, in update_or_create_fnhe() 779 struct fib_nh *nh = &FIB_RES_NH(res); in __ip_do_redirect() 1025 struct fib_nh *nh = &FIB_RES_NH(res); in __ip_rt_update_pmtu() 1290 static void ip_del_fnhe(struct fib_nh *nh, __be32 daddr) in ip_del_fnhe() 1320 static struct fib_nh_exception *find_exception(struct fib_nh *nh, __be32 daddr) in find_exception() 1354 struct fib_nh *nh = &fi->fib_nh[res->nh_sel]; in ip_mtu_from_fib_result() 1424 static bool rt_cache_route(struct fib_nh *nh, struct rtable *rt) in rt_cache_route() 1531 struct fib_nh *nh = &FIB_RES_NH(*res); in rt_set_nexthop() 2073 struct fib_nh *nh = &FIB_RES_NH(*res); in ip_route_input_slow() 2253 struct fib_nh *nh = &FIB_RES_NH(*res); in __mkroute_output()
|
D | fib_trie.c | 1471 const struct fib_nh *nh = &fi->fib_nh[nhsel]; in fib_table_lookup() 2630 if (fi && fi->fib_nh->nh_gw) in fib_flag_trans() 2681 fi->fib_nh->nh_gw, flags, 0, 0, in fib_route_seq_show()
|
D | fib_frontend.c | 368 struct fib_nh *nh = &res.fi->fib_nh[ret]; in __fib_validate_source()
|
/Linux-v4.19/include/net/ |
D | ip_fib.h | 79 struct fib_nh { struct 127 struct fib_nh fib_nh[0]; member 128 #define fib_dev fib_nh[0].nh_dev 165 #define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel]) 167 #define FIB_RES_NH(res) ((res).fi->fib_nh[0]) 176 __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh); 202 struct fib_nh *fib_nh; member
|
D | dn_fib.h | 42 struct dn_fib_nh fib_nh[0]; member 43 #define dn_fib_dev fib_nh[0].nh_dev 48 #define DN_FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
|
D | route.h | 48 struct fib_nh;
|
/Linux-v4.19/net/decnet/ |
D | dn_fib.c | 54 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++) 57 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++) 120 const struct dn_fib_nh *onh = ofi->fib_nh; in dn_fib_nh_comp() 322 fi->fib_nh->nh_oif != nla_get_u32(attrs[RTA_OIF])) in dn_fib_create_info() 326 fi->fib_nh->nh_gw != nla_get_le16(attrs[RTA_GATEWAY])) in dn_fib_create_info() 329 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info() 345 fi->fib_nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]); in dn_fib_create_info() 360 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info() 366 nh->nh_dev = dev_get_by_index(&init_net, fi->fib_nh->nh_oif); in dn_fib_create_info()
|
D | dn_table.c | 65 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++) 239 if ((!attrs[RTA_OIF] || nla_get_u32(attrs[RTA_OIF]) == fi->fib_nh->nh_oif) && in dn_fib_nh_match() 240 (!attrs[RTA_GATEWAY] || nla_get_le16(attrs[RTA_GATEWAY]) != fi->fib_nh->nh_gw)) in dn_fib_nh_match() 338 if (fi->fib_nh->nh_gw && in dn_fib_dump_info() 339 nla_put_le16(skb, RTA_GATEWAY, fi->fib_nh->nh_gw) < 0) in dn_fib_dump_info() 342 if (fi->fib_nh->nh_oif && in dn_fib_dump_info() 343 nla_put_u32(skb, RTA_OIF, fi->fib_nh->nh_oif) < 0) in dn_fib_dump_info()
|
D | dn_route.c | 950 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in dn_fib_rules_map_destination()
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | ipt_rpfilter.c | 52 struct fib_nh *nh = &res.fi->fib_nh[ret]; in rpfilter_lookup_reverse()
|
D | nft_fib_ipv4.c | 154 struct fib_nh *nh = &res.fi->fib_nh[i]; in nft_fib4_eval()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 2560 struct fib_nh *fib_nh; member 3495 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument 3498 struct net_device *dev = fib_nh->nh_dev; in mlxsw_sp_nexthop4_ipip_type() 3501 fib_nh->nh_parent->fib_type == RTN_UNICAST && in mlxsw_sp_nexthop4_ipip_type() 3522 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_type_init() argument 3525 struct net_device *dev = fib_nh->nh_dev; in mlxsw_sp_nexthop4_type_init() 3567 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument 3569 struct net_device *dev = fib_nh->nh_dev; in mlxsw_sp_nexthop4_init() 3574 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init() 3576 nh->nh_weight = fib_nh->nh_weight; in mlxsw_sp_nexthop4_init() [all …]
|
/Linux-v4.19/include/trace/events/ |
D | fib.h | 16 const struct fib_nh *nh, int err),
|
/Linux-v4.19/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 2274 const struct fib_nh *nh; in ofdpa_port_fib_ipv4() 2289 nh = fi->fib_nh; in ofdpa_port_fib_ipv4() 2762 fen_info->fi->fib_nh->nh_flags |= RTNH_F_OFFLOAD; in ofdpa_fib4_add() 2777 fen_info->fi->fib_nh->nh_flags &= ~RTNH_F_OFFLOAD; in ofdpa_fib4_del() 2804 flow_entry->fi->fib_nh->nh_flags &= ~RTNH_F_OFFLOAD; in ofdpa_fib4_abort()
|
/Linux-v4.19/net/core/ |
D | filter.c | 4247 struct fib_nh *nh; in bpf_ipv4_fib_lookup() 4320 nh = &res.fi->fib_nh[res.nh_sel]; in bpf_ipv4_fib_lookup()
|