bpf: Update bpf_get_smp_processor_id() documentation
authorMatteo Croce <mcroce@microsoft.com>
Tue, 14 Sep 2021 23:54:00 +0000 (01:54 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 15 Sep 2021 20:39:55 +0000 (22:39 +0200)
BPF programs run with migration disabled regardless of preemption, as
they are protected by migrate_disable(). Update the uapi documentation
accordingly.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210914235400.59427-1-mcroce@linux.microsoft.com
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h

index d213265..3e9785f 100644 (file)
@@ -1629,7 +1629,7 @@ union bpf_attr {
  * u32 bpf_get_smp_processor_id(void)
  *     Description
  *             Get the SMP (symmetric multiprocessing) processor id. Note that
- *             all programs run with preemption disabled, which means that the
+ *             all programs run with migration disabled, which means that the
  *             SMP processor id is stable during all the execution of the
  *             program.
  *     Return
index d213265..3e9785f 100644 (file)
@@ -1629,7 +1629,7 @@ union bpf_attr {
  * u32 bpf_get_smp_processor_id(void)
  *     Description
  *             Get the SMP (symmetric multiprocessing) processor id. Note that
- *             all programs run with preemption disabled, which means that the
+ *             all programs run with migration disabled, which means that the
  *             SMP processor id is stable during all the execution of the
  *             program.
  *     Return