Explorar el Código

[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 hace 5 años
padre
commit
ed4a82e239
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      src/drivers/net/efi/snpnet.c

+ 3
- 0
src/drivers/net/efi/snpnet.c Ver fichero

@@ -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…
Cancelar
Guardar