Skip to content

bpf: selftests: A few changes to network_helpers and netns-reset

Martin KaFai Lau bpf netdev 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Mention non-NULL addr use case in commit message. (Yonghong)
- Add prefix "__" to variables used in macro. (Yonghong)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: selftests: A few improvements to network_helpers.ctools/testing/selftests/bpf/network_helpers.c tools/testing/selftests/bpf/network_helpers.h tools/testing/selftests/bpf/prog_tests/cgroup_skb_sk_lookup.c +3 more+110 -860 replies
2/2bpf: selftests: Restore netns after each testtools/testing/selftests/bpf/test_progs.c tools/testing/selftests/bpf/test_progs.h+23 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchYonghong SongAndrii Nakryiko
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/2] bpf: selftests: A few changes to network_helpers and netns-reset

This set is separated out from the bpf tcp header option series [1] since I think it is in general useful for other network related tests. e.g. enforce socket-fd related timeout and restore netns after each test.

[1]: https://lore.kernel.org/netdev/[email protected]/

v2:
- Mention non-NULL addr use case in commit message. (Yonghong)
- Add prefix "__" to variables used in macro. (Yonghong)

Martin KaFai Lau (2):
bpf: selftests: A few improvements to network_helpers.c
bpf: selftests: Restore netns after each test

 tools/testing/selftests/bpf/network_helpers.c | 157 +++++++++++-------
 tools/testing/selftests/bpf/network_helpers.h |   9 +-
 .../bpf/prog_tests/cgroup_skb_sk_lookup.c     |  12 +-
 .../bpf/prog_tests/connect_force_port.c       |  10 +-
 .../bpf/prog_tests/load_bytes_relative.c      |   4 +-
 .../selftests/bpf/prog_tests/tcp_rtt.c        |   4 +-
 tools/testing/selftests/bpf/test_progs.c      |  23 ++-
 tools/testing/selftests/bpf/test_progs.h      |   2 +
 8 files changed, 133 insertions(+), 88 deletions(-)
Signature · 1 line
2.24.1