From: Konstantin Ananyev <konstantin.ananyev@huawei.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: RE: BPF elf examples
Date: Tue, 21 Oct 2025 11:30:23 +0000 [thread overview]
Message-ID: <bcc95778767444e28a21d2575a41bd9f@huawei.com> (raw)
In-Reply-To: <20251020131631.2a6a0de3@phoenix.lan>
> While looking in more detail at BPF use of VLA, went down a rabbit hole
> because there are no tests and no examples of loading a BPF program using
> the elf_load API's in BPF.
>
> Tried using AI to generate tests, and as usual it sort of worked but the
> example code generated won't load or work. Is there anywhere to find working
> DPDK examples of using BPF load?
app/test-pmd/bpf_cmd.c calls rte_bpf_eth_rx_elf_load/ rte_bpf_eth_tx_elf_load,
which in turn calls rte_bpf_elf_load().
Though it is a good point, will think can we add a UT for it too.
next prev parent reply other threads:[~2025-10-21 11:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 20:16 Stephen Hemminger
2025-10-21 11:30 ` Konstantin Ananyev [this message]
2025-10-21 11:42 ` Marat Khalili
2025-10-21 13:38 ` Stephen Hemminger
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=bcc95778767444e28a21d2575a41bd9f@huawei.com \
--to=konstantin.ananyev@huawei.com \
--cc=dev@dpdk.org \
--cc=konstantin.v.ananyev@yandex.ru \
--cc=stephen@networkplumber.org \
/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;
as well as URLs for NNTP newsgroup(s).