/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag_mp.c | 114 struct fib_nh *fib_nh0, *fib_nh1; in mlx5_lag_fib_route_event() 129 struct fib_nh *nh = fib_info_nh(fi, 0); in mlx5_lag_fib_route_event() 166 struct fib_nh *fib_nh, in mlx5_lag_fib_nexthop_event() argument 177 int i = mlx5_lag_dev_get_netdev_idx(ldev, fib_nh->fib_nh_dev); in mlx5_lag_fib_nexthop_event() 194 struct fib_nh *fib_nh; in mlx5_lag_fib_update() local 209 fib_nh = fib_work->fnh_info.fib_nh; in mlx5_lag_fib_update() 212 fib_work->fnh_info.fib_nh, in mlx5_lag_fib_update() 213 fib_nh->nh_parent); in mlx5_lag_fib_update() 214 fib_info_put(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_update() 294 fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_event()
|
/Linux-v5.4/net/ipv4/ |
D | fib_semantics.c | 66 int nhsel; const struct fib_nh *nh; \ 67 for (nhsel = 0, nh = (fi)->fib_nh; \ 72 int nhsel; struct fib_nh *nexthop_nh; \ 73 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 82 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \ 87 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 221 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument 224 if (fib_nh->nh_tclassid) in fib_nh_release() 227 fib_nh_common_release(&fib_nh->nh_common); in fib_nh_release() 284 const struct fib_nh *onh; in nh_comp() [all …]
|
D | nexthop.c | 80 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single() 212 struct fib_nh *fib_nh; in nh_fill_node() local 256 fib_nh = &nhi->fib_nh; in nh_fill_node() 257 if (fib_nh->fib_nh_gw_family && in nh_fill_node() 258 nla_put_u32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node() 304 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single() 463 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh() 503 if (ipv4_good_nh(&nhi->fib_nh)) in nexthop_select_path() 1144 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local 1156 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4() [all …]
|
D | route.c | 1585 struct fib_nh *nh; in rt_set_nexthop() 1587 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
|
/Linux-v5.4/include/net/ |
D | ip_fib.h | 103 struct fib_nh { struct 156 struct fib_nh fib_nh[0]; member 219 struct fib_nh *fib_nh; member 438 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, 444 int fib_nh_init(struct net *net, struct fib_nh *fib_nh, 447 void fib_nh_release(struct net *net, struct fib_nh *fib_nh); 465 struct fib_nh *nh; in fib_combine_itag() 467 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
|
D | nexthop.h | 58 struct fib_nh fib_nh; member 216 BUILD_BUG_ON(offsetof(struct fib_nh, nh_common) != 0); in nexthop_fib_nhc() 245 return &fi->fib_nh[nhsel].nh_common; in fib_info_nhc() 249 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel) in fib_info_nh() 253 return &fi->fib_nh[nhsel]; in fib_info_nh()
|
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 | 46 struct fib_nh;
|
/Linux-v5.4/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() 285 fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); in dn_fib_create_info() 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 | 942 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in dn_fib_rules_map_destination()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 2673 struct fib_nh *fib_nh; member 3675 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument 3678 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_ipip_type() 3681 fib_nh->nh_parent->fib_type == RTN_UNICAST && in mlxsw_sp_nexthop4_ipip_type() 3702 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_type_init() argument 3705 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_type_init() 3747 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument 3749 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_init() 3754 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init() 3756 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init() [all …]
|
/Linux-v5.4/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 2271 const struct fib_nh *nh; in ofdpa_port_fib_ipv4() 2737 struct fib_nh *nh; in ofdpa_fib4_add() 2760 struct fib_nh *nh; in ofdpa_fib4_del() 2788 struct fib_nh *nh; in ofdpa_fib4_abort()
|