Pārlūkot izejas kodu

[snp] Set EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST bit as per UEFI spec

According to UEFI specification 2.8 p 24.1 we must set the
EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST bit in the "Disable" mask, when
"ResetMCastFilter" is TRUE.

Signed-off-by: Ignat Korchagin <ignat@cloudflare.com>
Split-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Ignat Korchagin 4 gadus atpakaļ
vecāks
revīzija
ea832529a5
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      src/drivers/net/efi/snpnet.c

+ 2
- 1
src/drivers/net/efi/snpnet.c Parādīt failu

@@ -313,7 +313,8 @@ static int snpnet_rx_filters ( struct net_device *netdev ) {
313 313
 	/* Try possible receive filters in turn */
314 314
 	for ( i = 0; i < ( sizeof ( filters ) / sizeof ( filters[0] ) ); i++ ) {
315 315
 		efirc = snp->snp->ReceiveFilters ( snp->snp, filters[i],
316
-						   0, TRUE, 0, NULL );
316
+				EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST, TRUE,
317
+				0, NULL );
317 318
 		if ( efirc == 0 )
318 319
 			return 0;
319 320
 		rc = -EEFI ( efirc );

Notiek ielāde…
Atcelt
Saglabāt