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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0BB5FC52D7C for ; Thu, 15 Aug 2024 15:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fdTcv2pTtlfMLvXZpW21XwQqBsB7G9gZIOSzCzHVeko=; b=ekMFKffXuMed5c4ZzWRlNgf7XZ ywpBKapgAicHnKhFDjtPiu/g7mBsHrSyvIaAweT9RUN7mm268FrNOQVILp4ApR4VyZYbkMga1OpoO 4I2px05kMmDVkmwfJqhCLYh1d1GqGfVIj8mnuAyqhYD8oubTFjnMa08f8Am3ioo31GSV96sTD/4on cEiw5HT3U8itXBQg0E2rWa+r76D3EXKdfMZtlkgEcs01nGMVDq1h7SU+eAT1alf5yckvDYc2Qy7W0 8VxjarzexP8Ml9sa5wT5+aW39N63k+I3/Vh7O6tgszSR+KiKeoxADNvgmPisala6kR6TUwrM/fokG sGGJbP6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1secFI-0000000AMLo-1WiF; Thu, 15 Aug 2024 15:18:36 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1secEa-0000000AMEu-0569 for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2024 15:17:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4DB1CCE19DA; Thu, 15 Aug 2024 15:17:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFC2AC32786; Thu, 15 Aug 2024 15:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723735069; bh=Eh+3dI9QYcV4aXS/Haj8Qthw9TJbckiHfHF7kk6QLlI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rkMkBcgBHp5hFSpGS1WLK3TjCWQMtDw9ZwumXUf5IxiL6NUxRvJ/EvUqAqYC0Sr7X OkoBRkXW5FBpVDkMhMgZO+t76ZW1QItnebpdp4r3yVElbG3tUj+UYycWGYsw8j89Me N8H0QSoSKsjdROgz/gNCm3cX776x9U5fzFqwbwyGMdj9e3w2rwLOEYEetWZiLkkFSv ZfNVG8WpKQ0dN43FBMkpZolYi30cxSz28KZB2hzl4wNmFJ29G49QMKo4kdp4crCZNC edoneoUT3EdCIYpw4gkbbuzAkfVqpHIyWzxoeoovTt1sp3f8WbYNMfzEFDdukAYvm5 JjXfUyzk44Q/A== Date: Thu, 15 Aug 2024 16:17:44 +0100 From: Simon Horman To: Sean Anderson Cc: Radhey Shyam Pandey , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Michal Simek , Daniel Borkmann , Paolo Abeni , "David S . Miller" , Eric Dumazet , linux-arm-kernel@lists.infradead.org, Jakub Kicinski , Ariane Keller Subject: Re: [PATCH net-next 1/4] net: xilinx: axienet: Always disable promiscuous mode Message-ID: <20240815151744.GL632411@kernel.org> References: <20240812200437.3581990-1-sean.anderson@linux.dev> <20240812200437.3581990-2-sean.anderson@linux.dev> <20240815145832.GG632411@kernel.org> <9d67d2b0-e4bd-466a-ad60-e40d4b1fc4e7@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9d67d2b0-e4bd-466a-ad60-e40d4b1fc4e7@linux.dev> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_081752_253582_B5BB5B70 X-CRM114-Status: GOOD ( 26.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Aug 15, 2024 at 11:14:41AM -0400, Sean Anderson wrote: > On 8/15/24 10:58, Simon Horman wrote: > > On Mon, Aug 12, 2024 at 04:04:34PM -0400, Sean Anderson wrote: > >> If prmiscuous mode is disabled when there are fewer than four multicast > >> addresses, then it will to be reflected in the hardware. Fix this by > >> always clearing the promiscuous mode flag even when we program multicast > >> addresses. > >> > >> Fixes: 8a3b7a252dca ("drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver") > >> Signed-off-by: Sean Anderson > >> --- > >> > >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 4 ++++ > >> 1 file changed, 4 insertions(+) > >> > >> diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c > >> index ca04c298daa2..e664611c29cf 100644 > >> --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c > >> +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c > >> @@ -451,6 +451,10 @@ static void axienet_set_multicast_list(struct net_device *ndev) > >> } else if (!netdev_mc_empty(ndev)) { > >> struct netdev_hw_addr *ha; > >> > >> + reg = axienet_ior(lp, XAE_FMI_OFFSET); > >> + reg &= ~XAE_FMI_PM_MASK; > >> + axienet_iow(lp, XAE_FMI_OFFSET, reg); > >> + > > > > Hi Sean, > > > > I notice that this replicates code in another part of this function. > > And that is then factored out into common code as part of the last > > patch of this series. > > > > I guess that it is in the wash, but perhaps it would > > be nicer to factor out the common promisc mode setting code > > as part of this patch. > > > > Otherwise, this LGTM. > > I thought about doing that, but it would have required changing the > indentation of ~10 lines and I thought it would be easier to review > the patch without that noise. Sure, I was also wrestling with that in my mind. I think we can stick with what you have :) Reviewed-by: Simon Horman