[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8735xxblo7.fsf@nvidia.com>
Date: Mon, 15 Feb 2021 12:44:08 +0100
From: Petr Machata <petrm@...dia.com>
To: David Ahern <dsahern@...il.com>
CC: Petr Machata <petrm@...dia.com>, <netdev@...r.kernel.org>,
David Ahern <dsahern@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
"Jakub Kicinski" <kuba@...nel.org>,
Ido Schimmel <idosch@...dia.com>
Subject: Re: [RFC PATCH 04/13] nexthop: Add implementation of resilient
next-hop groups
David Ahern <dsahern@...il.com> writes:
> 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)
OK.
Powered by blists - more mailing lists