Re: [RFC PATCH 04/13] nexthop: Add implementation of resilient next-hop groups From: Petr Machata <petrm@nvidia.com> Date: 2021-02-15 11:45:10 David Ahern [off-list ref] writes: On 2/8/21 1:42 PM, Petr Machata wrote:quoted@@ -212,7 +254,7 @@ static inline bool nexthop_is_multipath(const struct nexthop *nh) struct nh_group *nh_grp; nh_grp = rcu_dereference_rtnl(nh->nh_grp); - return nh_grp->mpath; + return nh_grp->mpath || nh_grp->resilient; That pattern shows up multiple times; since this is datapath, it would be worth adding a new bool for it (is_multipath or has_nexthops or something else along those lines) OK.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help