Message ID | 1556024950-20752-11-git-send-email-grygorii.strashko@ti.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3771843jan; Tue, 23 Apr 2019 06:11:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNVyKrPcRsP6E80aQcT/OTrq5JT0He3GpFMuSPpz6KXyQYPriGIU7/9+mkpV9nckrsjl02 X-Received: by 2002:a17:902:2b88:: with SMTP id l8mr25949323plb.262.1556025073383; Tue, 23 Apr 2019 06:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556025073; cv=none; d=google.com; s=arc-20160816; b=jwE0NBQ8FVqIKKuQrjrl0fxyQTdNNbKZObkoOqGNZ8P89naxe+nDRpbA8CHKQ4II6j 90H1Fmu4JNtT2esorNT5EOMh3pzyybCKgd7yr8t8vCSPRoALGgvR1F5dIlvB5eHwcsEc y2djH4OnRhr6x1uSkpDxjpZKHcGUO8MsJKBS/xzyhDuGtQTFdnTTq/0bUhWTtRnb00VG thlmku1Lu6lMtdJnrL/sqeDpGxgtoF3SPdDiv67/6WXPLtX+ptrvSztwGvfFFYp028wu RkO5qRvUkg0O6UzlRG4PV4oEZSO3Wa3BZ1n2LsmmbxGQwfQQaJVyRPdFCay+zB8TfHRp D9jA== 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=3Sd+0+IAB5WaDGreXx7707W4ctxgY0rxsF/1Amf0TEA=; b=ftgdjZgrXFUIDwLssDqejLUDTf4UnA1cOmYJdqf/APdqt6io6lR8eMKJckC3mDqrWk TvqW/p9uklZBaUO9VTEbP95JmbTluEiHX7CYguiNE8EbAqUWCXD6fysA1e//Bx7P3+bp QHecuU0AIzDtSuxYh4217Ch6n6P29Khs9jkvfW0LxFwjKOIKr8Iyt9QsIYVGBnrAh9s3 sCe03Db6XCDFHlQKNkDnLwIZPiVso6NU7MBiiVCR2t0hBq5Mt3cXPyZ8MpRut0tUDQkw uZKuZMZNDmdZ+yilAhHUoSI6Z/+B1QCulADRTu6+Q9zSPr5E+fWuzn//BT1/DFIvIe6U H+eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="rwZE7/B8"; 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 z8si1943981pgr.548.2019.04.23.06.11.13; Tue, 23 Apr 2019 06:11:13 -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="rwZE7/B8"; 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 S1728169AbfDWNLM (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Tue, 23 Apr 2019 09:11:12 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45522 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727890AbfDWNJe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 23 Apr 2019 09:09:34 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3ND9V0a085791; Tue, 23 Apr 2019 08:09:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556024971; bh=3Sd+0+IAB5WaDGreXx7707W4ctxgY0rxsF/1Amf0TEA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rwZE7/B82PsDBSkc4Yc8s1+4R6wNanKHe5Lpkt8llpNceiYEsG0Ts1vcRRvwEaxWd K8M4yFPONgNf0kxLkTxt+uGBBEbFscpgTWKX2VzWklty8G6nDTO6cGQOlFLrYi7Pbj URgN8X2lMAyF4Y543VbaKTYXrNO2VDaOUjbAcc30= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3ND9VMq045683 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 23 Apr 2019 08:09:31 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE114.ent.ti.com (157.170.170.25) 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:30 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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; Tue, 23 Apr 2019 08:09:30 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3ND9Td5018933; Tue, 23 Apr 2019 08:09:30 -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 10/19] net: ethernet: ti: ale: use define for host port in cpsw_ale_set_allmulti() Date: Tue, 23 Apr 2019 16:09:01 +0300 Message-ID: <1556024950-20752-11-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c index 7ac0c5ae0c92..83ccb422dddd 100644 --- a/drivers/net/ethernet/ti/cpsw_ale.c +++ b/drivers/net/ethernet/ti/cpsw_ale.c @@ -491,9 +491,9 @@ void cpsw_ale_set_allmulti(struct cpsw_ale *ale, int allmulti) cpsw_ale_get_vlan_unreg_mcast(ale_entry, ale->vlan_field_bits); if (allmulti) - unreg_mcast |= 1; + unreg_mcast |= ALE_PORT_HOST; else - unreg_mcast &= ~1; + unreg_mcast &= ~ALE_PORT_HOST; cpsw_ale_set_vlan_unreg_mcast(ale_entry, unreg_mcast, ale->vlan_field_bits); cpsw_ale_write(ale, idx, ale_entry);
Use ALE_PORT_HOST define for host port in cpsw_ale_set_allmulti() instead of constants. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> --- drivers/net/ethernet/ti/cpsw_ale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1