Lines Matching defs:nexthop
3 * Generic nexthop implementation
22 struct nexthop;
53 struct nexthop *nh_parent;
67 struct nexthop *nh;
72 struct nexthop *nh_parent; /* nexthop of group with this entry */
84 struct nexthop {
114 /* caller is holding rcu or rtnl; no reference taken to nexthop */
115 struct nexthop *nexthop_find_by_id(struct net *net, u32 id);
118 static inline bool nexthop_get(struct nexthop *nh)
123 static inline void nexthop_put(struct nexthop *nh)
129 static inline bool nexthop_cmp(const struct nexthop *nh1,
130 const struct nexthop *nh2)
135 static inline bool nexthop_is_fdb(const struct nexthop *nh)
150 static inline bool nexthop_has_v4(const struct nexthop *nh)
161 static inline bool nexthop_is_multipath(const struct nexthop *nh)
172 struct nexthop *nexthop_select_path(struct nexthop *nh, int hash);
174 static inline unsigned int nexthop_num_path(const struct nexthop *nh)
190 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel)
193 * the nexthop before checking nhsel
202 int nexthop_mpath_fill_node(struct sk_buff *skb, struct nexthop *nh,
209 struct nexthop *nhe = nhg->nh_entries[i].nh;
222 static inline bool nexthop_is_blackhole(const struct nexthop *nh)
243 struct nexthop *nh;
252 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel)
276 struct fib_nh_common *nexthop_get_nhc_lookup(const struct nexthop *nh,
288 struct nexthop *nhe = nhg->nh_entries[i].nh;
307 static inline bool nexthop_uses_dev(const struct nexthop *nh,
317 struct nexthop *nhe = nhg->nh_entries[i].nh;
340 int fib_check_nexthop(struct nexthop *nh, u8 scope,
362 int fib6_check_nexthop(struct nexthop *nh, struct fib6_config *cfg,
366 static inline struct fib6_nh *nexthop_fib6_nh(struct nexthop *nh)
389 static inline struct fib6_nh *nexthop_fib6_nh_bh(struct nexthop *nh)
419 struct nexthop *nh = res->f6i->nh;
434 int nexthop_for_each_fib6_nh(struct nexthop *nh,
438 static inline int nexthop_get_family(struct nexthop *nh)
446 struct fib_nh_common *nexthop_fdb_nhc(struct nexthop *nh)
453 static inline struct fib_nh_common *nexthop_path_fdb_result(struct nexthop *nh,
457 struct nexthop *nhp;