Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3570886yba; Tue, 23 Apr 2019 06:12:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxdgN/P/jLNeZzjLkw79UB331qsgF26QwRqn/iTyEOXO6oCBcFe4ICtskwRfvyK9mEWlFg X-Received: by 2002:a17:902:e281:: with SMTP id cf1mr26255061plb.13.1556025165332; Tue, 23 Apr 2019 06:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556025165; cv=none; d=google.com; s=arc-20160816; b=W41ZPboF9xexwU5jsz77yAq8xEee38cWGI1sko/IS/BywtVrxACxDA9kstV0kahy1e sLwlBgRxy/ufJnyKIke5yf9pkcL+UWiGn9Fw19c5wFUB6yw6Qkgrbift8P0AEfN9hEgm RvASSZdOV4Ke7gZqrObp93xCYnngzbVo7CnFk8dXkHJel9D1qnYmjIPpl0Hd0nGe8HIo Ur9Sqhl0TX7/asZLFGvTvzn/myBZmNDTRFJpvgA6yYiwpG5iBM34mc266OzJfRCc4Tfo o9zQpLe3PL+C7/DqX63VD77Qy0ETtkjRYdZdiM0SmyaSOSAUmhF1NgxMBNsyIyxju/NY 0rQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2RU3zXq9zlvMCMVF5WESwkLYvT3J3p4kGLWcpQEGzqM=; b=Bl7B9H+YjLS9S73w0HSsem02NB0tzEYuNpMkG2DPw5WY7g8NT5CAVAXd1gRu7cMYcY aKEL1h5InKRnDpYlB+gkxBPKsKdN3N+nflW0qfiUCs1XtzaSGT4SG43NoHt9UprVhyrX ByAplf7pKwd2v0OPRtfR+3LyMm02YQyDQN/SjPZb09rVni+ODioXC+hynSmFRxKUb9X3 HHgIfCs/FYeWmt0k750YGNris8bsNgwNu/j9i1X3OdoZL34Fa0Aegcg6WiXpUjNdC9yr Hy9waFB/elnOW7KwVdzaMu1tkb8Fi5F9wtI1uftzokq1OsB4JEnGHmQn9ObkebXQaKe+ dTVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MTAk2PzP; 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 r6si7117339pgg.281.2019.04.23.06.12.29; Tue, 23 Apr 2019 06:12:45 -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=MTAk2PzP; 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 S1727955AbfDWNJl (ORCPT + 99 others); Tue, 23 Apr 2019 09:09:41 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50018 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727924AbfDWNJi (ORCPT ); Tue, 23 Apr 2019 09:09:38 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3ND9YB9023172; Tue, 23 Apr 2019 08:09:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556024974; bh=2RU3zXq9zlvMCMVF5WESwkLYvT3J3p4kGLWcpQEGzqM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MTAk2PzPMR06Ao+08Ae9yj8Jorq/X7JuuZ07NzeHBwscd/5SAUq5S0lR9BIX1AwPi M6PmUaOADSwbNhKMIyAWrVAC8U9FxmLbKXFHszDRzeZk0Rtl0MCh7T/GoficSVdCSJ XjmngvQ9K0JURxrT5TlNBrH3c0s77QkHkjlqmQ0s= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3ND9Yti126179 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 23 Apr 2019 08:09:34 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 23 Apr 2019 08:09:33 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 23 Apr 2019 08:09:33 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3ND9XsU126269; Tue, 23 Apr 2019 08:09:33 -0500 From: Grygorii Strashko To: , Ilias Apalodimas , "David S . Miller" , Ivan Khoronzhuk CC: Florian Fainelli , Andrew Lunn , Sekhar Nori , , , Murali Karicheri , Grygorii Strashko Subject: [PATCH net-next 12/19] net: ethernet: ti: ale: do not auto delete mcast super entries Date: Tue, 23 Apr 2019 16:09:03 +0300 Message-ID: <1556024950-20752-13-git-send-email-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556024950-20752-1-git-send-email-grygorii.strashko@ti.com> References: <1556024950-20752-1-git-send-email-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain 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 Do not delete multicast supervisory packet's (SUPER) entries while flushing multicast addresses from ALE table cpsw_ale_flush_multicast(). Those entries have to be added/removed only explicitly. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c index f7369982ae33..d09768368dbd 100644 --- a/drivers/net/ethernet/ti/cpsw_ale.c +++ b/drivers/net/ethernet/ti/cpsw_ale.c @@ -280,6 +280,9 @@ int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) if (cpsw_ale_get_mcast(ale_entry)) { u8 addr[6]; + if (cpsw_ale_get_super(ale_entry)) + continue; + cpsw_ale_get_addr(ale_entry, addr); if (!is_broadcast_ether_addr(addr)) cpsw_ale_flush_mcast(ale, ale_entry, port_mask); -- 2.17.1