[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <214709f6-e9e8-471a-9913-26e2ee438fc1@davidwei.uk>
Date: Fri, 21 Nov 2025 09:40:56 -0800
From: David Wei <dw@...idwei.uk>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>, Daniel Borkmann <daniel@...earbox.net>
Subject: Re: [PATCH net-next v1 5/7] selftests/net: add bpf skb forwarding
program
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?
Powered by blists - more mailing lists