Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2615937ima; Mon, 22 Oct 2018 12:49:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV62+68TFVUaeA/SF21pA78InTUBfogzF6MvU+imRUM+N22BeEurfOk/vtPqc09L6M2ePvkVV X-Received: by 2002:a63:e841:: with SMTP id a1-v6mr22276717pgk.4.1540237751155; Mon, 22 Oct 2018 12:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540237751; cv=none; d=google.com; s=arc-20160816; b=FOggKQtbosz/0LH1auKC7ImK1aqpmFntx0ZpXAFIGIVJ727rE3cKNhFrST4N8ri7Bf 5tR90bKZTAcdR+4T+7W7wS8X+XxkMtQJAY4bGk6+oUJe+DMLkLPJ05tb5rKarces8czY nW2F2JlTaRq25yfjXDpMPjXsboXTd8D01lrjjGHM1LEr5Fjz7vk/TfcfEfV+OIU0zyFZ wIGJSKP4ogECByeKPEU4kOt+NyRbHW5QJBx4UoCEmhOQSVRwwQ+6ToiEWVDGazEE5WXU GAPTQgn612sMDNfroaPeyk12V29It4xmIHz18WQMwlfd8j/jIwJ19kPXKLfYxAB195u3 OAeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=MmbMO5aEKQo/koh3rbQzQeCNblPovxrmwG8cQuB9mnE=; b=OI3eE3jUEiWIcPic+PB7iODVauzkWqmO18U8s8nDrxdrFczG9kFyNcgJB9xfjBiHz3 oQiN6VarcmA5/CEi73/GRV6VRBz16cNg/YDjt0veBdGDn4BETfCLEFtHNjev6VParNsf GU6Jf8mIQOvameLehBElJjsVoZc/KaILMI+nQ3/ARMI8zt3d4y0dA0hOfQOz5YLGudqF QWRyUbec+LZmccjz0L0fnfCY88Pz7iwRCsJGTe9vP7feA0KNzuUm8aT38HyqABgOY++/ xRWunXNAyxsf+ihU0R0R8rIG+wGE+ZFGB32rsf9LC8TUFeHyNh57D2B7UlwMUEPr5sYh 7vsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aoxQFNQM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si3824379plt.112.2018.10.22.12.48.27; Mon, 22 Oct 2018 12:49:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@ti.com header.s=ti-com-17Q1 header.b=aoxQFNQM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728969AbeJWCqR (ORCPT + 99 others); Mon, 22 Oct 2018 22:46:17 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:39670 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbeJWCqQ (ORCPT ); Mon, 22 Oct 2018 22:46:16 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9MIQZNB021012; Mon, 22 Oct 2018 13:26:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1540232795; bh=MmbMO5aEKQo/koh3rbQzQeCNblPovxrmwG8cQuB9mnE=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=aoxQFNQM+UYXuUVv1AK63Pnq75jcLcfXfx9rd6a09GVXZpZyL0wNd67eJLmcnFP/8 pELXQQuBp1r8czkE93mTIrwW49slVCv3jBqccNoAtVi7uhleQx92XT2Lida3oikvTN YBF8bjxfpQ17FQ9dJYD+9MAE+ySGyOPgpMi5gEMQ= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id w9MIQZ2P031275 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Oct 2018 13:26:35 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 22 Oct 2018 13:26:35 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 22 Oct 2018 13:26:35 -0500 Received: from [128.247.59.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9MIQZvO021295; Mon, 22 Oct 2018 13:26:35 -0500 Subject: Re: [PATCH net-next] net: ethernet: ti: cpsw: unsync mcast entries while switch promisc mode To: Ivan Khoronzhuk , CC: , , References: <20181019202541.10278-1-ivan.khoronzhuk@linaro.org> From: Grygorii Strashko Message-ID: <6ac434fa-858b-8395-91e7-442cf18b33f0@ti.com> Date: Mon, 22 Oct 2018 13:26:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181019202541.10278-1-ivan.khoronzhuk@linaro.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/18 3:25 PM, Ivan Khoronzhuk wrote: > 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. > > Signed-off-by: Ivan Khoronzhuk > --- So, this is follow up fix for 176b23 net: ethernet: ti: cpsw: fix lost of mcast packets while rx_mode update because I can't reproduce it otherwise. Could you update description and re-send pls.? > > Based on net-nex/master > and is logical continuation of the > https://lore.kernel.org/patchwork/patch/1001633/ > > drivers/net/ethernet/ti/cpsw.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c > index 226be2a56c1f..f7753b240ced 100644 > --- a/drivers/net/ethernet/ti/cpsw.c > +++ b/drivers/net/ethernet/ti/cpsw.c > @@ -640,6 +640,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); > -- regards, -grygorii