[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <285ba391-1d23-41be-8cc4-e2874fbcb1af@linux.dev>
Date: Thu, 16 Oct 2025 17:19:37 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: Amery Hung <ameryhung@...il.com>
Cc: netdev@...r.kernel.org, alexei.starovoitov@...il.com, andrii@...nel.org,
daniel@...earbox.net, tj@...nel.org, martin.lau@...nel.org,
kernel-team@...a.com, bpf@...r.kernel.org
Subject: Re: [PATCH v2 bpf-next 2/4] bpf: Support associating BPF program with
struct_ops
On 10/16/25 1:45 PM, Amery Hung wrote:
> Each associated programs except struct_ops programs of the map will take
> a refcount on the map to pin it so that prog->aux->st_ops_assoc, if set,
> is always valid. However, it is not guaranteed whether the map members
> are fully updated nor is it attached or not. For example, a BPF program
> can be associated with a struct_ops map before map_update. The
Forgot to ask this, should it at least ensure the map is fully updated
or it does not help in the use case?
> struct_ops implementer will be responsible for maintaining and checking
> the state of the associated struct_ops map before accessing it.
Powered by blists - more mailing lists