[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211001160133.50c5d143@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Fri, 1 Oct 2021 16:01:33 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Song Liu <song@...nel.org>
Cc: Joanne Koong <joannekoong@...com>, bpf <bpf@...r.kernel.org>,
Martin KaFai Lau <kafai@...com>,
Networking <netdev@...r.kernel.org>,
Kernel Team <Kernel-team@...com>
Subject: Re: [PATCH bpf-next v1 1/3] bpf/xdp: Add bpf_load_hdr_opt support
for xdp
On Fri, 1 Oct 2021 15:47:55 -0700 Song Liu wrote:
> > + if (flags & 0xffffffffffff)
>
> Maybe use (1ULL << BPF_LOAD_HDR_OPT_TCP_OFFSET_SHIFT) - 1
Or GENMASK_ULL(47, 0) ?
Powered by blists - more mailing lists