소스 검색

[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 10 년 전
부모
커밋
471fdfab79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/drivers/net/efi/snpnet.c

+ 1
- 1
src/drivers/net/efi/snpnet.c 파일 보기

@@ -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…
취소
저장