mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Xu Kuohai <xukuohai@huawei.com>
To: Jianlin Shi <shijianlin11@foxmail.com>, <bpf@vger.kernel.org>
Cc: <ast@kernel.org>, <daniel@iogearbox.net>, <andrii@kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query
Date: Tue, 14 Jul 2026 16:36:28 +0800	[thread overview]
Message-ID: <c44596e9-ae27-4941-9407-a950d6280076@huawei.com> (raw)
In-Reply-To: <tencent_22134645443B75ED907D2A85A47AD554A709@qq.com>

On 7/13/2026 10:49 AM, Jianlin Shi wrote:
> BPF_RB_OVERWRITE_POS is supported by bpf_ringbuf_query() but was missing
> from the helper documentation. Add it to the flags list in both the
> kernel UAPI header and its tools/ mirror.
> 
> Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
> ---
>   include/uapi/linux/bpf.h       | 1 +
>   tools/include/uapi/linux/bpf.h | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
> index c8d400b76..fe2873f6c 100644
> --- a/include/uapi/linux/bpf.h
> +++ b/include/uapi/linux/bpf.h
> @@ -4664,6 +4664,7 @@ union bpf_attr {
>    *		* **BPF_RB_RING_SIZE**: The size of ring buffer.
>    *		* **BPF_RB_CONS_POS**: Consumer position (can wrap around).
>    *		* **BPF_RB_PROD_POS**: Producer(s) position (can wrap around).
> + *		* **BPF_RB_OVERWRITE_POS**: Overwrite position (can wrap around).
>    *
>    *		Data returned is just a momentary snapshot of actual values
>    *		and could be inaccurate, so this facility should be used to
> diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
> index 5e38b4887..7b024da3d 100644
> --- a/tools/include/uapi/linux/bpf.h
> +++ b/tools/include/uapi/linux/bpf.h
> @@ -4664,6 +4664,7 @@ union bpf_attr {
>    *		* **BPF_RB_RING_SIZE**: The size of ring buffer.
>    *		* **BPF_RB_CONS_POS**: Consumer position (can wrap around).
>    *		* **BPF_RB_PROD_POS**: Producer(s) position (can wrap around).
> + *		* **BPF_RB_OVERWRITE_POS**: Overwrite position (can wrap around).
>    *
>    *		Data returned is just a momentary snapshot of actual values
>    *		and could be inaccurate, so this facility should be used to

Thanks for updating the docs for this!

Acked-by: Xu Kuohai <xukuohai@huawei.com>

  reply	other threads:[~2026-07-14  8:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260713013856.1743009-1-shijianlin11@foxmail.com>
2026-07-13  2:49 ` Jianlin Shi
2026-07-14  8:36   ` Xu Kuohai [this message]
2026-07-15  9:00   ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c44596e9-ae27-4941-9407-a950d6280076@huawei.com \
    --to=xukuohai@huawei.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shijianlin11@foxmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®