[PATCH 0/5] selftests/xsk: foundational UMEM refactoring

Tushar Vyavahare
2026-04-28T08:46:05Z

This series refactors foundational UMEM handling in selftests/xsk.

It centralizes UMEM property setup through helpers, removes ifobject-level
UMEM ownership state, and normalizes umem_size/mmap_size usage across the
code paths touched here.

No functional behavior change is intended; the focus is internal
consistency and maintainability.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com>

Tushar Vyavahare (5):
selftests/xsk: Introduce helpers for setting UMEM properties
selftests/xsk: Eliminate umem reference from ifobject
selftests/xsk: Remove umem from pkt_generate parameters
selftests/xsk: Use umem_size() helper consistently
selftests/xsk: Introduce mmap_size in umem struct

.../selftests/bpf/prog_tests/test_xsk.c | 195 +++++++++---------
.../selftests/bpf/prog_tests/test_xsk.h | 33 +--
2 files changed, 119 insertions(+), 109 deletions(-)

--
2.43.0