From patchwork Wed Oct 31 23:08:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 149900 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp100628ljp; Wed, 31 Oct 2018 16:09:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5e7CDUioh1zvRdmxbvMqbc1GVV9ji1n54UF/pmBpiPGR7w2Z0aLspU0lNrpdOAbd6e7w6Wr X-Received: by 2002:a17:902:6f16:: with SMTP id w22-v6mr5339178plk.309.1541027392784; Wed, 31 Oct 2018 16:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541027392; cv=none; d=google.com; s=arc-20160816; b=ZcycLoNrhxiGjLDi1dQn4jTKVr2tgRAsw5HC1xJd4Kt3X/ZEzfwCIXHgGJFvf3WUUF gwXvfUvGeW2lSbf7xIKfnzB/eA6aoFjx6QYEz2GEIg/Uo1W02YsOjcYukH/3JYa1otX0 FW5JGEXeuUP6+HVKw4J2Jxj4KF0c0Pom6VyWiMK23ksjQ53T8metlW/hTc4SsR/CxYgV E9TKm9NgxVjeFB95Qva/Iowldetazrso2WnMQO01l/hB92ozTyLoZuyD74UAyVcGuDUk 8HPQGpWjESBA+YwKsAYXR7si0igVO1Pipb6PXInO2gfO1/CGHVymX+1LL+tQEFmSfuWh A8Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=hJmfey1SB63A+cLAKc+daiy9Ou5KOwSQLHyp/rE6DNE=; b=laXeCz0DGhlq68UP7XvjDb3QOi1O/4sNgvzgv0IpbqsvNr/HYbR5Ua4AmnDrFndFqb YR/UO0D6Z8IJgRShRVOd+8w8dqJHcI7OBmIhjVXSa5Q4G5Uwvg1lascO21wlqTC2172c +kcPHjXcA3mYfaZQ6Ox7zfDyhauckkcHGYB6TKK7c+dcjV8fTxgZ3qX8SD8LCLT5s07X 1U3CW1OJbOBdGcLz4D3+PRRBacRq4ZpHeoWNFRktr8GrrZcyqLPeFrOAJudlkeID5hwu 8MDP5bhQNFDKtrLRWKGi1lpPMesc3vgnODn1fE11G+O6wE2aMzqnhN4aHeOklSw79bmY RSSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ye8tSP30; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v38-v6si28460292pgl.539.2018.10.31.16.09.52; Wed, 31 Oct 2018 16:09:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ye8tSP30; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730726AbeKAIKC (ORCPT + 15 others); Thu, 1 Nov 2018 04:10:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:60386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729461AbeKAIKB (ORCPT ); Thu, 1 Nov 2018 04:10:01 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB4C42064C; Wed, 31 Oct 2018 23:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541027390; bh=bgLFnVB2vrMrKLehnfRKtP/GL3PqH1sWLoYTCb5LlWQ=; h=From:To:Cc:Subject:Date:From; b=Ye8tSP3071VPMkdipjKqiiddVvo150HItgihC57nxT7WVzKw7ofAprHewMV7VzLp2 5AX4GBOjs3RY3ZgnvnMjyU2hMmTes4SrcvJt52rm9p2p/jThvCed/tLIjIk1/4+HcQ Wk7GhWMtWa7t8ULDB+zPukhj1VN81hXz0TiirS+8= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ivan Khoronzhuk , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.14 01/73] net: ethernet: ti: cpsw: unsync mcast entries while switch promisc mode Date: Wed, 31 Oct 2018 19:08:36 -0400 Message-Id: <20181031230948.29203-1-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Ivan Khoronzhuk [ Upstream commit 9737cc99dd14b5b8b9d267618a6061feade8ea68 ] After flushing all mcast entries from the table, the ones contained in mc list of ndev are not restored when promisc mode is toggled off, because they are considered as synched with ALE, thus, in order to restore them after promisc mode - reset syncing info. This fix touches only switch mode devices, including single port boards like Beagle Bone. Fixes: commit 5da1948969bc ("net: ethernet: ti: cpsw: fix lost of mcast packets while rx_mode update") Signed-off-by: Ivan Khoronzhuk Reviewed-by: Grygorii Strashko Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ti/cpsw.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 8cb44eabc283..a44838aac97d 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -601,6 +601,7 @@ static void cpsw_set_promiscious(struct net_device *ndev, bool enable) /* Clear all mcast from ALE */ cpsw_ale_flush_multicast(ale, ALE_ALL_PORTS, -1); + __dev_mc_unsync(ndev, NULL); /* Flood All Unicast Packets to Host port */ cpsw_ale_control_set(ale, 0, ALE_P0_UNI_FLOOD, 1);