Home
last modified time | relevance | path

Searched refs:fib_nh (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.c213 struct fib_nh *fib_nh, in mlx5_lag_fib_nexthop_event() argument
224 int i = mlx5_lag_dev_get_netdev_idx(ldev, fib_nh->fib_nh_dev); in mlx5_lag_fib_nexthop_event()
241 struct fib_nh *fib_nh; in mlx5_lag_fib_update() local
254 fib_nh = fib_work->fnh_info.fib_nh; in mlx5_lag_fib_update()
257 fib_work->fnh_info.fib_nh, in mlx5_lag_fib_update()
258 fib_nh->nh_parent); in mlx5_lag_fib_update()
259 fib_info_put(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_update()
327 fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_event()
/openbmc/linux/net/ipv4/
H A Dfib_semantics.c70 int nhsel; const struct fib_nh *nh; \
71 for (nhsel = 0, nh = (fi)->fib_nh; \
76 int nhsel; struct fib_nh *nexthop_nh; \
77 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
86 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
91 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
223 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument
226 if (fib_nh->nh_tclassid) in fib_nh_release()
229 fib_nh_common_release(&fib_nh->nh_common); in fib_nh_release()
290 const struct fib_nh *onh; in nh_comp()
[all …]
H A Dnexthop.c496 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
698 struct fib_nh *fib_nh; in nh_fill_node() local
747 fib_nh = &nhi->fib_nh; in nh_fill_node()
748 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
749 nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node()
809 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1139 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
1162 return ipv4_good_nh(&nhi->fib_nh); in nexthop_is_good_nh()
2534 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local
2547 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4()
[all …]
H A Droute.c1613 struct fib_nh *nh; in rt_set_nexthop()
1615 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
/openbmc/linux/include/net/
H A Dip_fib.h105 struct fib_nh { struct
160 struct fib_nh fib_nh[]; member
237 struct fib_nh *fib_nh; member
524 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
530 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
533 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
555 struct fib_nh *nh; in fib_combine_itag()
557 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
H A Dnexthop.h67 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()
H A Droute.h57 struct fib_nh;
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c3049 struct fib_nh *fib_nh; member
3933 nh->key.fib_nh->fib_nh_flags |= RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh()
3935 nh->key.fib_nh->fib_nh_flags &= ~RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh()
4405 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument
4408 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_ipip_type()
4411 fib_nh->nh_parent->fib_type == RTN_UNICAST && in mlxsw_sp_nexthop4_ipip_type()
4491 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument
4493 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_init()
4498 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init()
4500 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init()
[all …]
/openbmc/linux/drivers/net/ethernet/rocker/
H A Drocker_ofdpa.c2272 const struct fib_nh *nh; in ofdpa_port_fib_ipv4()
2726 struct fib_nh *nh; in ofdpa_fib4_add()
2749 struct fib_nh *nh; in ofdpa_fib4_del()
2777 struct fib_nh *nh; in ofdpa_fib4_abort()