/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag_mp.c | 118 struct fib_nh *fib_nh0, *fib_nh1; in mlx5_lag_fib_route_event() 133 struct fib_nh *nh = fib_info_nh(fi, 0); in mlx5_lag_fib_route_event() 176 struct fib_nh *fib_nh, in mlx5_lag_fib_nexthop_event() argument 187 int i = mlx5_lag_dev_get_netdev_idx(ldev, fib_nh->fib_nh_dev); in mlx5_lag_fib_nexthop_event() 204 struct fib_nh *fib_nh; in mlx5_lag_fib_update() local 217 fib_nh = fib_work->fnh_info.fib_nh; in mlx5_lag_fib_update() 220 fib_work->fnh_info.fib_nh, in mlx5_lag_fib_update() 221 fib_nh->nh_parent); in mlx5_lag_fib_update() 222 fib_info_put(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_update() 297 fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_event()
|
/Linux-v5.15/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); \ 219 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument 222 if (fib_nh->nh_tclassid) in fib_nh_release() 225 fib_nh_common_release(&fib_nh->nh_common); in fib_nh_release() 282 const struct fib_nh *onh; in nh_comp() [all …]
|
D | nexthop.c | 495 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single() 696 struct fib_nh *fib_nh; in nh_fill_node() local 745 fib_nh = &nhi->fib_nh; in nh_fill_node() 746 if (fib_nh->fib_nh_gw_family && in nh_fill_node() 747 nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node() 807 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single() 1137 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh() 1175 if (ipv4_good_nh(&nhi->fib_nh)) in nexthop_select_path_hthr() 2489 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local 2502 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4() [all …]
|
D | route.c | 1581 struct fib_nh *nh; in rt_set_nexthop() 1583 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
|
/Linux-v5.15/include/net/ |
D | ip_fib.h | 103 struct fib_nh { struct 156 struct fib_nh fib_nh[]; member 232 struct fib_nh *fib_nh; member 516 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, 522 int fib_nh_init(struct net *net, struct fib_nh *fib_nh, 525 void fib_nh_release(struct net *net, struct fib_nh *fib_nh); 547 struct fib_nh *nh; in fib_combine_itag() 549 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
|
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 | nexthop.h | 67 struct fib_nh fib_nh; member 370 BUILD_BUG_ON(offsetof(struct fib_nh, nh_common) != 0); in nexthop_fib_nhc() 462 return &fi->fib_nh[nhsel].nh_common; in fib_info_nhc() 466 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel) in fib_info_nh() 470 return &fi->fib_nh[nhsel]; in fib_info_nh()
|
D | route.h | 46 struct fib_nh;
|
/Linux-v5.15/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++) 119 const struct dn_fib_nh *onh = ofi->fib_nh; in dn_fib_nh_comp() 284 fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); in dn_fib_create_info() 321 fi->fib_nh->nh_oif != nla_get_u32(attrs[RTA_OIF])) in dn_fib_create_info() 325 fi->fib_nh->nh_gw != nla_get_le16(attrs[RTA_GATEWAY])) in dn_fib_create_info() 328 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info() 344 fi->fib_nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]); in dn_fib_create_info() 359 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info() 365 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-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 2866 struct fib_nh *fib_nh; member 3730 nh->key.fib_nh->fib_nh_flags |= RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh() 3732 nh->key.fib_nh->fib_nh_flags &= ~RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh() 4190 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument 4193 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_ipip_type() 4196 fib_nh->nh_parent->fib_type == RTN_UNICAST && in mlxsw_sp_nexthop4_ipip_type() 4254 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument 4256 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_init() 4261 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init() 4263 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init() [all …]
|
/Linux-v5.15/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 2271 const struct fib_nh *nh; in ofdpa_port_fib_ipv4() 2725 struct fib_nh *nh; in ofdpa_fib4_add() 2748 struct fib_nh *nh; in ofdpa_fib4_del() 2776 struct fib_nh *nh; in ofdpa_fib4_abort()
|