From: Dmitry Yakunin <zeil@yandex-team.ru>
To: alexei.starovoitov@gmail.com, daniel@iogearbox.net,
netdev@vger.kernel.org, bpf@vger.kernel.org
Cc: sdf@google.com
Subject: [PATCH bpf-next v3 0/4] bpf: cgroup skb improvements for bpf_prog_test_run
Date: Wed, 15 Jul 2020 22:51:28 +0300 [thread overview]
Message-ID: <20200715195132.4286-1-zeil@yandex-team.ru> (raw)
This patchset contains some improvements for testing cgroup/skb programs
through BPF_PROG_TEST_RUN command.
v2:
- fix build without CONFIG_CGROUP_BPF (kernel test robot <lkp@intel.com>)
v3:
- fix build without CONFIG_IPV6 (kernel test robot <lkp@intel.com>)
Dmitry Yakunin (4):
bpf: setup socket family and addresses in bpf_prog_test_run_skb
bpf: allow to specify ifindex for skb in bpf_prog_test_run_skb
bpf: export some cgroup storages allocation helpers for reusing
bpf: try to use existing cgroup storage in bpf_prog_test_run_skb
include/linux/bpf-cgroup.h | 36 +++++++
kernel/bpf/cgroup.c | 25 -----
net/bpf/test_run.c | 113 ++++++++++++++++++---
.../selftests/bpf/prog_tests/cgroup_skb_prog_run.c | 78 ++++++++++++++
tools/testing/selftests/bpf/prog_tests/skb_ctx.c | 5 +
5 files changed, 217 insertions(+), 40 deletions(-)
create mode 100644 tools/testing/selftests/bpf/prog_tests/cgroup_skb_prog_run.c
--
2.7.4
next reply other threads:[~2020-07-15 19:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-15 19:51 Dmitry Yakunin [this message]
2020-07-15 19:51 ` [PATCH bpf-next v3 1/4] bpf: setup socket family and addresses in bpf_prog_test_run_skb Dmitry Yakunin
2020-07-15 19:51 ` [PATCH bpf-next v3 2/4] bpf: allow to specify ifindex for skb " Dmitry Yakunin
2020-07-16 19:42 ` Daniel Borkmann
2020-07-15 19:51 ` [PATCH bpf-next v3 3/4] bpf: export some cgroup storages allocation helpers for reusing Dmitry Yakunin
2020-07-16 19:46 ` Daniel Borkmann
2020-07-15 19:51 ` [PATCH bpf-next v3 4/4] bpf: try to use existing cgroup storage in bpf_prog_test_run_skb Dmitry Yakunin
2020-07-16 20:18 ` Daniel Borkmann
2020-07-21 11:06 ` Dmitry Yakunin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200715195132.4286-1-zeil@yandex-team.ru \
--to=zeil@yandex-team.ru \
--cc=alexei.starovoitov@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=netdev@vger.kernel.org \
--cc=sdf@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.