Commit 669dc4d
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 <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 2d48c5f commit 669dc4d
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2551 | 2551 | | |
2552 | 2552 | | |
2553 | 2553 | | |
| 2554 | + | |
| 2555 | + | |
2554 | 2556 | | |
2555 | 2557 | | |
2556 | 2558 | | |
| |||
0 commit comments