Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1171148pxk; Fri, 2 Oct 2020 02:59:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4t+48mhc03q7rQXLo6BfGjoXSjAW+ag7BZtD+baVWmq4o/TO7fj0zYvIk5sf51ks9gDvX X-Received: by 2002:a17:906:e103:: with SMTP id gj3mr1379639ejb.153.1601632752912; Fri, 02 Oct 2020 02:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601632752; cv=none; d=google.com; s=arc-20160816; b=QL0HIiRKMzeHgrk63FNYMTVB5KVrBwLrRBq+PfTrCs971YHcqbEubEAVPqp/5nSuHN P1jD6vVDSBqhlpvcSbD5nLz+rPD0lGFAgHMcotsmv56BzDxyvqt4aNCMvU3QIjHoAyPP ZGcYtF9N44SO5QpTwrcPLnZqjdUuznIYUZrBxAD9alans2qQYw+VJGt3CZfHGTk1nvH6 1NQgkckif9Mdlntc0WPVuL6Q2TJB4A7/aREKOFmfcdYSLhgFfywAdt0fy/ywnSa5cptb UgE9xVs3NX7S2P1sTq6BMaBmYE3W5g87ALklqoNeRpllmNSPSleZcjt7OnjR+32dn6SV MivQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=8U7u+CSKT6oRTEF1mtbv60uAh2qzO1YSp7paUVcrpuw=; b=x51rdsSFSdY8OC2UkZEOLIl2vU3jvHTDoytPMd+NY5Hs9NsDCXG5d0hYECSZjLtBpt qk0HiXlOsKwZOT1JKAvBU+g3eou7uX2U6yPPezsR3BzdPj4E5u1XqpKw0m/zpZrbyqoT Tk6P87MnDdUz/dck2OBBfb7cNcs1WaKvgxkAU79E5qYLgNdamggb7ZJWtxzyH2c/6nsz Pj79WltNdNExdqKc2nXheZC1VXCn2zMKhLG2T5spHuKHup+wdG3rNMV3REzLKddRbFXm N7rrya5GtPVVG0fcx+4bN0nqjOUKZz7j+ykMDjntjOK3gyQ1DQKUD7CRkVjbVRuoucj1 m4tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aLu+Gplo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b25si668176edw.586.2020.10.02.02.58.50; Fri, 02 Oct 2020 02:59:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aLu+Gplo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387746AbgJBJ45 (ORCPT + 99 others); Fri, 2 Oct 2020 05:56:57 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:37836 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbgJBJ44 (ORCPT ); Fri, 2 Oct 2020 05:56:56 -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 0929uq3a047437; Fri, 2 Oct 2020 04:56:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601632612; bh=8U7u+CSKT6oRTEF1mtbv60uAh2qzO1YSp7paUVcrpuw=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=aLu+Gplof0HMoNkdwnwFp7DffTr2xO0fCJTBWj/y+40a3tm0PLv+84EOq/Axm8yBX GJlcX/sV+KeYbf26s/y/lHcNf+Bt02reMjUETzstalcYG+rVu1t/edIa+iNpWc4hmv aSsbvv68/WYfHiFbdsrjObVUdxJUjP0BBgp0zdKM= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0929uqs8114020 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Oct 2020 04:56:52 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) 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.1979.3; Fri, 2 Oct 2020 04:56:51 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 2 Oct 2020 04:56:51 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0929un2c088325; Fri, 2 Oct 2020 04:56:49 -0500 Subject: Re: [PATCH net-next 0/8] net: ethernet: ti: am65-cpsw: add multi port support in mac-only mode To: Jakub Kicinski CC: "David S. Miller" , , Vignesh Raghavendra , Sekhar Nori , , , Murali Karicheri References: <20201001105258.2139-1-grygorii.strashko@ti.com> <20201001160847.3b5d91f1@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Grygorii Strashko Message-ID: Date: Fri, 2 Oct 2020 12:56:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201001160847.3b5d91f1@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/10/2020 02:08, Jakub Kicinski wrote: > On Thu, 1 Oct 2020 13:52:50 +0300 Grygorii Strashko wrote: >> This series adds multi-port support in mac-only mode (multi MAC mode) to TI >> AM65x CPSW driver in preparation for enabling support for multi-port devices, >> like Main CPSW0 on K3 J721E SoC or future CPSW3g on K3 AM64x SoC. >> >> The multi MAC mode is implemented by configuring every enabled port in "mac-only" >> mode (all ingress packets are sent only to the Host port and egress packets >> directed to target Ext. Port) and creating separate net_device for >> every enabled Ext. port. > > Do I get it right that you select the mode based on platform? Can the > other mode still be supported on these platforms? > > Is this a transition to normal DSA mode where ports always have netdevs? > The idea here is to start in multi mac mode by default, as we still have pretty high demand for this. Then, and we are working on it, the switchdev mode is going to be introduces (not DSA). The switch between modes will happen by using devlink option - the approach is similar to what was used for Sitara CPSW cpsw_new.c driver [1]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ethernet/ti/cpsw_new.c -- Best regards, grygorii