Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp881463yba; Fri, 26 Apr 2019 10:16:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLx9JODlYf41XyWsRHBKS/+sB8QE6bRqXi1MlOlPRFgASNQYle6GjyYDEK9kTfgjK4IaZy X-Received: by 2002:a63:ff05:: with SMTP id k5mr32109917pgi.342.1556298993939; Fri, 26 Apr 2019 10:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556298993; cv=none; d=google.com; s=arc-20160816; b=hglUaoUNP+sOLD1dhSuaieggT526pT+N1YMlkVq49fCcmooKxJvydZUWhHU1n/QrFP UOcYpvQffQB3B8KUp1e2W2t2rjcNblK1YMPuJMlcDebtRui1a8ez23dyUIKYXhR84FxP EDJgvELK07efRKypmjamT5e8gwGtHudwXacOOSeowNNaBndfxg7nh8GDcNwo5tMFg2Kl dh8Dg+t0IcEggJTV+Iox9Pq+NHh9IdycZBd7sJ+LWZNzFlRsOpsQHnAjWDpg4h1TskLb A6ooZpPv4CEfB6IdYD58436pYLDD2ly9SNPhIoK54i5FjS+84v3GHdHsmyoSJuqg8n4q cH0w== 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=yABKq8drNC98pkNldovRnveENbbn16aLgzOUWMZcCJk=; b=Zm+34b3oUX6LJknXMprQf0Wd7/kAKmTQ9rBMOANZ+D5PbnKPvwI/aDXkkiVvY/b/yl RblL45zg27h7evrUnPAbHOXsS75RJFljnDNExXNPtxawtV4PWkZCPei782yxPAwheUZ0 zKBvbkVZfp88WMa+pjds3GXkHH+u5QLHjlTl9nlKvd3SB/frmerfT9uL67jJ44KrLi5t dG/tsQ663AhmxbgCfkEP4RWb/JScHRYenUVrRuAbEY2s0KMUFSQ9KuWEt+S1pAnVvm5e pucATBLy3QsaPona5CW0PNw3eCMG0vL0l3MNy8yWG7fRCrZ8CbFcW7QG9N29ug4b2Tg/ d35g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XXlcOcr9; 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 q1si27044885plb.257.2019.04.26.10.16.19; Fri, 26 Apr 2019 10:16:33 -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=XXlcOcr9; 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 S1726793AbfDZRNJ (ORCPT + 99 others); Fri, 26 Apr 2019 13:13:09 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36770 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbfDZRNI (ORCPT ); Fri, 26 Apr 2019 13:13:08 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3QHD4ba079295; Fri, 26 Apr 2019 12:13:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556298784; bh=yABKq8drNC98pkNldovRnveENbbn16aLgzOUWMZcCJk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XXlcOcr9PiuDRJ2OFB2PGk1BDEH6RZnHZeR4SxGKpSlYiVErWaOu7lGH5ADib/4ar 4qE/FCq81UikcYRzW81KfmlshzHpV/LYlbfZr8oYmkDRXtCUSyKjVV16fHk5WYviut L4I7Dr13l7zU/+UpeFXBEMCw4fmGenrvo+Th5NZ4= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3QHD4d4030278 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 26 Apr 2019 12:13:04 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE111.ent.ti.com (157.170.170.22) 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:04 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Fri, 26 Apr 2019 12:13:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3QHD32F118629; Fri, 26 Apr 2019 12:13:03 -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 10/20] net: ethernet: ti: ale: use define for host port in cpsw_ale_set_allmulti() Date: Fri, 26 Apr 2019 20:12:32 +0300 Message-ID: <1556298762-8632-11-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 Use ALE_PORT_HOST define for host port in cpsw_ale_set_allmulti() instead of constants. Reviewed-by: Andrew Lunn 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 17c59fa2561d..67dc769441ce 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