Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
A Dmp.c118 struct fib_nh *fib_nh0, *fib_nh1; in mlx5_lag_fib_route_event()
133 struct fib_nh *nh = fib_info_nh(fi, 0); in mlx5_lag_fib_route_event()
176 struct fib_nh *fib_nh, in mlx5_lag_fib_nexthop_event() argument
187 int i = mlx5_lag_dev_get_netdev_idx(ldev, fib_nh->fib_nh_dev); in mlx5_lag_fib_nexthop_event()
204 struct fib_nh *fib_nh; in mlx5_lag_fib_update() local
217 fib_nh = fib_work->fnh_info.fib_nh; in mlx5_lag_fib_update()
220 fib_work->fnh_info.fib_nh, in mlx5_lag_fib_update()
221 fib_nh->nh_parent); in mlx5_lag_fib_update()
222 fib_info_put(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_update()
297 fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent); in mlx5_lag_fib_event()
/linux/net/ipv4/
A Dfib_semantics.c73 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
82 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
87 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
219 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument
432 struct fib_nh *nh; in ip_fib_check_default()
685 struct fib_nh *nh; in fib_get_nhs()
1328 struct fib_nh *nh; in fib_info_update_nhc_saddr()
1530 struct fib_nh *nh = fi->fib_nh; in fib_create_info()
1898 .fib_nh = nh, in call_fib_nh_notifiers()
1964 struct fib_nh *nh; in fib_sync_mtu()
[all …]
A Dnexthop.c495 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
696 struct fib_nh *fib_nh; in nh_fill_node() local
745 fib_nh = &nhi->fib_nh; in nh_fill_node()
746 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
807 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1175 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); in nh_create_ipv4()
[all …]
A Droute.c1573 struct fib_nh *nh; in rt_set_nexthop()
1575 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
/linux/include/net/
A Dip_fib.h103 struct fib_nh { struct
156 struct fib_nh fib_nh[]; member
232 struct fib_nh *fib_nh; member
516 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
522 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
525 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
547 struct fib_nh *nh; in fib_combine_itag()
549 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
A Ddn_fib.h42 struct dn_fib_nh fib_nh[0]; member
43 #define dn_fib_dev fib_nh[0].nh_dev
48 #define DN_FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
A Dnexthop.h67 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 Droute.h46 struct fib_nh;
/linux/net/decnet/
A Ddn_fib.c54 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
57 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++)
119 const struct dn_fib_nh *onh = ofi->fib_nh; in dn_fib_nh_comp()
284 fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); in dn_fib_create_info()
321 fi->fib_nh->nh_oif != nla_get_u32(attrs[RTA_OIF])) in dn_fib_create_info()
325 fi->fib_nh->nh_gw != nla_get_le16(attrs[RTA_GATEWAY])) in dn_fib_create_info()
328 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info()
344 fi->fib_nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]); in dn_fib_create_info()
359 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info()
365 nh->nh_dev = dev_get_by_index(&init_net, fi->fib_nh->nh_oif); in dn_fib_create_info()
A Ddn_table.c65 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
239 if ((!attrs[RTA_OIF] || nla_get_u32(attrs[RTA_OIF]) == fi->fib_nh->nh_oif) && in dn_fib_nh_match()
240 (!attrs[RTA_GATEWAY] || nla_get_le16(attrs[RTA_GATEWAY]) != fi->fib_nh->nh_gw)) in dn_fib_nh_match()
338 if (fi->fib_nh->nh_gw && in dn_fib_dump_info()
339 nla_put_le16(skb, RTA_GATEWAY, fi->fib_nh->nh_gw) < 0) in dn_fib_dump_info()
342 if (fi->fib_nh->nh_oif && in dn_fib_dump_info()
343 nla_put_u32(skb, RTA_OIF, fi->fib_nh->nh_oif) < 0) in dn_fib_dump_info()
A Ddn_route.c950 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in dn_fib_rules_map_destination()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_router.c2927 struct fib_nh *fib_nh; member
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()
4315 struct fib_nh *fib_nh) in mlxsw_sp_nexthop4_init() argument
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()
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()
5345 struct fib_nh *fib_nh; in mlxsw_sp_nexthop4_group_info_init() local
[all …]
/linux/drivers/net/ethernet/rocker/
A Drocker_ofdpa.c2271 const struct fib_nh *nh; in ofdpa_port_fib_ipv4()
2725 struct fib_nh *nh; in ofdpa_fib4_add()
2748 struct fib_nh *nh; in ofdpa_fib4_del()
2776 struct fib_nh *nh; in ofdpa_fib4_abort()

Completed in 59 milliseconds