Searched refs:fib_nh (Results 1 – 10 of 10) sorted by relevance
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
A D | mp.c | 209 struct fib_nh *fib_nh, in mlx5_lag_fib_nexthop_event() argument 220 int i = mlx5_lag_dev_get_netdev_idx(ldev, fib_nh->fib_nh_dev); in mlx5_lag_fib_nexthop_event() 237 struct fib_nh *fib_nh; in mlx5_lag_fib_update() local 250 fib_nh = fib_work->fnh_info.fib_nh; in mlx5_lag_fib_update() 253 fib_work->fnh_info.fib_nh, in mlx5_lag_fib_update() 254 fib_nh->nh_parent); in mlx5_lag_fib_update() 255 fib_info_put(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_update() 323 fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_event()
|
/linux-6.3-rc2/include/net/ |
A D | ip_fib.h | 105 struct fib_nh { struct 159 struct fib_nh fib_nh[]; member 235 struct fib_nh *fib_nh; member 519 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, 525 int fib_nh_init(struct net *net, struct fib_nh *fib_nh, 528 void fib_nh_release(struct net *net, struct fib_nh *fib_nh); 550 struct fib_nh *nh; in fib_combine_itag() 552 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
|
A 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()
|
A D | route.h | 57 struct fib_nh;
|
/linux-6.3-rc2/net/ipv4/ |
A D | fib_semantics.c | 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 444 struct fib_nh *nh; in ip_fib_check_default() 696 struct fib_nh *nh; in fib_get_nhs() 1326 struct fib_nh *nh; in fib_info_update_nhc_saddr() 1529 struct fib_nh *nh = fi->fib_nh; in fib_create_info() 1898 .fib_nh = nh, in call_fib_nh_notifiers() 1963 struct fib_nh *nh; in fib_sync_mtu() [all …]
|
A D | nexthop.c | 496 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single() 697 struct fib_nh *fib_nh; in nh_fill_node() local 746 fib_nh = &nhi->fib_nh; in nh_fill_node() 747 if (fib_nh->fib_nh_gw_family && in nh_fill_node() 808 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single() 1176 if (ipv4_good_nh(&nhi->fib_nh)) in nexthop_select_path_hthr() 2510 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local 2525 fib_nh_release(net, fib_nh); in nh_create_ipv4() 2535 nh->nh_flags = fib_nh->fib_nh_flags; in nh_create_ipv4() 2537 !fib_nh->fib_nh_scope ? 0 : fib_nh->fib_nh_scope - 1); in nh_create_ipv4() [all …]
|
A D | route.c | 1593 struct fib_nh *nh; in rt_set_nexthop() 1595 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_router.c | 169 struct fib_nh *fib_nh; in __prestera_fi_is_direct() local 172 fib_nh = fib_info_nh(fi, 0); in __prestera_fi_is_direct() 173 if (fib_nh->fib_nh_gw_family == AF_UNSPEC) in __prestera_fi_is_direct() 264 struct fib_nh *fib_nh; in __prestera_util_kern_n_is_reachable_v4() local 272 fib_nh = fib_info_nh(res.fi, 0); in __prestera_util_kern_n_is_reachable_v4() 273 if (dev == fib_nh->fib_nh_dev) in __prestera_util_kern_n_is_reachable_v4()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_router.c | 2900 struct fib_nh *fib_nh; member 4224 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument 4288 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument 4295 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init() 4297 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init() 4301 memcpy(&nh->gw_addr, &fib_nh->fib_nh_gw4, sizeof(fib_nh->fib_nh_gw4)); in mlxsw_sp_nexthop4_init() 4346 unsigned long event, struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_event() argument 4351 key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_event() 5320 struct fib_nh *fib_nh; in mlxsw_sp_nexthop4_group_info_init() local 5323 fib_nh = fib_info_nh(nh_grp->ipv4.fi, i); in mlxsw_sp_nexthop4_group_info_init() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/rocker/ |
A D | rocker_ofdpa.c | 2272 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()
|
Completed in 58 milliseconds