diff options
| author | Toomas Soome <tsoome@me.com> | 2017-07-25 21:18:13 +0300 |
|---|---|---|
| committer | Dan McDonald <danmcd@joyent.com> | 2017-10-26 13:36:05 -0400 |
| commit | ec36cb922c4295cf02789257579a14f4b1ddb7db (patch) | |
| tree | 82569dfa016ef6894601ee5ec3fc39494f77fb45 /usr/src | |
| parent | 4db8fe43ed08e19640260f2c294017792ad25f65 (diff) | |
| download | illumos-gate-ec36cb922c4295cf02789257579a14f4b1ddb7db.tar.gz | |
8726 loader.efi: Always set the receive mask in loader.efi
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/boot/sys/boot/efi/libefi/efinet.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/usr/src/boot/sys/boot/efi/libefi/efinet.c b/usr/src/boot/sys/boot/efi/libefi/efinet.c index b62e6c787d..910707a680 100644 --- a/usr/src/boot/sys/boot/efi/libefi/efinet.c +++ b/usr/src/boot/sys/boot/efi/libefi/efinet.c @@ -186,6 +186,7 @@ efinet_init(struct iodesc *desc, void *machdep_hint) EFI_SIMPLE_NETWORK *net; EFI_HANDLE h; EFI_STATUS status; + UINT32 mask; if (nif->nif_driver->netif_ifs[nif->nif_unit].dif_unit < 0) { printf("Invalid network interface %d\n", nif->nif_unit); @@ -219,16 +220,14 @@ efinet_init(struct iodesc *desc, void *machdep_hint) } } - if (net->Mode->ReceiveFilterSetting == 0) { - UINT32 mask = EFI_SIMPLE_NETWORK_RECEIVE_UNICAST | - EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST; + mask = EFI_SIMPLE_NETWORK_RECEIVE_UNICAST | + EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST; - status = net->ReceiveFilters(net, mask, 0, FALSE, 0, NULL); - if (status != EFI_SUCCESS) { - printf("net%d: cannot set rx. filters (status=%lu)\n", - nif->nif_unit, EFI_ERROR_CODE(status)); - return; - } + status = net->ReceiveFilters(net, mask, 0, FALSE, 0, NULL); + 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 |
