瀏覽代碼

[snp] Try promiscuous multicast receive filter if the regular one fails

Currently, if the SNP driver for whatever reason fails to enable
receive filters for multicast frames, it falls back to enabling just
unicast and broadcast filters.  This breaks some IPv6 functionality as
the network card does not respond to neighbour solicitation requests.

Some cards refuse to enable EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST, but
do support enabling EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST,
so try it before falling back to just unicast+broadcast.

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 5 年之前
父節點
當前提交
ed4a82e239
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/drivers/net/efi/snpnet.c

+ 3
- 0
src/drivers/net/efi/snpnet.c 查看文件

@@ -299,6 +299,9 @@ static int snpnet_rx_filters ( struct net_device *netdev ) {
299 299
 		( EFI_SIMPLE_NETWORK_RECEIVE_UNICAST |
300 300
 		  EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST |
301 301
 		  EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST ),
302
+		( EFI_SIMPLE_NETWORK_RECEIVE_UNICAST |
303
+		  EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST |
304
+		  EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST ),
302 305
 		( EFI_SIMPLE_NETWORK_RECEIVE_UNICAST |
303 306
 		  EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST ),
304 307
 		( EFI_SIMPLE_NETWORK_RECEIVE_UNICAST ),

Loading…
取消
儲存