Message ID | 1556298762-8632-13-git-send-email-grygorii.strashko@ti.com |
---|---|
State | Accepted |
Commit | 7cb528c55379ffbffc7dca91397c5481422a6af5 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp992076jan; Fri, 26 Apr 2019 10:13:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRMRrJLAD2PS56D41YrQ8sVLLBPpbDAPE4OsmLaC9UFIsU2UIYH05BIUGyJkNJtL401hyD X-Received: by 2002:a62:292:: with SMTP id 140mr49293546pfc.206.1556298797151; Fri, 26 Apr 2019 10:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556298797; cv=none; d=google.com; s=arc-20160816; b=qP31ZUELNucjzuO0lMW0/v+QRJsPaB7miPcmk7otiYi2vGXcp3j1YEHdyZKGxZgaqn 7+s2pEbuJl0aw4JvOWBJcoEJLEfyovCkZos2WvcQ5jc9mSMnal6SNyz3fweyDRCeyO0p 8nV86UZfc9JUYWI1s1cKTy0nv8/STg2DYrWTXAWIz5Q2gxuSTVXMfKdhlfAnenfEYwiy 6AvZf+6Yfx4WI30EUBirkJGHWNGQRdb1jzBsVLLCviSCfv3MgS08UHDj5yTRbdkDUDfA kOFpdaJOpjH4kEflfXwUhp3AebGHzDhXFdjGgqVKVbLU/wqaPFiyC9b1ueVKsDv8+oKR TLWg== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si25901748pfd.275.2019.04.26.10.13.16; Fri, 26 Apr 2019 10:13:17 -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 S1726887AbfDZRNP (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Fri, 26 Apr 2019 13:13:15 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <grygorii.strashko@ti.com> To: <netdev@vger.kernel.org>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, "David S . Miller" <davem@davemloft.net>, Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> CC: Florian Fainelli <f.fainelli@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Sekhar Nori <nsekhar@ti.com>, <linux-kernel@vger.kernel.org>, <linux-omap@vger.kernel.org>, Murali Karicheri <m-karicheri2@ti.com>, Grygorii Strashko <grygorii.strashko@ti.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
net: ethernet: ti: clean up and optimizations
|
expand
|
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);
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 <grygorii.strashko@ti.com> --- drivers/net/ethernet/ti/cpsw_ale.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1