[PATCH v2 9/9] bpf: add callback flag to skip multi-thread check
Stephen Hemminger
stephen at networkplumber.org
Tue Oct 13 18:55:54 CEST 2026
On Mon, 12 Oct 2026 21:09:16 +0000
Marat Khalili <qm2k21 at gmail.com> wrote:
> Add RTE_BPF_ETH_F_SKIP_MT_CHECK flag allowing callers to bypass the
> suitability check when installing BPF packet callbacks.
>
> This allows overriding rejections in cases where the port or queue is
> configured with multi-thread capabilities (such as MT_LOCKFREE),
> but the application guarantees that only one dataplane thread
> accesses the queue at a time.
>
> Update the unit test to verify that callback installation succeeds
> when this flag is specified, and add a release note documenting the
> restriction and the override flag.
>
> Signed-off-by: Marat Khalili <qm2k21 at gmail.com>
> ---
No, this just adds more ways for things to go wrong and get abused.
Application should just not turn on lockfree.
More information about the dev
mailing list