All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/3] bpf: support input xdp_md context in BPF_PROG_TEST_RUN
@ 2021-05-24 22:05 Zvi Effron
  2021-05-24 22:05 ` [PATCH bpf-next 1/3] " Zvi Effron
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Zvi Effron @ 2021-05-24 22:05 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, David S. Miller, Daniel Borkmann,
	Jesper Dangaard Brouer, Zvi Effron

This patchset add support for passing a xdp_md via ctx_in/ctx_out in bpf_attr
for BPF_PROG_TEST_RUN of XDP programs.

Patch 1 adds initial support for passing XDP meta data in addition to packet
data.

Patch 2 adds support for also specifying the ingress interface and rx queue.

Patch 3 adds selftests to ensure functionality is correct.

Zvi Effron (3):
  bpf: support input xdp_md context in BPF_PROG_TEST_RUN
  bpf: support specifying ingress via xdp_md context in
    BPF_PROG_TEST_RUN
  selftests/bpf: Add test for xdp_md context in BPF_PROG_TEST_RUN

 include/uapi/linux/bpf.h                      |   3 -
 net/bpf/test_run.c                            |  92 +++++++++++++-
 .../bpf/prog_tests/xdp_context_test_run.c     | 117 ++++++++++++++++++
 .../bpf/progs/test_xdp_context_test_run.c     |  22 ++++
 4 files changed, 225 insertions(+), 9 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_xdp_context_test_run.c


base-commit: f9bceaa59c5c47a8a08f48e19cbe887e500a1978
-- 
2.31.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-26 21:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 22:05 [PATCH bpf-next 0/3] bpf: support input xdp_md context in BPF_PROG_TEST_RUN Zvi Effron
2021-05-24 22:05 ` [PATCH bpf-next 1/3] " Zvi Effron
2021-05-24 22:05 ` [PATCH bpf-next 2/3] bpf: support specifying ingress via " Zvi Effron
2021-05-24 22:05 ` [PATCH bpf-next 3/3] selftests/bpf: Add test for " Zvi Effron
2021-05-26 21:05   ` Andrii Nakryiko
2021-05-26 12:40 ` [PATCH bpf-next 0/3] bpf: support input " Daniel Borkmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.