Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp882923yba; Fri, 26 Apr 2019 10:18:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhbFnYvoH1G5UMdq+6tVGtw4YYrr1EYs5E260QHdC9ht2UI/zvPdeC4FsOWC92w5hg0ORw X-Received: by 2002:a63:5a4b:: with SMTP id k11mr44343331pgm.119.1556299086167; Fri, 26 Apr 2019 10:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556299086; cv=none; d=google.com; s=arc-20160816; b=hNjYNF4jWXX8ajzCyK/v3VT/eABXuzvd5tXXmSXDkpIwED7EAUGmE91lWSnIsbsemD 1A0fcXsJvscT4CCh98FLnlsB6inFYFzy73g6ISqGgVk2Oo9IjcEg1FIZLmlecKoBzYMV pYtiiEehE2stNuitBOADDcqa7lBlYZO/KIBDsMPdNaoSGwMmPi76laKm9MCj3W5TEXX7 72pdtQZhZAKGy+PWbAMb5Rq0trDqktYE9WP/5AyWQZ6cDn57bp0COg1NzHw8xa1VmyGR RPoInTkvtbUcwJUku2NOQfZN9JCF4Lb6tX0D2gztV7UvG8eXUjkuAe1dv1ZAeZDPCHlo FQAQ== 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=ajQTeZ+jcHzLnz5r3lrkL9478/8N4axprhs3qO6mETU=; b=R40ngbngR758E0I1I2mZ4KuQdPHCBJ27QCgKwsToZRXNd4amiTRmPj6MK5DK/V86fE sL7HKStI1vDZ5svDqgzY/QcvhMdVcI8kVEY7NX1CIOv+yRbOYjlf3qJDvQbWsvA3/m2+ aGMB5cqZRjiC58ylZcM6cZ5Os/QX6pv2wXBvHoEgarYpQqdxAQ8vQ7dRp5uFJpPeFdUp yw84ZmUdTC3OjhjBrOf1H7Aq/SWF5eDo8O00rDheFaUb/KvXZCjLdGCicKaRE8CABkGy yn2qZFZGjzg5MKCKetBFWNPyR5APlmJ0PWFb3cxtZaPSUjGM9Hmx70UjJLaeFy9GkCjL 4+Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dk4aRiCe; 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 31si26941920plk.42.2019.04.26.10.17.51; Fri, 26 Apr 2019 10:18:06 -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=dk4aRiCe; 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 S1726734AbfDZRPH (ORCPT + 99 others); Fri, 26 Apr 2019 13:15:07 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:47756 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726596AbfDZRNG (ORCPT ); Fri, 26 Apr 2019 13:13:06 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3QHD29i072481; Fri, 26 Apr 2019 12:13:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556298782; bh=ajQTeZ+jcHzLnz5r3lrkL9478/8N4axprhs3qO6mETU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dk4aRiCeoLlgN4nQuRy1MZm6DdsrdbsmR0vrAc97RkpZad33tjmj/1SldAtn2DcCv TB+pmZ7EcvTmLu5Z+nMy0LTCXsy6P9VzQXIrdpw1Jj5mquDtJdxKlkaMXJFEcFe0p1 rsXsDbz8R6IPJx4a3rCStNaKI/tB18l0Wr4+CQ/Q= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3QHD224123047 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 26 Apr 2019 12:13:02 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE113.ent.ti.com (10.64.6.34) 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:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE106.ent.ti.com (10.64.6.27) 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:02 -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 x3QHD1o3019644; Fri, 26 Apr 2019 12:13:01 -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 09/20] net: ethernet: ti: ale: fix mcast super setting Date: Fri, 26 Apr 2019 20:12:31 +0300 Message-ID: <1556298762-8632-10-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 correct define ALE_SUPER for ALE Multicast Address Table Entry Supervisory Packet (SUPER) bit setting instead of ALE_BLOCKED. No issues were observed till now as it have never been set, but it's going to be used by new CPSW switch driver. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c index d6ee344e1fe1..17c59fa2561d 100644 --- a/drivers/net/ethernet/ti/cpsw_ale.c +++ b/drivers/net/ethernet/ti/cpsw_ale.c @@ -355,7 +355,7 @@ int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, cpsw_ale_set_vlan_entry_type(ale_entry, flags, vid); cpsw_ale_set_addr(ale_entry, addr); - cpsw_ale_set_super(ale_entry, (flags & ALE_BLOCKED) ? 1 : 0); + cpsw_ale_set_super(ale_entry, (flags & ALE_SUPER) ? 1 : 0); cpsw_ale_set_mcast_state(ale_entry, mcast_state); mask = cpsw_ale_get_port_mask(ale_entry, -- 2.17.1