]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests, xsk: Fix rx_full stats test
authorMagnus Karlsson <magnus.karlsson@intel.com>
Fri, 21 Jan 2022 12:35:08 +0000 (13:35 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 24 Jan 2022 16:29:22 +0000 (17:29 +0100)
commitb4ec6a19231224f6b08dc54ea07da4c4090e8ee3
tree618fa40d4f646da1a90f828c48c9f5e0d71b3fa7
parented8bb03222c965290026c8ead5a902f4140f5440
selftests, xsk: Fix rx_full stats test

Fix the rx_full stats test so that it correctly reports pass even when
the fill ring is not full of buffers.

Fixes: 872a1184dbf2 ("selftests: xsk: Put the same buffer only once in the fill ring")
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/bpf/20220121123508.12759-1-magnus.karlsson@gmail.com
tools/testing/selftests/bpf/xdpxceiver.c