[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201109153550.GA1796533@shredder>
Date: Mon, 9 Nov 2020 17:35:50 +0200
From: Ido Schimmel <idosch@...sch.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, davem@...emloft.net, dsahern@...il.com,
jiri@...dia.com, mlxsw@...dia.com, Ido Schimmel <idosch@...dia.com>
Subject: Re: [PATCH net-next 05/18] rtnetlink: Add RTNH_F_TRAP flag
On Fri, Nov 06, 2020 at 11:12:21AM -0800, Jakub Kicinski wrote:
> On Wed, 4 Nov 2020 15:30:27 +0200 Ido Schimmel wrote:
> > *flags |= (nhc->nhc_flags & RTNH_F_ONLINK);
> > if (nhc->nhc_flags & RTNH_F_OFFLOAD)
> > *flags |= RTNH_F_OFFLOAD;
> > + if (nhc->nhc_flags & RTNH_F_TRAP)
> > + *flags |= RTNH_F_TRAP;
>
> Out of curiosity - why use this if construct like OFFLOAD rather than
> the more concise mask like ONLINK does?
Good question :)
> In fact looks like the mask could just be extended there instead?
Yes, good suggestion. Will do that.
Powered by blists - more mailing lists