Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: use bpf_get_smp_processor_id_proto instead of raw one
Same motivation as in commit 80b48c4 ("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 <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information