lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251121173619.32584592@kernel.org>
Date: Fri, 21 Nov 2025 17:36:19 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: David Wei <dw@...idwei.uk>
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 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ