1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI__LINUX_BPF_COMMON_H__
3 #define _UAPI__LINUX_BPF_COMMON_H__
5 /* Instruction classes */
6 #define BPF_CLASS(code) ((code) & 0x07)
17 #define BPF_SIZE(code) ((code) & 0x18)
21 #define BPF_MODE(code) ((code) & 0xe0)
30 #define BPF_OP(code) ((code) & 0xf0)
48 #define BPF_SRC(code) ((code) & 0x08)
53 #define BPF_MAXINSNS 4096
56 #endif /* _UAPI__LINUX_BPF_COMMON_H__ */