On Wed, Mar 17, 2021 at 5:52 AM Jianlin Lv <Jianlin.Lv@xxxxxxx> wrote: > return BPF_CLASS(meta->insn.code); > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > index 2d3036e292a9..5d77675e7112 100644 > --- a/include/uapi/linux/bpf.h > +++ b/include/uapi/linux/bpf.h > @@ -21,6 +21,7 @@ > #define BPF_DW 0x18 /* double word (64-bit) */ > #define BPF_ATOMIC 0xc0 /* atomic memory ops - op type in immediate */ > #define BPF_XADD 0xc0 /* exclusive add - legacy name */ > +#define BPF_SIZE_MASK 0x18 /* mask of size modifier */ Pls don't add kernel internal defines to uapi.