diff options
| author | Martynas Pumputis <[email protected]> | 2019-06-12 16:05:40 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-06-13 20:43:42 +0000 |
| commit | b1d6c15b9d824a58c5415673f374fac19e8eccdf (patch) | |
| tree | c91b7b613437b4bc0a99679ae7d801f3638d62ab /tools/testing/selftests/bpf/verifier/div_overflow.c | |
| parent | xdp: check device pointer before clearing (diff) | |
| download | kernel-b1d6c15b9d824a58c5415673f374fac19e8eccdf.tar.gz kernel-b1d6c15b9d824a58c5415673f374fac19e8eccdf.zip | |
bpf: simplify definition of BPF_FIB_LOOKUP related flags
Previously, the BPF_FIB_LOOKUP_{DIRECT,OUTPUT} flags in the BPF UAPI
were defined with the help of BIT macro. This had the following issues:
- In order to use any of the flags, a user was required to depend
on <linux/bits.h>.
- No other flag in bpf.h uses the macro, so it seems that an unwritten
convention is to use (1 << (nr)) to define BPF-related flags.
Fixes: 87f5fc7e48dd ("bpf: Provide helper to do forwarding lookups in kernel FIB table")
Signed-off-by: Martynas Pumputis <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/verifier/div_overflow.c')
0 files changed, 0 insertions, 0 deletions
