]> git.baikalelectronics.ru Git - kernel.git/commit
net/cdc_ncm: Fix multicast RX support for CDC NCM devices with ZLP
authorSantiago Ruano Rincón <santiago.ruano-rincon@imt-atlantique.fr>
Mon, 21 Nov 2022 20:53:05 +0000 (21:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Nov 2022 13:46:42 +0000 (13:46 +0000)
commitfc6f40271c7291551d199b23b46562968b714706
treeb0f871370da236bb6d9024bb03ffc9fd33807221
parent7371347ba341277a28124244788e150ef3f89d00
net/cdc_ncm: Fix multicast RX support for CDC NCM devices with ZLP

ZLP for DisplayLink ethernet devices was enabled in 6.0:
932066cbbe11 ("net/cdc_ncm: Enable ZLP for DisplayLink ethernet devices").
The related driver_info should be the "same as cdc_ncm_info, but with
FLAG_SEND_ZLP". However, set_rx_mode that enables handling multicast
traffic was missing in the new cdc_ncm_zlp_info.

usbnet_cdc_update_filter rx mode was introduced in linux 5.9 with:
a5e7b76e6361 ("net: cdc_ncm: hook into set_rx_mode to admit multicast
traffic")

Without this hook, multicast, and then IPv6 SLAAC, is broken.

Fixes: 932066cbbe11 ("net/cdc_ncm: Enable ZLP for DisplayLink ethernet devices")
Signed-off-by: Santiago Ruano Rincón <santiago.ruano-rincon@imt-atlantique.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c