Re: [PATCH bpf-next] bpf: Simplify expression for identify bpf mem type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux