Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp881920yba; Fri, 26 Apr 2019 10:17:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqymxEHH3VkCwy0kLMfGF4lugChsl5Sqfwez1BKcJ5jraWBPiokajGynqDkVmmAOCHIyrRUM X-Received: by 2002:aa7:943b:: with SMTP id y27mr47368736pfo.59.1556299024074; Fri, 26 Apr 2019 10:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556299024; cv=none; d=google.com; s=arc-20160816; b=kWgEkibOuJHOiOVCkNnTJMGeIavJKvCrE9mlkrJN4NZ4VV/H73k/TbEoVhRWwGUFem EL6ov7q+f3hpD4VMelxlRFgHPZdTazj3S4WJgsg6CTtTDk37Gocqlx1GKydqBfOSD8+P RLuhOHmJNvZl1MCY2v7nGMS75LBZ9OYO+qfgSpIJW0/cWR5X++wpe90XiAqhudyY9hv3 qYgwG0TOETxb04xcQwiXMnyhIXPYO3Wf5FDewUIE58E9D4Q8uAIGI8yxwN+0Iun5nMQ+ nHIe/srqQHr0fNqi4EmqCPjQtHBsfgoqVSOb2E5vyGn/rUZtpER+khVcAS4BYOzwplMQ pHTA== 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=1Bi9NTMZwvV89o9GVjlvO1ukK8Mxk10lz7MG59f4nfA=; b=fBUnw/MmaKE+8NqjQul3+GaomY9izrVThp1Iqk/w3WohKFnXl135MTtxq0tk88aTt2 gygAAYXcVDn72kIhcukxuwxJL0/cKdP8+0ptHDSYfGwg538qG8oqNl+8QGqXNyx1axH/ 8u6HVFEGxcPyq0aFbAZnI8KoW6ugShGn6E+IOY89/EpJEiJRtFev1qFEDPsQ/KhD6e4X IeA912I/ILhQnxEyLtqPtdh8I8re9fxqnWgf7LYnnG/DkTIlkcWC21GGPimfRUYLkHoE 59Qm3YnZcR/nGDBtdg0hYz0sdoG7OBdrnZxjxbs5w7zo7Dn1QdNseqFnLEaAT3g68d6v DbUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tn0wk2r3; 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 g12si26806012pla.112.2019.04.26.10.16.48; Fri, 26 Apr 2019 10:17:04 -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=tn0wk2r3; 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 S1726373AbfDZRNO (ORCPT + 99 others); Fri, 26 Apr 2019 13:13:14 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36518 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbfDZRNM (ORCPT ); Fri, 26 Apr 2019 13:13:12 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3QHD8Um107986; Fri, 26 Apr 2019 12:13:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556298788; bh=1Bi9NTMZwvV89o9GVjlvO1ukK8Mxk10lz7MG59f4nfA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tn0wk2r3GFQagrIqNxwvX1mM6g1Zmg0BBSa/Rx5S/gYyYCkvSeIAPyD3p7ztlgZpU tUqUngLRdNtgE7d5wc1BTOsJ9wlmzdgVf3J20ZNzwOAmcli2UYhXuTspm7OOwOmgs+ ZF/xfsw1Zl/WpRzJAmVBsGVeNDbY8WsmXtEFdIfE= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3QHD8Ii030423 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 26 Apr 2019 12:13:08 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 26 Apr 2019 12:13:08 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE105.ent.ti.com (157.170.170.35) 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; Fri, 26 Apr 2019 12:13:07 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3QHD79l020259; Fri, 26 Apr 2019 12:13:07 -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 v2 12/20] net: ethernet: ti: ale: do not auto delete mcast super entries Date: Fri, 26 Apr 2019 20:12:34 +0300 Message-ID: <1556298762-8632-13-git-send-email-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556298762-8632-1-git-send-email-grygorii.strashko@ti.com> References: <1556298762-8632-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 f77b5884c8db..84025dcc78d5 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