[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>
pull/100/head
Ignat Korchagin 2019-12-13 16:17:58 +00:00 committed by Michael Brown
parent ed4a82e239
commit ea832529a5
1 changed files with 2 additions and 1 deletions

View File

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