From patchwork Mon Nov 21 15:45:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Santiago_Ruano_Rinc=C3=B3n?= X-Patchwork-Id: 13051331 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FE62C4332F for ; Mon, 21 Nov 2022 15:49:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231216AbiKUPtA (ORCPT ); Mon, 21 Nov 2022 10:49:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbiKUPs3 (ORCPT ); Mon, 21 Nov 2022 10:48:29 -0500 X-Greylist: delayed 8820 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 21 Nov 2022 07:47:51 PST Received: from zproxy130.enst.fr (zproxy130.enst.fr [137.194.2.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67E99429B5; Mon, 21 Nov 2022 07:47:48 -0800 (PST) Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id 5E79212083E; Mon, 21 Nov 2022 16:47:46 +0100 (CET) Received: from zproxy130.enst.fr ([IPv6:::1]) by localhost (zproxy130.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id YGP8A0YKAm36; Mon, 21 Nov 2022 16:47:46 +0100 (CET) Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id DF7D0120609; Mon, 21 Nov 2022 16:47:45 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zproxy130.enst.fr DF7D0120609 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imt-atlantique.fr; s=50EA75E8-DE22-11E6-A6DE-0662BA474D24; t=1669045665; bh=Tqs1+cs0AOwEZhOXLbiiLyDvETkiOUKalj5NKyrAEGg=; h=From:To:Date:Message-Id:MIME-Version; b=hw5xN82AUfjl2uPmGT8a4iJbDp3mSWokZ1iJk/N4vBq9fz6f+5lieHaYdOCw0VK8a hWp/xMsOm2wa1xVDPn2US4KFdObhLC6zMbx+IkZFXbfhSPMji0xnckzR/CtmOrgZM3 sbpoZ0c49nCx0i3EkKDHtkmpv8IxPhbk99RORxuY= X-Virus-Scanned: amavisd-new at zproxy130.enst.fr Received: from zproxy130.enst.fr ([IPv6:::1]) by localhost (zproxy130.enst.fr [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id oxF_0DmFg-UQ; Mon, 21 Nov 2022 16:47:45 +0100 (CET) Received: from localhost (unknown [10.29.225.100]) by zproxy130.enst.fr (Postfix) with ESMTPSA id A5A2012063B; Mon, 21 Nov 2022 16:47:45 +0100 (CET) From: =?utf-8?q?Santiago_Ruano_Rinc=C3=B3n?= To: Greg KH Cc: Oliver Neukum , linux-usb@vger.kernel.org, netdev@vger.kernel.org, =?utf-8?q?Santiago_Ruano_Rinc=C3=B3n?= Subject: [PATCH] net/cdc_ncm: Fix multicast RX support for CDC NCM devices with ZLP Date: Mon, 21 Nov 2022 16:45:13 +0100 Message-Id: <20221121154513.51957-1-santiago.ruano-rincon@imt-atlantique.fr> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org ZLP for DisplayLink ethernet devices was enabled in 6.0: 266c0190aee3 ("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: e10dcb1b6ba7 ("net: cdc_ncm: hook into set_rx_mode to admit multicast traffic") Without this hook, multicast, and then IPv6 SLAAC, is broken. Fixes: 266c0190aee3 ("net/cdc_ncm: Enable ZLP for DisplayLink ethernet devices") Signed-off-by: Santiago Ruano Rincón --- drivers/net/usb/cdc_ncm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index 8d5cbda33f66..0897fdb6254b 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c @@ -1915,6 +1915,7 @@ static const struct driver_info cdc_ncm_zlp_info = { .status = cdc_ncm_status, .rx_fixup = cdc_ncm_rx_fixup, .tx_fixup = cdc_ncm_tx_fixup, + .set_rx_mode = usbnet_cdc_update_filter, }; /* Same as cdc_ncm_info, but with FLAG_WWAN */