Explorar el Código

[efi] Reset multicast filter list when setting SNP receive filters

According to the UEFI specification, the MCastFilter parameter (which
we currently pass as NULL, along with a zero MCastFilterCnt) is
optional only if ResetMCastFilter is true.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 10 años
padre
commit
471fdfab79
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/drivers/net/efi/snpnet.c

+ 1
- 1
src/drivers/net/efi/snpnet.c Ver fichero

@@ -335,7 +335,7 @@ static int snpnet_open ( struct net_device *netdev ) {
335 335
 		    EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST |
336 336
 		    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS |
337 337
 		    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST );
338
-	if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, FALSE,
338
+	if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, TRUE,
339 339
 						  0, NULL ) ) != 0 ) {
340 340
 		rc = -EEFI ( efirc );
341 341
 		DBGC ( snp, "SNP %s could not set receive filters: %s\n",

Loading…
Cancelar
Guardar