Lines Matching refs:fib_nh
2927 struct fib_nh *fib_nh; member
3791 nh->key.fib_nh->fib_nh_flags |= RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh()
3793 nh->key.fib_nh->fib_nh_flags &= ~RTNH_F_OFFLOAD; in mlxsw_sp_nexthop4_group_offload_refresh()
4251 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument
4254 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_ipip_type()
4257 fib_nh->nh_parent->fib_type == RTN_UNICAST && in mlxsw_sp_nexthop4_ipip_type()
4315 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument
4317 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_init()
4322 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init()
4324 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init()
4328 memcpy(&nh->gw_addr, &fib_nh->fib_nh_gw4, sizeof(fib_nh->fib_nh_gw4)); in mlxsw_sp_nexthop4_init()
4344 fib_nh->fib_nh_flags & RTNH_F_LINKDOWN) { in mlxsw_sp_nexthop4_init()
4371 unsigned long event, struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_event() argument
4376 key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_event()
4383 mlxsw_sp_nexthop_type_init(mlxsw_sp, nh, fib_nh->fib_nh_dev); in mlxsw_sp_nexthop4_event()
5322 const struct fib_nh *nh = fib_info_nh(fi, 0); in mlxsw_sp_fi_is_gateway()
5345 struct fib_nh *fib_nh; in mlxsw_sp_nexthop4_group_info_init() local
5348 fib_nh = fib_info_nh(nh_grp->ipv4.fi, i); in mlxsw_sp_nexthop4_group_info_init()
5349 err = mlxsw_sp_nexthop4_init(mlxsw_sp, nh_grp, nh, fib_nh); in mlxsw_sp_nexthop4_group_info_init()
7588 mlxsw_sp_nexthop4_event(mlxsw_sp, fib_event->event, fib_event->fnh_info.fib_nh); in mlxsw_sp_router_fib4_event_process()
7589 fib_info_put(fib_event->fnh_info.fib_nh->nh_parent); in mlxsw_sp_router_fib4_event_process()
7769 fib_info_hold(fib_event->fnh_info.fib_nh->nh_parent); in mlxsw_sp_router_fib4_event()