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.c59 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 *)((fi)->fib_nh); \
211 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument
214 if (fib_nh->nh_tclassid) in fib_nh_release()
217 fib_nh_common_release(&fib_nh->nh_common); in fib_nh_release()
275 const struct fib_nh *onh; in nh_comp()
[all …]
H A Dnexthop.c511 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
920 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()
1051 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1401 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
1424 return ipv4_good_nh(&nhi->fib_nh); in nexthop_is_good_nh()
2882 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local
2895 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4()
[all …]
H A Droute.c1641 struct fib_nh *nh; in rt_set_nexthop()
1643 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
574 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
581 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
584 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
606 struct fib_nh *nh; in fib_combine_itag()
608 nh = container_of(nhc, struct fib_nh, nh_common); in fib_combine_itag()
H A Dnexthop.h71 struct fib_nh fib_nh; member
404 BUILD_BUG_ON(offsetof(struct fib_nh, nh_common) != 0); in nexthop_fib_nhc()
496 return &fi->fib_nh[nhsel].nh_common; in fib_info_nhc()
500 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel) in fib_info_nh()
504 return &fi->fib_nh[nhsel]; in fib_info_nh()
H A Droute.h54 struct fib_nh;
/linux/drivers/net/ethernet/rocker/
H A Drocker_ofdpa.c2258 const struct fib_nh *nh; in ofdpa_port_fib_ipv4()
2712 struct fib_nh *nh; in ofdpa_fib4_add()
2735 struct fib_nh *nh; in ofdpa_fib4_del()
2763 struct fib_nh *nh; in ofdpa_fib4_abort()