lkml.org 
[lkml]   [2021]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH bpf-next] bpf: Simplify expression for identify bpf mem type
    On Wed, Mar 17, 2021 at 5:52 AM Jianlin Lv <Jianlin.Lv@arm.com> 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.

    \
     
     \ /
      Last update: 2021-03-17 20:52    [W:3.845 / U:0.944 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site