On 12/21/24 01:46, Daniel Borkmann wrote: > Extend the netkit selftests to specify and validate the {head,tail}room > on the netdevice: > > # ./vmtest.sh -- ./test_progs -t netkit > [...] > ./test_progs -t netkit > [ 1.174147] bpf_testmod: loading out-of-tree module taints kernel. > [ 1.174585] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel > [ 1.422307] tsc: Refined TSC clocksource calibration: 3407.983 MHz > [ 1.424511] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x311fc3e5084, max_idle_ns: 440795359833 ns > [ 1.428092] clocksource: Switched to clocksource tsc > #363 tc_netkit_basic:OK > #364 tc_netkit_device:OK > #365 tc_netkit_multi_links:OK > #366 tc_netkit_multi_opts:OK > #367 tc_netkit_neigh_links:OK > #368 tc_netkit_pkt_type:OK > #369 tc_netkit_scrub:OK > Summary: 7/0 PASSED, 0 SKIPPED, 0 FAILED > > Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx> > Cc: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx> > --- > v2: > - Rework to pass flags to create_netkit > > .../selftests/bpf/prog_tests/tc_netkit.c | 49 ++++++++++++------- > .../selftests/bpf/progs/test_tc_link.c | 15 ++++++ > 2 files changed, 46 insertions(+), 18 deletions(-) > Acked-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx>