diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2016-09-23 02:28:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-23 15:40:28 +0300 |
commit | 669dc4d76d0ecc2d795df735839f43cfddf9f617 (patch) | |
tree | c0b392f13de4aa1e6210ed53bb8dbb961816e831 /include/uapi/linux/bpf.h | |
parent | 2d48c5f9335e48ddac7a52db10bf3bfd01986b9c (diff) | |
download | linux-669dc4d76d0ecc2d795df735839f43cfddf9f617.tar.xz |
bpf: use bpf_get_smp_processor_id_proto instead of raw one
Same motivation as in commit 80b48c445797 ("bpf: don't use raw processor
id in generic helper"), but this time for XDP typed programs. Thus, allow
for preemption checks when we have DEBUG_PREEMPT enabled, and otherwise
use the raw variant.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions