Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1669619pxk; Fri, 2 Oct 2020 16:11:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDnoQP/3PRqH/ciCrd9CjyaDfGRO/6PHN6n5KQsfjMAy6SfJdh2StdUbz4S1bp5SSg/IGG X-Received: by 2002:a17:906:4c89:: with SMTP id q9mr4585110eju.290.1601680280438; Fri, 02 Oct 2020 16:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601680280; cv=none; d=google.com; s=arc-20160816; b=A/UOWFeXc7SFWXWiRJCq5kkE8n/la4Pu6P8mOyhhFfawEHN41lGbSz5R784gzJa0bY ey+MBW99XkcoVqRAciO/T3FZEyjweWhqNIWwmoXyDDkahjOch939lESnBROIX/DRNhJb IbdPn3R/Qe4Op9Zuz8thkqQH4RIaFdz6j8uz1gnnBUu8kIByfD3w680N5A3sGIy9NMOc o2hrXdGKAgKpF+yfzQGu2dA5Y6pZuiGSo1q74j1DyI3l5KdXD7cmZLiQzTKQ+7DvWwLN fIm9b4Ms0DaxQKbWJzxvTR2eSxq17Luv/tvE46SyCCgWNERxouKbW5oIm8oZzFQMc7qh 0S2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=almw7nmAye1TqPD3PfcTefiq1eeU91Tz2s2eKH99qb8=; b=B6QtRQVMW8IpJggX/nKnlhIekTn9SEOd9fFNuzOS2TeW5W7WNq5DKGZXv2Ge3IGxQ7 ZLLaIAwnkCXQXfzW6wg+OsbBlcrBDro1nh4IQASd7twxAwzGcfE4dQJtOKa7hpS+gGqY 8gew3/JFQ91P6nshB2hiGEjpxKle7MyKWNLGg7JBXOFh55Wu9JY5lUtalLKn3BM19JuL 4hDso7U+GdWsrYKQzT5yRg3GNvLGpmxhegwlSH3UQwTMKskv+ZWfAVD1HyVWZXPJrbC3 EfMTK2gqB69JtHElV+rR4Wxf4k9cyiA7K8WYPejxX8wfl+sHtApRIuJTvunI57Se/9Cz m8hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WqCwHA0O; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si1961563edr.363.2020.10.02.16.10.58; Fri, 02 Oct 2020 16:11:20 -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=@kernel.org header.s=default header.b=WqCwHA0O; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725763AbgJBXHz (ORCPT + 99 others); Fri, 2 Oct 2020 19:07:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:56032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgJBXHz (ORCPT ); Fri, 2 Oct 2020 19:07:55 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4F9702074B; Fri, 2 Oct 2020 23:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601680074; bh=+IraDZ1X6TqbHjjccaG67Qpzn5eg7WC66k5owY+sfPk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WqCwHA0OU8tECmLdNEjZTX+R5LPoKpeJuRad2dRF2Up111rDiFL2/MDMTORObXLQS t4O4alGBsrw5rxIzkpjYhWN1oazLnwWNayGR75O/sP6TGByYWF0DjoHZj2hdzp9/fJ hDaZOiaA5evREKfUVGK3h4ZwQbqodSrYtbBBlgJk= Date: Fri, 2 Oct 2020 16:07:52 -0700 From: Jakub Kicinski To: Grygorii Strashko Cc: "David S. Miller" , , Vignesh Raghavendra , Sekhar Nori , , , Murali Karicheri Subject: Re: [PATCH net-next 0/8] net: ethernet: ti: am65-cpsw: add multi port support in mac-only mode Message-ID: <20201002160752.1166cffe@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201002160421.59363229@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> References: <20201001105258.2139-1-grygorii.strashko@ti.com> <20201001160847.3b5d91f1@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20201002160421.59363229@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Oct 2020 16:04:21 -0700 Jakub Kicinski wrote: > On Fri, 2 Oct 2020 12:56:43 +0300 Grygorii Strashko wrote: > > 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]. > > What's unclear from the patches is whether the default configuration > for already supported platforms will change? > > All the patches sound like they are "in preparation for support of K3 > J721E" etc. So this is just code restructuring with no user-visible > changes? Another way of putting the question perhaps would be - is num_ports always 1 for existing platforms?