Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp681039yba; Wed, 24 Apr 2019 07:58:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3e6YgJOZXbOovpJxGxk+whPKUZpT99fBZuokkMULvF0z9+XnLuIFSFB2+XteloPRIqkTI X-Received: by 2002:aa7:8a92:: with SMTP id a18mr34253029pfc.218.1556117907674; Wed, 24 Apr 2019 07:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556117907; cv=none; d=google.com; s=arc-20160816; b=iBFc7MHyU3Syrm2fa2AQ41uXHyCqXxykBYGMyzO6fTwzMSn3R5b10RKXV2POxaknTL MDIzqBog90JGvIqBHy1M6hH3Idc4Ov+QhR68O+8JQ2zPglSvhNeqBZqNmQM53m0gV2hj JfOAe82y9vbJU53DahIpADt+ZdSflmiJZqgtlR+PmKEX8Ik100a746g8245ifjhSsp+l xXFv8SRetVDRSpeFbYD88X2sLrTCJkRsBoXsAsnl5eyyir2swOiKEUJOLuUT5S0RVfrU +qM2gGaZX4V0VlZkdBr4HWsgCbphqZAKcL3NH+4NabgkLd1b4DkxxsgPMhY6i5gLZ+2d 4Cng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=h7BkjkKX+qx2rUolg4bMIbzVo5irITD/VvdLJOXugT0=; b=UVlrL87az1P05evwdYT1gT1tCYv9pJUB2jwBbuJ0yuMXvWYqMPn1GStBTDfLnS0GDY B9Z1kOCTlwA444g+EP7kMiYgfTmViyljtSoLvxRb9vamQ8+Y3RKfkS/brWWRjeT9/PXO beJwxcCGNiL2HWRSyUxkI+viDpYP/0qdKoV+ykYJUNxhbwG7XxnJUafIx6TpaAEiqO5h rviqZVS05YtxkeGTA+X5OLGoxlyaqB1+xsDlyq1J/4WRFraAT/Ap7MWeRrM7t19j8hRA X6tTAdqVNhuM3dSQk9dShWYdAPcjzs3HFYgmEwaNy7w9tFHTzR1pFQdwauvetoD2u+cI fIJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=uSbQjGKH; 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 60si19850106plf.122.2019.04.24.07.58.12; Wed, 24 Apr 2019 07:58:27 -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=uSbQjGKH; 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 S1732747AbfDXOzV (ORCPT + 99 others); Wed, 24 Apr 2019 10:55:21 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51888 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731272AbfDXOzT (ORCPT ); Wed, 24 Apr 2019 10:55:19 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3OEtDvR115379; Wed, 24 Apr 2019 09:55:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556117713; bh=h7BkjkKX+qx2rUolg4bMIbzVo5irITD/VvdLJOXugT0=; h=Subject:To:References:From:Date:In-Reply-To; b=uSbQjGKHPIki3NrzFtkKCZ7N89qi+DLeoOW17DBIpa0qnVMGIBmt0U5RxcyZE0exU tQqCnVHNcrBcltSqFDKGDZc4NSfHFLuFPwmHDldgUbofIEda+bZh7R8Ev+Sz25sgbE 8O3Iqe0cAfhK426m1SFYRZqDeyXVePXK/YRRtrRw= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3OEtDGi041214 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 24 Apr 2019 09:55:13 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 24 Apr 2019 09:55:13 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE109.ent.ti.com (157.170.170.41) 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; Wed, 24 Apr 2019 09:55:13 -0500 Received: from [172.22.184.139] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3OEtAS2075145; Wed, 24 Apr 2019 09:55:11 -0500 Subject: Re: [PATCH net-next 11/19] net: ethernet: ti: cpsw: fix allmulti cfg in dual_mac mode To: , Ilias Apalodimas , "David S . Miller" , Florian Fainelli , Andrew Lunn , Sekhar Nori , , , Murali Karicheri References: <1556024950-20752-1-git-send-email-grygorii.strashko@ti.com> <1556024950-20752-12-git-send-email-grygorii.strashko@ti.com> <20190424122230.GA6075@khorivan> From: Grygorii Strashko Message-ID: Date: Wed, 24 Apr 2019 17:55:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190424122230.GA6075@khorivan> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit 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 On 24.04.19 15:22, Ivan Khoronzhuk wrote: > On Tue, Apr 23, 2019 at 04:09:02PM +0300, Grygorii Strashko wrote: >> Now CPSW ALE will set/clean Host port bit in Unregistered Multicast Flood >> Mask (UNREG_MCAST_FLOOD_MASK) for every VLAN without checking if this port >> belongs to VLAN or not when ALLMULTI mode flag is set for nedev. This is >> working in non dual_mac mode, but in dual_mac - it causes >> enabling/disabling ALLMULTI flag for both ports. >> >> Hence fix it by adding additional parameter to cpsw_ale_set_allmulti() to >> specify ALE port number for which ALLMULTI has to be enabled and check if >> port belongs to VLAN before modifying UNREG_MCAST_FLOOD_MASK. >> >> Signed-off-by: Grygorii Strashko >> --- >> drivers/net/ethernet/ti/cpsw.c     | 12 +++++++++--- >> drivers/net/ethernet/ti/cpsw_ale.c | 12 ++++++++++-- >> drivers/net/ethernet/ti/cpsw_ale.h |  2 +- >> 3 files changed, 20 insertions(+), 6 deletions(-) >> > [...] >> +        vlan_members = >> +            cpsw_ale_get_vlan_member_list(ale_entry, >> +                              ale->vlan_field_bits); > Seems like declaration for cpsw_ale_get_vlan_member_list() is not > part of the patchset > > It's define :) DEFINE_ALE_FIELD1(vlan_member_list, 0) -- Best regards, grygorii