OSDN Git Service

selftests: add dummy xdp test helper
authorPaolo Abeni <pabeni@redhat.com>
Wed, 7 Nov 2018 11:38:35 +0000 (12:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 00:23:05 +0000 (16:23 -0800)
commitbd8e1afe6436558de3a7b25eaef34b69d98e5719
treeb8e21fef74ebc46d3c0ad9d004cf3fab17f5cb18
parent0a9ac2e95409169ed42ea66dd4270bc16b868e21
selftests: add dummy xdp test helper

This trivial XDP program does nothing, but will be used by the
next patch to test the GRO path in a net namespace, leveraging
the veth XDP implementation.

It's added here, despite its 'net' usage, to avoid the duplication
of the llc-related makefile boilerplate.

rfc v3 -> v1:
 - move the helper implementation into the bpf directory, don't
   touch udpgso_bench_rx

rfc v2 -> rfc v3:
 - move 'x' option handling here

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/xdp_dummy.c [new file with mode: 0644]