[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191230171859.GD13569@lunn.ch>
Date: Mon, 30 Dec 2019 18:18:59 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Alexander Lobakin <alobakin@...nk.ru>
Cc: "David S. Miller" <davem@...emloft.net>,
Edward Cree <ecree@...arflare.com>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Hauke Mehrtens <hauke@...ke-m.de>,
Sean Wang <sean.wang@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Jiri Pirko <jiri@...lanox.com>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Jakub Kicinski <jakub.kicinski@...ronome.com>,
Taehee Yoo <ap420073@...il.com>,
Stephen Hemminger <stephen@...workplumber.org>,
Stanislav Fomichev <sdf@...gle.com>,
Daniel Borkmann <daniel@...earbox.net>,
Song Liu <songliubraving@...com>,
Matteo Croce <mcroce@...hat.com>,
Jakub Sitnicki <jakub@...udflare.com>,
Paul Blakey <paulb@...lanox.com>,
Yoshiki Komachi <komachi.yoshiki@...il.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH RFC net-next 04/19] net: dsa: tag_ar9331: split out
common tag accessors
On Mon, Dec 30, 2019 at 05:30:12PM +0300, Alexander Lobakin wrote:
> They will be reused in upcoming GRO callbacks.
> (Almost) no functional changes except less informative error string.
>
> Signed-off-by: Alexander Lobakin <alobakin@...nk.ru>
> ---
> net/dsa/tag_ar9331.c | 46 +++++++++++++++++++++++++++-----------------
> 1 file changed, 28 insertions(+), 18 deletions(-)
>
> diff --git a/net/dsa/tag_ar9331.c b/net/dsa/tag_ar9331.c
> index 399ca21ec03b..c22c1b515e02 100644
> --- a/net/dsa/tag_ar9331.c
> +++ b/net/dsa/tag_ar9331.c
> @@ -24,6 +24,25 @@
> #define AR9331_HDR_RESERVED_MASK GENMASK(5, 4)
> #define AR9331_HDR_PORT_NUM_MASK GENMASK(3, 0)
>
> +static inline bool ar9331_tag_sanity_check(const u8 *data)
Hi Alexander
Please don't use inline in C files. Leave it to the compiler to
decide.
Thanks
Andrew
Powered by blists - more mailing lists