Lines Matching refs:nexthop

22 struct nexthop;
59 struct nexthop *nh_parent;
99 struct nexthop *nh;
116 struct nexthop *nh_parent; /* nexthop of group with this entry */
132 struct nexthop { struct
229 struct nexthop *nexthop_find_by_id(struct net *net, u32 id);
232 static inline bool nexthop_get(struct nexthop *nh) in nexthop_get()
237 static inline void nexthop_put(struct nexthop *nh) in nexthop_put()
243 static inline bool nexthop_cmp(const struct nexthop *nh1, in nexthop_cmp()
244 const struct nexthop *nh2) in nexthop_cmp()
249 static inline bool nexthop_is_fdb(const struct nexthop *nh) in nexthop_is_fdb()
264 static inline bool nexthop_has_v4(const struct nexthop *nh) in nexthop_has_v4()
275 static inline bool nexthop_is_multipath(const struct nexthop *nh) in nexthop_is_multipath()
286 struct nexthop *nexthop_select_path(struct nexthop *nh, int hash);
288 static inline unsigned int nexthop_num_path(const struct nexthop *nh) in nexthop_num_path()
304 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select()
316 int nexthop_mpath_fill_node(struct sk_buff *skb, struct nexthop *nh, in nexthop_mpath_fill_node()
323 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
336 static inline bool nexthop_is_blackhole(const struct nexthop *nh) in nexthop_is_blackhole()
357 struct nexthop *nh; in nexthop_path_fib_result()
366 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel) in nexthop_fib_nhc()
390 struct fib_nh_common *nexthop_get_nhc_lookup(const struct nexthop *nh, in nexthop_get_nhc_lookup()
402 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
421 static inline bool nexthop_uses_dev(const struct nexthop *nh, in nexthop_uses_dev()
431 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_uses_dev()
454 int fib_check_nexthop(struct nexthop *nh, u8 scope,
476 int fib6_check_nexthop(struct nexthop *nh, struct fib6_config *cfg,
480 static inline struct fib6_nh *nexthop_fib6_nh(struct nexthop *nh) in nexthop_fib6_nh()
503 static inline struct fib6_nh *nexthop_fib6_nh_bh(struct nexthop *nh) in nexthop_fib6_nh_bh()
533 struct nexthop *nh = res->f6i->nh; in nexthop_path_fib6_result()
548 int nexthop_for_each_fib6_nh(struct nexthop *nh,
552 static inline int nexthop_get_family(struct nexthop *nh) in nexthop_get_family()
560 struct fib_nh_common *nexthop_fdb_nhc(struct nexthop *nh) in nexthop_fdb_nhc()
567 static inline struct fib_nh_common *nexthop_path_fdb_result(struct nexthop *nh, in nexthop_path_fdb_result()
571 struct nexthop *nhp; in nexthop_path_fdb_result()