[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZUDLX6yqcKLsSknL@lzaremba-mobl.ger.corp.intel.com>
Date: Tue, 31 Oct 2023 10:39:43 +0100
From: Larysa Zaremba <larysa.zaremba@...el.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: <bpf@...r.kernel.org>, <netdev@...r.kernel.org>, Alexei Starovoitov
<ast@...nel.org>, Daniel Borkmann <daniel@...earbox.net>, "David S. Miller"
<davem@...emloft.net>, Jesper Dangaard Brouer <hawk@...nel.org>, Eric Dumazet
<edumazet@...gle.com>, Magnus Karlsson <magnus.karlsson@...il.com>, "Willem
de Bruijn" <willemdebruijn.kernel@...il.com>, Yunsheng Lin
<linyunsheng@...wei.com>, Simon Horman <simon.horman@...igine.com>, "Maciej
Fijalkowski" <maciej.fijalkowski@...el.com>, John Fastabend
<john.fastabend@...il.com>, Aleksander Lobakin <aleksander.lobakin@...el.com>
Subject: Re: [PATCH bpf-next] net, xdp: allow metadata > 32
On Fri, Oct 27, 2023 at 01:09:30PM -0700, Jakub Kicinski wrote:
> On Thu, 26 Oct 2023 18:56:59 +0200 Larysa Zaremba wrote:
> > static inline bool xdp_metalen_invalid(unsigned long metalen)
> > {
> > - return (metalen & (sizeof(__u32) - 1)) || (metalen > 32);
> > + typeof(metalen) meta_max;
>
> The use of typeof() looks a bit unnecessary..
>
You are probably right, will send v2 without it.
Powered by blists - more mailing lists