From patchwork Fri Apr 26 17:12:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 162930 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp991970jan; Fri, 26 Apr 2019 10:13:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAvW3S45b+isflqfT0b8p2T/j379mOcS9/8I8ieU73Wvhr5kqEw0y+jFsl76SgS4r7VydV X-Received: by 2002:aa7:9116:: with SMTP id 22mr40887540pfh.165.1556298790756; Fri, 26 Apr 2019 10:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556298790; cv=none; d=google.com; s=arc-20160816; b=Lyb64PVtaOHU37LqCutVA85uDhbNaZ9elDTg1qcH1mc5JGhVhutkBojNIQmtRO/LNw JB8eQKcDpd6T/wzyWo2P8qPk707CDI24x1mVuRQ7W1zDBF35RG4YssXl6nPVNOKmfROt 89vzFBanMqblD8l5iH1IZt6+Np0AHbo9WRev+cGpDvCxg5kv5qZgCAB7qV7C00hNQNq5 QTTukOwMZkbaJzFzon3VKzpG2h+LUp30YY3HykuTfqFkDYFgZneIgYXgrGCOM52oj28u DvwWBAYGWzWfhlx6b1IdiR9C+Bl4srdgC2KFi6gOD/uGzXm0eeuUtYNJmSByctoqC/94 JDfQ== 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 j11si12269791pgp.433.2019.04.26.10.13.10; Fri, 26 Apr 2019 10:13:10 -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 S1726804AbfDZRNJ (ORCPT + 30 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 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(-) -- 2.17.1 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);