selftests: xsk: Use correct UMEM size in testapp_invalid_desc
authorKal Conley <kal.conley@dectris.com>
Mon, 3 Apr 2023 14:50:46 +0000 (16:50 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 5 Apr 2023 18:29:34 +0000 (11:29 -0700)
commit7a2050df244e2c9a4e90882052b7907450ad10ed
treeea58f6b2eeaed4639d5380b61035527006a10476
parent9af87166944b3ff33d1399f7a1924ef0175e96b2
selftests: xsk: Use correct UMEM size in testapp_invalid_desc

Avoid UMEM_SIZE macro in testapp_invalid_desc which is incorrect when
the frame size is not XSK_UMEM__DEFAULT_FRAME_SIZE. Also remove the
macro since it's no longer being used.

Fixes: 909f0e28207c ("selftests: xsk: Add tests for 2K frame size")
Signed-off-by: Kal Conley <kal.conley@dectris.com>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/r/20230403145047.33065-2-kal.conley@dectris.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/xskxceiver.c
tools/testing/selftests/bpf/xskxceiver.h