From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A26011BC9E3; Tue, 27 Aug 2024 15:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724771440; cv=none; b=n5bmyvabHFn40vE7ba9yvZ2I9uOJ3+l5Yy/CDA6owBFsbtD4pyM5tNWb5tV9FItwaaMMi5rN9ES+wekAuol2pcJXF2q8Umv1MylIMF6n44dFmSOlEUxbhcOV47liPbdLogaiFDOC47K1KNndmuqPXQgV/Aumr7kYRsK+ahEoIAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724771440; c=relaxed/simple; bh=NMGXG+Q5K99DbRuFyG6rmfCz7aKgpIexnmR+Sorjbwg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gSVEoRZXwseCKulXbarWy3WrUddjfZ7J9LCrHZYr8VAQMMD3OY3byiHFRoA6AV7uZTW+ZPedCIeOYu70XO5y0GSz0b5nAn5wJ5awFnipfIG68uYOzrHEWGu8vY9oXetqCNvRf0Bpv6EI47NKiA+szNELZgh/0J0X54+wBI382Io= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=id9jQQ55; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="id9jQQ55" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16C1EC4AF67; Tue, 27 Aug 2024 15:10:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724771440; bh=NMGXG+Q5K99DbRuFyG6rmfCz7aKgpIexnmR+Sorjbwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=id9jQQ55DkoDFEOZyf1yviKmfriHIRMBMpwU4XcxF99JCKYfzC7btl3NVAXdeZGO+ cbT2En/QSJSMvmziRb2U/uXVs3y/0TYQhvG1vIj+sgur3L8OQbiv6etYrOAmMMi5+X e8cbJ66JMr35FHcP76L/RVxorzVGk3nxSelJnq2k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sean Anderson , Simon Horman , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.10 188/273] net: xilinx: axienet: Always disable promiscuous mode Date: Tue, 27 Aug 2024 16:38:32 +0200 Message-ID: <20240827143840.561826633@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240827143833.371588371@linuxfoundation.org> References: <20240827143833.371588371@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sean Anderson [ Upstream commit 4ae738dfef2c0323752ab81786e2d298c9939321 ] If promiscuous mode is disabled when there are fewer than four multicast addresses, then it will not 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 Reviewed-by: Simon Horman Link: https://patch.msgid.link/20240822154059.1066595-2-sean.anderson@linux.dev Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- 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 fa510f4e26008..b2e4d0b11a7d7 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -450,6 +450,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); + i = 0; netdev_for_each_mc_addr(ha, ndev) { if (i >= XAE_MULTICAST_CAM_TABLE_NUM) -- 2.43.0