From 471fdfab79845d63fe1016ae5e5729180fdb0f73 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 5 Aug 2014 18:00:17 +0100 Subject: [PATCH] [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 --- src/drivers/net/efi/snpnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/net/efi/snpnet.c b/src/drivers/net/efi/snpnet.c index 61b66c62..9d3f97b9 100644 --- a/src/drivers/net/efi/snpnet.c +++ b/src/drivers/net/efi/snpnet.c @@ -335,7 +335,7 @@ static int snpnet_open ( struct net_device *netdev ) { EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST | EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS | EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST ); - if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, FALSE, + if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, TRUE, 0, NULL ) ) != 0 ) { rc = -EEFI ( efirc ); DBGC ( snp, "SNP %s could not set receive filters: %s\n",