History

bpf: fix bpf_skb_pull_data documentation

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

Joanne Koong committed 4 years ago

Commit bdb2bc71 parent a1ac9fd2 files · +4 −2Browse files

Showing the changes to tools/include/uapi (1 of 2 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+2−1
@@ -2361,7 +2361,8 @@ union bpf_attr { · 2360 unmodified lines
2361 * Pull in non-linear data in case the *skb* is non-linear and not2361 * Pull in non-linear data in case the *skb* is non-linear and not
2362 * all of *len* are part of the linear section. Make *len* bytes2362 * all of *len* are part of the linear section. Make *len* bytes
2363 * from *skb* readable and writable. If a zero value is passed for2363 * 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.
2365 *2366 *
2366 * This helper is only needed for reading and writing with direct2367 * This helper is only needed for reading and writing with direct
2367 * packet access.2368 * packet access.