]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:57 +0000 (13:57 +0200)
commit49e53274845bbf8ea2ec7a906303327397c63d54
tree23cf5771af5eb79fdd41b5d4d00075a6d471df4f
parent4b2eed1d1ee8f26a4844c17c5032a11ae680b113
selftests, xsk: Fix rx_full stats test

[ Upstream commit b4ec6a19231224f6b08dc54ea07da4c4090e8ee3 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/xdpxceiver.c