summaryrefslogtreecommitdiff
path: root/include/uapi/linux/netdev.h
diff options
context:
space:
mode:
authorDavid Wei <dw@davidwei.uk>2026-01-15 11:26:01 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-01-20 13:58:50 +0300
commit6be87fbb27763c2999e1c69bbec1f3a63cf05422 (patch)
tree989d6a2237d0c306fbb9a21561b66bb29d8412ec /include/uapi/linux/netdev.h
parent61d99ce3dfc2f1ba5bf713093bb3a5faf5ebc2dc (diff)
downloadlinux-6be87fbb27763c2999e1c69bbec1f3a63cf05422.tar.xz
selftests/net: Add env for container based tests
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@davidwei.uk> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Stanislav Fomichev <sdf@fomichev.me> Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org> Link: https://patch.msgid.link/20260115082603.219152-15-daniel@iogearbox.net Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/uapi/linux/netdev.h')
0 files changed, 0 insertions, 0 deletions