Skip to content

Add more bpf_*_ct_lookup() selftests

Daniel Xu bpf lkml netdev netfilter-devel 4 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 5 repliesApplied 3/3
  2. v33 patches 3 repliesSuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Remove deprecated CHECK_FAIL() usage
- cc netfilter folks

Patches in v4 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests/bpf: Add existing connection bpf_*_ct_lookup() testtools/testing/selftests/bpf/prog_tests/bpf_nf.c tools/testing/selftests/bpf/progs/test_bpf_nf.c+77 -00 repliesApplied
2/3selftests/bpf: Add connmark read testtools/testing/selftests/bpf/prog_tests/bpf_nf.c tools/testing/selftests/bpf/progs/test_bpf_nf.c+5 -15 repliesApplied
3/3selftests/bpf: Update CI kconfigtools/testing/selftests/bpf/config+2 -00 repliesApplied

Reviews trailers per patch

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

PatchKumar Kartikeya Dwivedi
1/3A-b
2/3A-b
3/3A-b

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

Read the v4 thread

Cover letter [PATCH bpf-next v4 0/3] Add more bpf_*_ct_lookup() selftests

This patchset adds more bpf_*_ct_lookup() selftests. The goal is to test interaction with netfilter subsystem as well as reading from struct nf_conn. The first is important when migrating legacy systems towards bpf. The latter is important in general to take full advantage of connection tracking.

I'll follow this patchset up with support for writing to struct nf_conn.

Past discussion:
- v3: https://lore.kernel.org/bpf/[email protected]/
- v2: https://lore.kernel.org/bpf/[email protected]/
- v1: https://lore.kernel.org/bpf/[email protected]/

Changes since v3:
- Remove deprecated CHECK_FAIL() usage
- cc netfilter folks

Changes since v2:
- Add bpf-ci kconfig changes

Changes since v1:
- Reword commit message / cover letter to not mention connmark writing

Daniel Xu (3):
selftests/bpf: Add existing connection bpf_*_ct_lookup() test selftests/bpf: Add connmark read test selftests/bpf: Update CI kconfig

 tools/testing/selftests/bpf/config            |  2 +
 .../testing/selftests/bpf/prog_tests/bpf_nf.c | 60 +++++++++++++++++++
 .../testing/selftests/bpf/progs/test_bpf_nf.c | 21 +++++++
 3 files changed, 83 insertions(+)
Signature · 1 line
2.37.1