Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp493507pxj; Tue, 18 May 2021 07:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzZHoJh6msWf2EEfG0s0HTc5cUwQognbJp+ZDuWcFT7xafyjbb9MwdHOKNYIaWHTI7b26t X-Received: by 2002:a50:9f05:: with SMTP id b5mr7718503edf.24.1621349967178; Tue, 18 May 2021 07:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621349967; cv=none; d=google.com; s=arc-20160816; b=tgO0OhM1wnQBrchHdYnZMtjkfHiZ8HnUsJU7LlHLgiaCr+WcfPOl25VgfGq6n/H90h DCaZAvwuTZ+ypcNw+CSqRqeiimNJaOl3G4YKVmS/d8FZHMLqmwg9kJDsYaTUCdS/Cm19 Nwyna+NE7ThS7QijPoRgLxPZLLKPv8dqanNStx6kwaShmk1FUSF4GxtjgoR3yC9OLCty 7RKy/XbHHTfZcpoGBd/jrU1af/ji/aUtVEDHoUEGR/vy7p7PoYwUsjLFUVLU559KgJQS Cr4kO4ydhUoLf3DeYd8bZKFcaSyS5hzA9+K8husltTwS26jXZndf/8JrTWVAzrxNO4p/ sY9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QWBGWIaxlJ+yFVHcydjtemYRE6t4d996WTlcx0vEdJ8=; b=g7Hzhkh2tSPcTM7NtrY7WUuC/+Ps2iD7ruzyPDN9W9Nt2pNKVeHSJFpqo24GXwxFqD YBBe6Zb1pTds8+dy+KkZj7YIwZTCyNOm0Cwoou1fcnduoh4OFL+2jZfXZhKfjLTHLZkV aDDDl6qOdFUqJUK9tJRc6amkZZJjK0rGQo2kyRbhpWWb1rzj11CiVrPJIT3qrC0P1/lK TDcow+9evz03vjXDpRtnaLhG9oBkr67iPTLh9KM8r7sFva2ja2tCg6sUCgr9QLVD+f+S GDJayPXHEwUMw365sP7Z/8CZdHtjd9TkvIq4DMGO1pBPtcMbUIXRbYS7E6Ul9v46cYyd hpjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RA5PwA4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si14607550ede.313.2021.05.18.07.59.03; Tue, 18 May 2021 07:59:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RA5PwA4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344092AbhEQPtw (ORCPT + 99 others); Mon, 17 May 2021 11:49:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:55332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245034AbhEQPcl (ORCPT ); Mon, 17 May 2021 11:32:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AEC0561CD0; Mon, 17 May 2021 14:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262324; bh=3Cu1OXbJy1z94skw+RnA2z/mEj1mqpDx2oIFxIyBWKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RA5PwA4XtBSz59MZje7DOburV+BrSumfk3fZbZC7XuBHj8toTuCklF0TNVgNpfAx0 W4UCNKY2+w4wRH7kAi4Hqj95q5tZupuqmPFeEYNr0V016IvXEYda8cP97I2FpzBqQM d2F1rGxBxLU9JrhDE5f/ou7aXlbV45dEmxU02dB8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ramesh Babu B , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 161/289] net: stmmac: Clear receive all(RA) bit when promiscuous mode is off Date: Mon, 17 May 2021 16:01:26 +0200 Message-Id: <20210517140310.542818861@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ramesh Babu B [ Upstream commit 4c7a94286ef7ac7301d633f17519fb1bb89d7550 ] In promiscuous mode Receive All bit is set in GMAC packet filter register, but outside promiscuous mode Receive All bit is not cleared, which resulted in all network packets are received when toggle (ON/OFF) the promiscuous mode. Fixes: e0f9956a3862 ("net: stmmac: Add option for VLAN filter fail queue enable") Signed-off-by: Ramesh Babu B Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c index ced6d76a0d85..16c538cfaf59 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c @@ -617,6 +617,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw, value &= ~GMAC_PACKET_FILTER_PCF; value &= ~GMAC_PACKET_FILTER_PM; value &= ~GMAC_PACKET_FILTER_PR; + value &= ~GMAC_PACKET_FILTER_RA; if (dev->flags & IFF_PROMISC) { /* VLAN Tag Filter Fail Packets Queuing */ if (hw->vlan_fail_q_en) { -- 2.30.2