Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3572701yba; Tue, 23 Apr 2019 06:14:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+QRHBlbQz1m/y5GvpYs553IfLfxElmw6pLINyVry3annEf3X9ECNXCWHNjH/dZpMxhLid X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr25778194plr.43.1556025260661; Tue, 23 Apr 2019 06:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556025260; cv=none; d=google.com; s=arc-20160816; b=wPoH9H6Is4eXQCuuYvdfWArjKSQlXQ4yxGiLjqMFq6DSd+GBVnWBDhVrNAvIkGfbDn N2vM9LpEKll8EClCshSo1D6qkdSoKMOG7cevQ/eB9OoWTqFYUc9A8CUddqGyGPpHnsxn wiTqchEvIdLabCpL2Xh3fhEnYnhQQvyM/neVXAKG3CAK0m7iyMQAw4n/eCxeg2Fsg7qn SYTcoUSFuXppmrzkeHxo3QnMuRgC06JGyIinG594rvw2gzZhg6BjhB7aXHOnd6PvHFjS oZtqLpTPou/fhnmYUNQujn8ZknXjFKkARaxJxjJVX3kh40QJP9IAwW1bWQPiU10bbtpU ABkQ== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71si14778829pgs.561.2019.04.23.06.14.05; Tue, 23 Apr 2019 06:14:20 -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 S1728165AbfDWNLL (ORCPT + 99 others); Tue, 23 Apr 2019 09:11:11 -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 ); 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 To: , Ilias Apalodimas , "David S . Miller" , Ivan Khoronzhuk CC: Florian Fainelli , Andrew Lunn , Sekhar Nori , , , Murali Karicheri , Grygorii Strashko 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: X-Mailing-List: linux-kernel@vger.kernel.org Use ALE_PORT_HOST define for host port in cpsw_ale_set_allmulti() instead of constants. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.17.1