mbox series

[bpf-next,v4,0/2] bpf: cgroup skb improvements for bpf_prog_test_run

Message ID 20200802213026.78731-1-zeil@yandex-team.ru
Headers show
Series bpf: cgroup skb improvements for bpf_prog_test_run | expand

Message

Dmitry Yakunin Aug. 2, 2020, 9:30 p.m. UTC
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>)

v4:
  - remove cgroup storage related commits for future rework (Daniel Borkmann)

v5:
  - check skb length before access to inet headers (Eric Dumazet)

Dmitry Yakunin (2):
  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

 net/bpf/test_run.c                               | 39 ++++++++++++++++++++++--
 tools/testing/selftests/bpf/prog_tests/skb_ctx.c |  5 +++
 2 files changed, 42 insertions(+), 2 deletions(-)

Comments

Dmitry Yakunin Aug. 2, 2020, 9:35 p.m. UTC | #1
Sorry, forgot to bump version in cover letter subject. I will resend it.

03.08.2020, 00:30, "Dmitry Yakunin" <zeil@yandex-team.ru>:
> 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>)
>
> v4:
>   - remove cgroup storage related commits for future rework (Daniel Borkmann)
>
> v5:
>   - check skb length before access to inet headers (Eric Dumazet)
>
> Dmitry Yakunin (2):
>   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
>
>  net/bpf/test_run.c | 39 ++++++++++++++++++++++--
>  tools/testing/selftests/bpf/prog_tests/skb_ctx.c | 5 +++
>  2 files changed, 42 insertions(+), 2 deletions(-)
>
> --
> 2.7.4