diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2018-03-30 16:37:08 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2018-03-30 16:37:08 +0000 |
commit | c5cf2b33feb467f019351a25da58d176008884f3 (patch) | |
tree | fb391b838784a13e56508bb91e1765bfe8ef23af | |
parent | ef270ab1b656486947b3b4aaec9bc0a6b5d6af21 (diff) | |
download | src-c5cf2b33feb467f019351a25da58d176008884f3.tar.gz src-c5cf2b33feb467f019351a25da58d176008884f3.zip |
efinet: Do not return only if ReceiveFilter fails
If the network interface or the uefi implementation do not support the
ReceiveFilter interface do not return only and just print a message.
U-Boot doesn't support is and likely never will. Also even if this fails
it doesn't mean that network in EFI isn't supported.
Notes
Notes:
svn path=/head/; revision=331767
-rw-r--r-- | stand/efi/libefi/efinet.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/stand/efi/libefi/efinet.c b/stand/efi/libefi/efinet.c index cdb63c99f39b..8a3e418ef28c 100644 --- a/stand/efi/libefi/efinet.c +++ b/stand/efi/libefi/efinet.c @@ -225,11 +225,9 @@ efinet_init(struct iodesc *desc, void *machdep_hint) EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST; status = net->ReceiveFilters(net, mask, 0, FALSE, 0, NULL); - if (status != EFI_SUCCESS) { + if (status != EFI_SUCCESS) printf("net%d: cannot set rx. filters (status=%lu)\n", nif->nif_unit, EFI_ERROR_CODE(status)); - return; - } #ifdef EFINET_DEBUG dump_mode(net->Mode); |