[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210111111031.136b7522@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Mon, 11 Jan 2021 11:10:31 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Vladimir Oltean <olteanv@...il.com>
Cc: netdev@...r.kernel.org, alexandre.belloni@...tlin.com,
andrew@...n.ch, f.fainelli@...il.com, vivien.didelot@...il.com,
alexandru.marginean@....com, claudiu.manoil@....com,
xiaoliang.yang_1@....com, hongbo.wang@....com, jiri@...nulli.us,
idosch@...sch.org, UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH v3 net-next 02/10] net: mscc: ocelot: add ops for
decoding watermark threshold and occupancy
On Mon, 11 Jan 2021 18:53:21 +0200 Vladimir Oltean wrote:
> On Sat, Jan 09, 2021 at 05:20:46PM -0800, Jakub Kicinski wrote:
> > On Fri, 8 Jan 2021 19:59:42 +0200 Vladimir Oltean wrote:
> > > + *inuse = (val & GENMASK(23, 12)) >> 12;
> >
> > FWIW FIELD_GET()
>
> Do you mind if I don't use it? I don't feel that:
> *inuse = FIELD_GET(GENMASK(23, 12), val);
> looks any better.
Not at all, your call.
Powered by blists - more mailing lists