On 2/8/21 1:42 PM, Petr Machata wrote:
> @@ -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)

Reply via email to