selftests/xsk: Put MAP_HUGE_2MB in correct argument
authorMagnus Karlsson <magnus.karlsson@intel.com>
Fri, 21 Apr 2023 06:22:08 +0000 (08:22 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 21 Apr 2023 14:35:10 +0000 (16:35 +0200)
commit02e93e0475df21a1091a9833c52c0e241586573a
treeeabb131ebb074b3c93a87be7f16d922854846701
parent4ab07209d5cc8cb6d2a5324c07b3efc3b2fde494
selftests/xsk: Put MAP_HUGE_2MB in correct argument

Put the flag MAP_HUGE_2MB in the correct flags argument instead of the
wrong offset argument.

Fixes: 2ddade322925 ("selftests/xsk: Fix munmap for hugepage allocated umem")
Reported-by: Kal Cutter Conley <kal.conley@dectris.com>
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230421062208.3772-1-magnus.karlsson@gmail.com
tools/testing/selftests/bpf/xskxceiver.c