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) ?
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) ?