Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.c225 struct fib_nh *fib_nh, in mlx5_lag_fib_nexthop_event() argument
238 if (ldev->pf[i].netdev == fib_nh->fib_nh_dev) in mlx5_lag_fib_nexthop_event()
258 struct fib_nh *fib_nh; in mlx5_lag_fib_update() local
271 fib_nh = fib_work->fnh_info.fib_nh; in mlx5_lag_fib_update()
274 fib_work->fnh_info.fib_nh, in mlx5_lag_fib_update()
275 fib_nh->nh_parent); in mlx5_lag_fib_update()
276 fib_info_put(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_update()
344 fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_event()
/linux-6.15/net/ipv4/
H A Dfib_semantics.c66 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
75 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
80 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
212 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument
480 struct fib_nh *nh; in ip_fib_check_default()
726 struct fib_nh *nh; in fib_get_nhs()
1296 struct fib_nh *nh; in fib_info_update_nhc_saddr()
1484 struct fib_nh *nh = fi->fib_nh; in fib_create_info()
1855 .fib_nh = nh, in call_fib_nh_notifiers()
1920 struct fib_nh *nh; in fib_sync_mtu()
[all …]
H A Dnexthop.c512 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
922 struct fib_nh *fib_nh; in nh_fill_node() local
973 fib_nh = &nhi->fib_nh; in nh_fill_node()
974 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
1035 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1405 return ipv4_good_nh(&nhi->fib_nh); in nexthop_is_good_nh()
2795 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local
2810 fib_nh_release(net, fib_nh); in nh_create_ipv4()
2820 nh->nh_flags = fib_nh->fib_nh_flags; in nh_create_ipv4()
2822 !fib_nh->fib_nh_scope ? 0 : fib_nh->fib_nh_scope - 1); in nh_create_ipv4()
[all …]
H A Droute.c1598 struct fib_nh *nh; in rt_set_nexthop()
1600 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
/linux-6.15/include/net/
H A Dip_fib.h107 struct fib_nh { struct
162 struct fib_nh fib_nh[] __counted_by(fib_nhs);
241 struct fib_nh *fib_nh; member
575 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
581 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
584 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
606 struct fib_nh *nh; in fib_combine_itag()
608 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
H A Dnexthop.h69 struct fib_nh fib_nh; member
400 BUILD_BUG_ON(offsetof(struct fib_nh, nh_common) != 0); in nexthop_fib_nhc()
492 return &fi->fib_nh[nhsel].nh_common; in fib_info_nhc()
496 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel) in fib_info_nh()
500 return &fi->fib_nh[nhsel]; in fib_info_nh()
H A Droute.h54 struct fib_nh;
/linux-6.15/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c3053 struct fib_nh *fib_nh; member
4525 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument
4611 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument
4618 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init()
4620 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init()
4624 memcpy(&nh->gw_addr, &fib_nh->fib_nh_gw4, sizeof(fib_nh->fib_nh_gw4)); in mlxsw_sp_nexthop4_init()
4673 unsigned long event, struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_event() argument
4678 key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_event()
5789 struct fib_nh *fib_nh; in mlxsw_sp_nexthop4_group_info_init() local
5792 fib_nh = fib_info_nh(nh_grp->ipv4.fi, i); in mlxsw_sp_nexthop4_group_info_init()
[all …]
/linux-6.15/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()