Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5589524imm; Tue, 16 Oct 2018 12:41:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV60jHH+8Pdmec/6zsxCQV3HW+rxyGBIk+AGbGkE3O30hNPQ1/fPoaZ57GSXWL2tLhyFYLXa1 X-Received: by 2002:a62:2e02:: with SMTP id u2-v6mr24129918pfu.134.1539718866943; Tue, 16 Oct 2018 12:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539718866; cv=none; d=google.com; s=arc-20160816; b=GWbPbj1BNpY9xvo8H1pi1Na3HFa+VfuBjqyl3DfyVu+qkTFiUgjddjY57yh0MRhB/t NMEmk8+6DlG3fMJWodKSC6kBUPxVSzpUbrPIXp/rokzNvdkm8S8JMXX1mRCuyV42th2K U5GroUBCTbqF7tyR/exSmO+/Oe1SqxyfHFSinGRC56yryBp83XfHwOG/RWR5a4YO/FQy fJZFnZzgRqsieXD6SEQJ/qMmU9ZG+V5vJHLjJTRHmH2oMu+6D8//6D52u81WaJ/GojfN GKiJ5u4EdoMS7PBYG1Ma+xKfdi+ICDh2jVjRvA5Wf1atli2uKOoY1fjQd4ydGkGy0IVR 4Blw== 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:cc:to:subject:dkim-signature; bh=ry1DCDtpEG+friX9KDb9/mPFkLzrvBkzIZa2+pueuLk=; b=x7kRnGK/ET5ZremygUN1GXx7hw/Po0SVF5ogltxEXoofXbwrmNgCJdOOdgBnMaP2VY mOxC2NuodsTzgCiqNJn7ergqWhlqJ9zYRhZeiUzjCsjySbH5DW+H1XpyoAT3rdgX4U0/ TRmyf/idcyIfHuG2Kp6hsuVAMWxb0C5oygNNz1Q+pnS7ZjrVvEeHkok6X0cvFpcU08MG tAH31Ka72redvcwhoY7B7+x2LvBBtZy49S+Y4fKEmVD+vLv+VH7TlF9Ua9KYv9pUXUpc 2b40aG4K/wKmCAdiEchsPCIKL84rrcSmmAuChTloCrBSp4jnKU97KjSjuMnrkEENTAyO P0UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hpXWofUY; 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 d66-v6si15353224pfc.250.2018.10.16.12.40.51; Tue, 16 Oct 2018 12:41: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=hpXWofUY; 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 S1727493AbeJQDam (ORCPT + 99 others); Tue, 16 Oct 2018 23:30:42 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48420 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbeJQDam (ORCPT ); Tue, 16 Oct 2018 23:30:42 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9GJcYkK108076; Tue, 16 Oct 2018 14:38:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1539718714; bh=ry1DCDtpEG+friX9KDb9/mPFkLzrvBkzIZa2+pueuLk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=hpXWofUYZ9PuKT/0kYsOyXr6IaJ/Qq9bAHLRSP1qjsqhJ3HTBg2vu5n6Jw0QO26nT z7mSe6HYHbncTdDSLDlaM0IpFuSFTcXQIiHCPye6NOTDkyAFXVmnE1QCKao0E3gtt8 5TovMjgEgGz1vHyBtmlH9hdUaoJ1M4Sx7xEqSE4Y= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9GJcXVC005681; Tue, 16 Oct 2018 14:38:33 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 16 Oct 2018 14:38:33 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 16 Oct 2018 14:38:33 -0500 Received: from [128.247.59.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9GJcXP9031728; Tue, 16 Oct 2018 14:38:33 -0500 Subject: Re: [RFC PATCH net-next 0/4] net: ethernet: ti: cpsw: fix vlan mcast To: Ivan Khoronzhuk , CC: , , , References: <20181016182035.18234-1-ivan.khoronzhuk@linaro.org> From: Grygorii Strashko Message-ID: <92ab4728-109f-01cc-09db-3da4d8c8e92e@ti.com> Date: Tue, 16 Oct 2018 14:38:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181016182035.18234-1-ivan.khoronzhuk@linaro.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 10/16/2018 01:20 PM, Ivan Khoronzhuk wrote: > The cpsw holds separate mcast entires for vlan entries. At this moment > driver adds only not vlan mcast addresses, omitting vlan/mcast entries. > As result mcast for vlans doesn't work. It can be fixed by adding same > mcast entries for every created vlan, but this patchseries uses more > sophisticated way and allows to create mcast entries only for vlans > that really require it. Generic functions from this series can be > reused for fixing vlan and macvlan unicast. I assume this is first of all for dual_mac mode. > > Simple example of ALE table before and after this series, having same > mcast entries as for vlan 100 as for real device (reserved vlan 2), > and one mcast address only for vlan 100 - 01:1b:19:00:00:00. > [...] > vlan , vid = 100, untag_force = 0x0, reg_mcast = 0x5, mem_list = 0x5 > ucast, vid = 100, addr = 74:da:ea:47:7d:9d, persistant, port_num = 0x0 > mcast, vid = 100, addr = ff:ff:ff:ff:ff:ff, port_mask = 0x1 > mcast, vid = 100, addr = 33:33:00:00:00:01, port_mask = 0x1 > mcast, vid = 100, addr = 01:00:5e:00:00:01, port_mask = 0x1 > mcast, vid = 100, addr = 33:33:ff:47:7d:9d, port_mask = 0x1 > mcast, vid = 100, addr = 01:80:c2:00:00:00, port_mask = 0x1 > mcast, vid = 100, addr = 01:80:c2:00:00:03, port_mask = 0x1 > mcast, vid = 100, addr = 01:80:c2:00:00:0e, port_mask = 0x1 > mcast, vid = 100, addr = 33:33:00:00:00:fb, port_mask = 0x1 > mcast, vid = 100, addr = 33:33:00:01:00:03, port_mask = 0x1 > mcast, vid = 100, addr = 01:1b:19:00:00:00, port_mask = 0x1 > ^^^ > Here mcast entry (ptpl2), is added only for vlan 100 > as it should be. > > Based on net-next/master Thank you. For patches 2-4 Reviewed-by: Grygorii Strashko For patch 1 - I'm not sure, so it'd good to get more comments. > > Ivan Khoronzhuk (4): > net: core: dev_addr_lists: add auxiliary func to handle reference > address updates > net: 8021q: vlan_core: allow use list of vlans for real device > net: ethernet: ti: cpsw: fix vlan mcast > net: ethernet: ti: cpsw: fix vlan configuration while down/up > > drivers/net/ethernet/ti/cpsw.c | 189 +++++++++++++++++++++++++++------ > include/linux/if_vlan.h | 10 ++ > include/linux/netdevice.h | 10 ++ > net/8021q/vlan_core.c | 27 +++++ > net/core/dev_addr_lists.c | 97 +++++++++++++++++ > 5 files changed, 303 insertions(+), 30 deletions(-) > -- regards, -grygorii