Skip to content

bpf: Fix a few test failures with 64K page size

Yonghong Song bpf 3 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. v3 Latest3 patches 1 replyApplied 3/3
  2. v23 patches 4 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- v2: https://lore.kernel.org/bpf/[email protected]/
- Add additional comments for xdp_adjust_tail test.
- Use actual kernel page size to set new_len for Patch 2 tests.

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf: Fix an issue in bpf_prog_test_run_xdp when page size greater than 4Knet/bpf/test_run.c tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c tools/testing/selftests/bpf/progs/test_xdp_adjust_tail_grow.c+97 -90 repliesApplied
2/3selftests/bpf: Fix two net related test failures with 64K page sizetools/testing/selftests/bpf/progs/test_sockmap_change_tail.c tools/testing/selftests/bpf/progs/test_tc_change_tail.c+14 -90 repliesApplied
3/3selftests/bpf: Fix xdp_do_redirect failure with 64KB page sizetools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c+11 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/3] bpf: Fix a few test failures with 64K page size

Changelog:
v2 -> v3:
- v2: https://lore.kernel.org/bpf/[email protected]/
- Add additional comments for xdp_adjust_tail test.
- Use actual kernel page size to set new_len for Patch 2 tests.
v1 -> v2:
- v1: https://lore.kernel.org/bpf/[email protected]/
- For xdp_adjust_tail, let kernel test_run can handle various page sizes for xdp progs.
- For two change_tail tests, make code easier to understand.
- Resolved a new test failure (xdp_do_redirect).

Yonghong Song (3):
bpf: Fix an issue in bpf_prog_test_run_xdp when page size greater than

    4K

selftests/bpf: Fix two net related test failures with 64K page size selftests/bpf: Fix xdp_do_redirect failure with 64KB page size

 net/bpf/test_run.c                            |  2 +-
 .../bpf/prog_tests/xdp_adjust_tail.c          | 96 +++++++++++++++++--
 .../bpf/prog_tests/xdp_do_redirect.c          | 13 ++-
 .../bpf/progs/test_sockmap_change_tail.c      |  9 +-
 .../selftests/bpf/progs/test_tc_change_tail.c | 14 +--
 .../bpf/progs/test_xdp_adjust_tail_grow.c     |  8 +-
 6 files changed, 122 insertions(+), 20 deletions(-)
Signature · 1 line
2.47.1