Skip to content

Commit bdb2bc7

Browse files
joannekoongAlexei Starovoitov
authored andcommitted
bpf: fix bpf_skb_pull_data documentation
Fix documentation for bpf_skb_pull_data() helper for when len == 0. Fixes: fa15601 ("bpf: add documentation for eBPF helpers (33-41)") Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Acked-by: Quentin Monnet <quentin@isovalent.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/r/20220715193800.3940070-1-joannelkoong@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent a1ac9fd commit bdb2bc7

File tree

2 files changed

+4
-2
lines changed
  • include/uapi/linux
  • tools/include/uapi/linux

2 files changed

+4
-2
lines changed

include/uapi/linux/bpf.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,8 @@ union bpf_attr {
23612361
* Pull in non-linear data in case the *skb* is non-linear and not
23622362
* all of *len* are part of the linear section. Make *len* bytes
23632363
* from *skb* readable and writable. If a zero value is passed for
2364-
* *len*, then the whole length of the *skb* is pulled.
2364+
* *len*, then all bytes in the linear part of *skb* will be made
2365+
* readable and writable.
23652366
*
23662367
* This helper is only needed for reading and writing with direct
23672368
* packet access.

tools/include/uapi/linux/bpf.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,8 @@ union bpf_attr {
23612361
* Pull in non-linear data in case the *skb* is non-linear and not
23622362
* all of *len* are part of the linear section. Make *len* bytes
23632363
* from *skb* readable and writable. If a zero value is passed for
2364-
* *len*, then the whole length of the *skb* is pulled.
2364+
* *len*, then all bytes in the linear part of *skb* will be made
2365+
* readable and writable.
23652366
*
23662367
* This helper is only needed for reading and writing with direct
23672368
* packet access.

0 commit comments

Comments
 (0)