efi_selftest: Receive the packets until the receive buffer is empty
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Thu, 16 Sep 2021 08:53:44 +0000 (17:53 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 21 Oct 2021 01:46:03 +0000 (03:46 +0200)
commit28fc87ee3ae8730fc556757cff05480b5cf94381
tree02423ad10c282f8d3293c99cfbfe441b245f8f81
parent9845b924369cc71457a21e78b5f9e6f7af43532d
efi_selftest: Receive the packets until the receive buffer is empty

Repeatedly receive the packets until the receive buffer is empty.
If the buffer is empty, EFI_SIMPLE_NETWORK_PROTOCOL::Receive()
returns EFI_NOT_READY. We don't need to use the wait_for_event()
every time.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_selftest_snp.c