netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: David Wei <dw@davidwei.uk>
Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>,
	Daniel Borkmann <daniel@iogearbox.net>
Subject: Re: [PATCH net-next v1 5/7] selftests/net: add bpf skb forwarding program
Date: Fri, 21 Nov 2025 17:36:19 -0800	[thread overview]
Message-ID: <20251121173619.32584592@kernel.org> (raw)
In-Reply-To: <214709f6-e9e8-471a-9913-26e2ee438fc1@davidwei.uk>

On Fri, 21 Nov 2025 09:40:56 -0800 David Wei wrote:
> On 2025-11-20 19:20, Jakub Kicinski wrote:
> > On Wed, 19 Nov 2025 19:30:14 -0800 David Wei wrote:  
> >> This is needed for netkit container datapath selftests. Add two things:
> >>
> >>    1. nk_forward.bpf.c, a bpf program that forwards skbs matching some
> >>       IPv6 prefix received on eth0 ifindex to a specified netkit ifindex.
> >>    2. nk_forward.c, a C loader program that accepts eth0/netkit ifindex
> >>       and IPv6 prefix.
> >>
> >> Selftests will load and unload this bpf program via the loader.  
> > 
> > Is the skel stuff necessary? For XDP we populate the map with bpftool.  
> 
> I have no idea what I'm doing with bpf and was copying from
> libbpf-bootstrap :D I'll use bpftool to attach the bpf prog to tc
> ingress + set the vars. If xdp is using bpftool then I presume it is
> already a dependency on the DUT?

Yes, FWIW tools/testing/selftests/drivers/net/xdp.py is what I meant by
XDP

  reply	other threads:[~2025-11-22  1:36 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-20  3:30 [PATCH net-next v1 0/7] selftests/net: add netkit netns ping test David Wei
2025-11-20  3:30 ` [PATCH net-next v1 1/7] selftests/net: add suffix to ksft_run David Wei
2025-11-21  3:13   ` Jakub Kicinski
2025-11-22  3:28     ` David Wei
2025-11-20  3:30 ` [PATCH net-next v1 2/7] selftests/net: add MemPrvEnv env David Wei
2025-11-21  3:18   ` Jakub Kicinski
2025-11-21 17:14     ` David Wei
2025-11-22  1:41       ` Jakub Kicinski
2025-11-22  2:24         ` David Wei
2025-11-20  3:30 ` [PATCH net-next v1 3/7] selftests/net: modify iou-zcrx.py to use MemPrvEnv David Wei
2025-11-20  3:30 ` [PATCH net-next v1 4/7] selftests/net: add rand_ifname() helper David Wei
2025-11-21  3:19   ` Jakub Kicinski
2025-11-21 17:19     ` David Wei
2025-11-20  3:30 ` [PATCH net-next v1 5/7] selftests/net: add bpf skb forwarding program David Wei
2025-11-21  3:20   ` Jakub Kicinski
2025-11-21 17:40     ` David Wei
2025-11-22  1:36       ` Jakub Kicinski [this message]
2025-11-20  3:30 ` [PATCH net-next v1 6/7] selftests/net: add LOCAL_PREFIX_V{4,6} env to HW selftests David Wei
2025-11-21  3:24   ` Jakub Kicinski
2025-11-21 17:19     ` David Wei
2025-11-20  3:30 ` [PATCH net-next v1 7/7] selftests/net: add a netkit netns ping test David Wei

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=20251121173619.32584592@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=dw@davidwei.uk \
    --cc=edumazet@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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;
as well as URLs for NNTP newsgroup(s).