[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d512fc03-5c16-4af2-9353-4e97c7982171@blackwall.org>
Date: Mon, 19 Jan 2026 16:23:26 +0200
From: Nikolay Aleksandrov <razor@...ckwall.org>
To: Daniel Borkmann <daniel@...earbox.net>, netdev@...r.kernel.org
Cc: bpf@...r.kernel.org, kuba@...nel.org, davem@...emloft.net,
pabeni@...hat.com, willemb@...gle.com, sdf@...ichev.me,
john.fastabend@...il.com, martin.lau@...nel.org, jordan@...fe.io,
maciej.fijalkowski@...el.com, magnus.karlsson@...el.com, dw@...idwei.uk,
toke@...hat.com, yangzhenze@...edance.com, wangdongdong.6@...edance.com
Subject: Re: [PATCH net-next v7 14/16] selftests/net: Add env for container
based tests
On 15/01/2026 10:26, Daniel Borkmann wrote:
> From: David Wei <dw@...idwei.uk>
>
> Add an env NetDrvContEnv for container based selftests. This automates
> the setup of a netns, netkit pair with one inside the netns, and a BPF
> program that forwards skbs from the NETIF host inside the container.
>
> Currently only netkit is used, but other virtual netdevs e.g. veth can
> be used too.
>
> Expect netkit container datapath selftests to have a publicly routable
> IP prefix to assign to netkit in a container, such that packets will
> land on eth0. The BPF skb forward program will then forward such packets
> from the host netns to the container netns.
>
> Signed-off-by: David Wei <dw@...idwei.uk>
> Signed-off-by: Daniel Borkmann <daniel@...earbox.net>
> ---
> .../testing/selftests/drivers/net/README.rst | 7 ++
> .../drivers/net/hw/lib/py/__init__.py | 7 +-
> .../selftests/drivers/net/lib/py/__init__.py | 7 +-
> .../selftests/drivers/net/lib/py/env.py | 112 ++++++++++++++++++
> 4 files changed, 127 insertions(+), 6 deletions(-)
>
Reviewed-by: Nikolay Aleksandrov <razor@...ckwall.org>
Powered by blists - more mailing lists