Fix documentation for bpf_skb_pull_data() helper for when len == 0.
Unified · Split
| @@ -2361,7 +2361,8 @@ union bpf_attr { · 2360 unmodified lines | ||
| 2361 | 2361 | * Pull in non-linear data in case the *skb* is non-linear and not |
| 2362 | 2362 | * all of *len* are part of the linear section. Make *len* bytes |
| 2363 | 2363 | * 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 | 2367 | * This helper is only needed for reading and writing with direct |
| 2367 | 2368 | * packet access. |
| @@ -2361,7 +2361,8 @@ union bpf_attr { · 2360 unmodified lines | ||
| 2361 | 2361 | * Pull in non-linear data in case the *skb* is non-linear and not |
| 2362 | 2362 | * all of *len* are part of the linear section. Make *len* bytes |
| 2363 | 2363 | * 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 | 2367 | * This helper is only needed for reading and writing with direct |
| 2367 | 2368 | * packet access. |