Home
last modified time | relevance | path

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

/linux/net/ipv4/
H A Dfib_semantics.c54 * is not set in a fib_info. The logic within can reference fib_nh.
59 int nhsel; const struct fib_nh *nh; \
60 for (nhsel = 0, nh = (fi)->fib_nh; \
65 int nhsel; struct fib_nh *nexthop_nh; \
66 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 *)((f
212 fib_nh_release(struct net * net,struct fib_nh * fib_nh) fib_nh_release() argument
[all...]
H A Dnexthop.c510 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
919 struct fib_nh *fib_nh; in nh_fill_node() local
970 fib_nh = &nhi->fib_nh; in nh_fill_node()
971 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
972 nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node()
1047 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1394 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
1417 return ipv4_good_nh(&nhi->fib_nh); in nexthop_is_good_nh()
2839 struct fib_nh *fib_nh = &nhi->fib_nh; nh_create_ipv4() local
[all...]
H A Droute.c1611 struct fib_nh *nh; in rt_set_nexthop()
1613 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
/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);
607 struct fib_nh *nh; in fib_combine_itag()
609 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
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()
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/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()
4524 const struct fib_nh *fib_nh, in mlxsw_sp_nexthop4_ipip_type() argument
4527 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_ipip_type()
4530 fib_nh->nh_parent->fib_type == RTN_UNICAST && in mlxsw_sp_nexthop4_ipip_type()
4610 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument
4612 struct net_device *dev = fib_nh->fib_nh_dev; in mlxsw_sp_nexthop4_init()
4617 nh->key.fib_nh = fib_nh; in mlxsw_sp_nexthop4_init()
4619 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init()
[all …]