OSDN Git Service

selftests: xsk: Fix missing initialization
authorMagnus Karlsson <magnus.karlsson@intel.com>
Wed, 22 Sep 2021 07:56:07 +0000 (09:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 27 Sep 2021 22:18:35 +0000 (00:18 +0200)
commit5b132056123dfe25b0a8c96d1420e9c31cb8edf8
treeda4db89ab4e94d46bdd594de9e1ae0df0d9ed48d
parent94033cd8e73b8632bab7c8b7bb54caa4f5616db7
selftests: xsk: Fix missing initialization

Fix missing initialization of the member rx_pkt_nb in the packet
stream. This leads to some tests declaring success too early as the
test thought all packets had already been received.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210922075613.12186-8-magnus.karlsson@gmail.com
tools/testing/selftests/bpf/xdpxceiver.c