Home
last modified time | relevance | path

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

/linux/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 in mlx5_lag_fib_update()
[all...]
/linux/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,
582 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
585 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
108 nh_commonfib_nh global() argument
116 nh_saddr_genidfib_nh global() argument
[all...]
H A Dnexthop.h69 struct fib_nh fib_nh; member
402 BUILD_BUG_ON(offsetof(struct fib_nh, nh_common) != 0); in nexthop_fib_nhc()
494 return &fi->fib_nh[nhsel].nh_common; in fib_info_nhc()
497 /* only used when fib_nh is built into fib_info */
498 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel) in fib_info_nh()
502 return &fi->fib_nh[nhsel]; in fib_info_nh()
H A Droute.h54 struct fib_nh;
/linux/net/ipv4/
H A Dnexthop.c512 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
923 struct fib_nh *fib_nh; in nh_fill_node() local
974 fib_nh = &nhi->fib_nh; in nh_fill_node()
975 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
976 nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node()
1035 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1382 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
1405 return ipv4_good_nh(&nhi->fib_nh); in nexthop_is_good_nh()
2806 struct fib_nh *fib_nh = &nhi->fib_nh; nh_create_ipv4() local
[all...]
H A Droute.c1605 struct fib_nh *nh; in rt_set_nexthop()
1607 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c3053 struct fib_nh *fib_nh; member
4053 nh->key.fib_nh->fib_nh_flags |= RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh()
4055 nh->key.fib_nh->fib_nh_flags &= ~RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh()
4525 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument
4528 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_ipip_type()
4531 fib_nh->nh_parent->fib_type == RTN_UNICAST && in mlxsw_sp_nexthop4_ipip_type()
4611 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument
4673 mlxsw_sp_nexthop4_event(struct mlxsw_sp * mlxsw_sp,unsigned long event,struct fib_nh * fib_nh) mlxsw_sp_nexthop4_event() argument
5789 struct fib_nh *fib_nh; mlxsw_sp_nexthop4_group_info_init() local
[all...]
/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()