linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2] bpf: update bpf_get_smp_processor_id() documentation
@ 2021-09-14 23:54 Matteo Croce
  2021-09-15  0:07 ` Yonghong Song
  0 siblings, 1 reply; 3+ messages in thread
From: Matteo Croce @ 2021-09-14 23:54 UTC (permalink / raw)
  To: bpf
  Cc: linux-kernel, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Yonghong Song

From: Matteo Croce <mcroce@microsoft.com>

BPF programs run with migration disabled regardless of preemption, as
they are protected by migrate_disable().
Update the documentation accordingly.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
---
 include/uapi/linux/bpf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index d21326558d42..3e9785f1064a 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -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
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next v2] bpf: update bpf_get_smp_processor_id() documentation
  2021-09-14 23:54 [PATCH bpf-next v2] bpf: update bpf_get_smp_processor_id() documentation Matteo Croce
@ 2021-09-15  0:07 ` Yonghong Song
  2021-09-15 20:43   ` Daniel Borkmann
  0 siblings, 1 reply; 3+ messages in thread
From: Yonghong Song @ 2021-09-15  0:07 UTC (permalink / raw)
  To: Matteo Croce, bpf
  Cc: linux-kernel, Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko



On 9/14/21 4:54 PM, Matteo Croce wrote:
> From: Matteo Croce <mcroce@microsoft.com>
> 
> BPF programs run with migration disabled regardless of preemption, as
> they are protected by migrate_disable().
> Update the documentation accordingly.
> 
> Signed-off-by: Matteo Croce <mcroce@microsoft.com>

Acked-by: Yonghong Song <yhs@fb.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next v2] bpf: update bpf_get_smp_processor_id() documentation
  2021-09-15  0:07 ` Yonghong Song
@ 2021-09-15 20:43   ` Daniel Borkmann
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Borkmann @ 2021-09-15 20:43 UTC (permalink / raw)
  To: Yonghong Song, Matteo Croce, bpf
  Cc: linux-kernel, Alexei Starovoitov, Andrii Nakryiko

On 9/15/21 2:07 AM, Yonghong Song wrote:
> On 9/14/21 4:54 PM, Matteo Croce wrote:
>> From: Matteo Croce <mcroce@microsoft.com>
>>
>> BPF programs run with migration disabled regardless of preemption, as
>> they are protected by migrate_disable().
>> Update the documentation accordingly.
>>
>> Signed-off-by: Matteo Croce <mcroce@microsoft.com>
> 
> Acked-by: Yonghong Song <yhs@fb.com>

Applied, thanks & also copied this over to the tools/include/uapi/linux/bpf.h .

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-15 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 23:54 [PATCH bpf-next v2] bpf: update bpf_get_smp_processor_id() documentation Matteo Croce
2021-09-15  0:07 ` Yonghong Song
2021-09-15 20:43   ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).