From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C18CC433DF for ; Thu, 20 Aug 2020 09:37:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6D9E22075E for ; Thu, 20 Aug 2020 09:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597916230; bh=e/fhm8qM9lB2e6f7dde7Wmy2InYUdJ/w2gSLWcKuwrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ycGVfm7hwGU0FK8d/1Cii+2hSRycJCfzbEP9m0l/xvA/d4BdXS+IjWRo7xrfPgEal hobMsueMd0ldXqneT7oVK9cLK0a0s+Mh4w5TqEAWO3KGcMaiwc1j1e1e+HKcEYxKSN XXr+jrL6+oDQ3cGUYvWFILosJEPaqHtzf8Hcircw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728691AbgHTJhJ (ORCPT ); Thu, 20 Aug 2020 05:37:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:52634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728671AbgHTJg7 (ORCPT ); Thu, 20 Aug 2020 05:36:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1CC642075E; Thu, 20 Aug 2020 09:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597916218; bh=e/fhm8qM9lB2e6f7dde7Wmy2InYUdJ/w2gSLWcKuwrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=piY0ehj5a6mMVy73bPuWZn3AHGCHGKtxpCIIDIMDGpCNqPfUI46qQnrnNbS7zjiDG 7A7K/qEeyZ+s38HwLvhByFNgos5WYaQteC/UQcQ7FTsSUaQJJRiflz0vKRKJA3lv/c kyxYQudfqEJgt+lz8Mbkhl26UAy6FdSFGUF5JcuU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan McDowell , "David S. Miller" Subject: [PATCH 5.7 051/204] net: ethernet: stmmac: Disable hardware multicast filter Date: Thu, 20 Aug 2020 11:19:08 +0200 Message-Id: <20200820091608.825857051@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091606.194320503@linuxfoundation.org> References: <20200820091606.194320503@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan McDowell commit df43dd526e6609769ae513a81443c7aa727c8ca3 upstream. The IPQ806x does not appear to have a functional multicast ethernet address filter. This was observed as a failure to correctly receive IPv6 packets on a LAN to the all stations address. Checking the vendor driver shows that it does not attempt to enable the multicast filter and instead falls back to receiving all multicast packets, internally setting ALLMULTI. Use the new fallback support in the dwmac1000 driver to correctly achieve the same with the mainline IPQ806x driver. Confirmed to fix IPv6 functionality on an RB3011 router. Cc: stable@vger.kernel.org Signed-off-by: Jonathan McDowell Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c @@ -351,6 +351,7 @@ static int ipq806x_gmac_probe(struct pla plat_dat->has_gmac = true; plat_dat->bsp_priv = gmac; plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; + plat_dat->multicast_filter_bins = 0; err = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); if (err)