Commit bdb2bc75 authored by Joanne Koong's avatar Joanne Koong Committed by Alexei Starovoitov

bpf: fix bpf_skb_pull_data documentation

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

Fixes: fa15601a ("bpf: add documentation for eBPF helpers (33-41)")
Signed-off-by: default avatarJoanne Koong <joannelkoong@gmail.com>
Acked-by: default avatarQuentin Monnet <quentin@isovalent.com>
Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/r/20220715193800.3940070-1-joannelkoong@gmail.comSigned-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent a1ac9fd6
...@@ -2361,7 +2361,8 @@ union bpf_attr { ...@@ -2361,7 +2361,8 @@ union bpf_attr {
* Pull in non-linear data in case the *skb* is non-linear and not * 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 * all of *len* are part of the linear section. Make *len* bytes
* from *skb* readable and writable. If a zero value is passed for * 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 * This helper is only needed for reading and writing with direct
* packet access. * packet access.
......
...@@ -2361,7 +2361,8 @@ union bpf_attr { ...@@ -2361,7 +2361,8 @@ union bpf_attr {
* Pull in non-linear data in case the *skb* is non-linear and not * 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 * all of *len* are part of the linear section. Make *len* bytes
* from *skb* readable and writable. If a zero value is passed for * 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 * This helper is only needed for reading and writing with direct
* packet access. * packet access.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment