All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2] bpf: fix bpf_skb_pull_data documentation
@ 2022-07-15 19:38 Joanne Koong
  2022-07-15 21:29 ` Martin KaFai Lau
  2022-07-19 17:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Joanne Koong @ 2022-07-15 19:38 UTC (permalink / raw)
  To: bpf; +Cc: daniel, quentin, andrii, ast, Joanne Koong

Fix documentation for bpf_skb_pull_data() helper for
when len == 0.

Fixes: fa15601ab31e ("bpf: add documentation for eBPF helpers (33-41)")
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Acked-by: Quentin Monnet <quentin@isovalent.com>
---
 include/uapi/linux/bpf.h       | 3 ++-
 tools/include/uapi/linux/bpf.h | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 379e68fb866f..ffcbf79a556b 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -2361,7 +2361,8 @@ union bpf_attr {
  * 		Pull in non-linear data in case the *skb* is non-linear and not
  * 		all of *len* are part of the linear section. Make *len* bytes
  * 		from *skb* readable and writable. If a zero value is passed for
- * 		*len*, then the whole length of the *skb* is pulled.
+ *		*len*, then all bytes in the linear part of *skb* will be made
+ *		readable and writable.
  *
  * 		This helper is only needed for reading and writing with direct
  * 		packet access.
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 379e68fb866f..ffcbf79a556b 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -2361,7 +2361,8 @@ union bpf_attr {
  * 		Pull in non-linear data in case the *skb* is non-linear and not
  * 		all of *len* are part of the linear section. Make *len* bytes
  * 		from *skb* readable and writable. If a zero value is passed for
- * 		*len*, then the whole length of the *skb* is pulled.
+ *		*len*, then all bytes in the linear part of *skb* will be made
+ *		readable and writable.
  *
  * 		This helper is only needed for reading and writing with direct
  * 		packet access.
-- 
2.30.2


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

* Re: [PATCH bpf-next v2] bpf: fix bpf_skb_pull_data documentation
  2022-07-15 19:38 [PATCH bpf-next v2] bpf: fix bpf_skb_pull_data documentation Joanne Koong
@ 2022-07-15 21:29 ` Martin KaFai Lau
  2022-07-19 17:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Martin KaFai Lau @ 2022-07-15 21:29 UTC (permalink / raw)
  To: Joanne Koong; +Cc: bpf, daniel, quentin, andrii, ast

On Fri, Jul 15, 2022 at 12:38:00PM -0700, Joanne Koong wrote:
> Fix documentation for bpf_skb_pull_data() helper for
> when len == 0.
Acked-by: Martin KaFai Lau <kafai@fb.com>

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

* Re: [PATCH bpf-next v2] bpf: fix bpf_skb_pull_data documentation
  2022-07-15 19:38 [PATCH bpf-next v2] bpf: fix bpf_skb_pull_data documentation Joanne Koong
  2022-07-15 21:29 ` Martin KaFai Lau
@ 2022-07-19 17:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-07-19 17:00 UTC (permalink / raw)
  To: Joanne Koong; +Cc: bpf, daniel, quentin, andrii, ast

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Fri, 15 Jul 2022 12:38:00 -0700 you wrote:
> Fix documentation for bpf_skb_pull_data() helper for
> when len == 0.
> 
> Fixes: fa15601ab31e ("bpf: add documentation for eBPF helpers (33-41)")
> Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
> Acked-by: Quentin Monnet <quentin@isovalent.com>
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2] bpf: fix bpf_skb_pull_data documentation
    https://git.kernel.org/bpf/bpf-next/c/bdb2bc759929

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-07-19 17:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-15 19:38 [PATCH bpf-next v2] bpf: fix bpf_skb_pull_data documentation Joanne Koong
2022-07-15 21:29 ` Martin KaFai Lau
2022-07-19 17:00 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.