Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: drv-net: Add bpftool util

Add bpf utility to simplify the use of bpftool for XDP tests included in
this series.

Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Link: https://patch.msgid.link/20250710184351.63797-2-mohsin.bashr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Mohsin Bashir and committed by
Jakub Kicinski
a339dd69 fadd1e62

+5 -1
+1 -1
tools/testing/selftests/drivers/net/lib/py/__init__.py
··· 15 15 NlError, RtnlFamily, DevlinkFamily 16 16 from net.lib.py import CmdExitFailure 17 17 from net.lib.py import bkg, cmd, defer, ethtool, fd_read_timeout, ip, \ 18 - rand_port, tool, wait_port_listen 18 + rand_port, tool, wait_port_listen, bpftool 19 19 from net.lib.py import fd_read_timeout 20 20 from net.lib.py import KsftSkipEx, KsftFailEx, KsftXfailEx 21 21 from net.lib.py import ksft_disruptive, ksft_exit, ksft_pr, ksft_run, \
+4
tools/testing/selftests/net/lib/py/utils.py
··· 175 175 return cmd_obj 176 176 177 177 178 + def bpftool(args, json=None, ns=None, host=None): 179 + return tool('bpftool', args, json=json, ns=ns, host=host) 180 + 181 + 178 182 def ip(args, json=None, ns=None, host=None): 179 183 if ns: 180 184 args = f'-netns {ns} ' + args