Re: [PATCH bpf-next v1] bpf: fix bpf_skb_pull_data documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 14, 2022 at 3:48 PM Joanne Koong <joannelkoong@xxxxxxxxx> wrote:
>
> Fix documentation for bpf_skb_pull_data() helper for
> when flags == 0.
sorry, this commit message should be "when len == 0" (not flags).
>
> Fixes: fa15601ab31e ("bpf: add documentation for eBPF helpers (33-41)")
> Signed-off-by: Joanne Koong <joannelkoong@xxxxxxxxx>
> ---
>  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..a80c1f6bbe25 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 head of the 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..a80c1f6bbe25 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 head of the skb will be made readable
> + *             and writable.
>   *
>   *             This helper is only needed for reading and writing with direct
>   *             packet access.
> --
> 2.30.2
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux