Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp322459pxu; Thu, 3 Dec 2020 00:44:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJz44irdcEeD2nnu2yipucxRyZTLdgd8R7DQcqpz4G9zYaoAA2ylIqQcBBstZ9Vyb3UxuZp2 X-Received: by 2002:a17:907:3e85:: with SMTP id hs5mr1598409ejc.548.1606985053951; Thu, 03 Dec 2020 00:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606985053; cv=none; d=google.com; s=arc-20160816; b=EIQRPnr9VJrXPUsCy3vtpf6+/qoZFgvw5p3EBowFnL32dC8c7D/1KwpIZtme607G5I odF8aMt8JWGWfBYiOrubP1P9SPtcfr9vfj1PV25OhXFRWHx7GmsZ3SFmQZWeirNbSbud u5ZrpveJMNAdvUrw/h+OcT3dAvvZI2HGE4LbOJ0WJAm8RGEfoC/qct8QwQrcIOQVWBvT wq7HpbGhb2HoZpT6CUieyvXHkVaNiqBo+gxMH2fDnO3AdO4JC62AhoOEWsTe7+BifMpv 99XhtGHW759JRs7RwvqiM4ky00bgr1RnLeVir2iouB37VV6ThoBRPew5elQSBKTQP/o+ yBrQ== 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=pz6uUoqgOBRCAt9fEefTV7fWl8JCGohZTi6KZaMZyxo=; b=ywaVHqJe0wBg/+sguNQB3ryndPNHlX0wpxHKigdpiTUMD18aSsK2jBCTMFLeL5jsfI s6w+6IKystOjaBoALWpRBTSr7CDFQM9npewdxwpHnDvArKF5powM26qRLUBQ3JdDtAeg JIeELoiq/ohw8H8c7XkaZhZRC4KwTf0K6ksslZSdA6NnbCo68GShrMEe2DTECp8qftp2 7L0rk2b249GPDb2CSC4gIAApgVDsG2Q0vxN0O1kdB9FMw3TAn97bCIckC+JSpNb/kGN2 HUvN1BlNB+wkNef2k0ojqk/yIAKvzMsvFPf2C0pGE/k2hL7tPaxA62UgZSmy85t+vqMx m2ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ImxfHlwn; 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 t11si552256edt.200.2020.12.03.00.43.51; Thu, 03 Dec 2020 00:44:13 -0800 (PST) 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=ImxfHlwn; 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 S2388332AbgLCIl6 (ORCPT + 99 others); Thu, 3 Dec 2020 03:41:58 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:42764 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388270AbgLCIlz (ORCPT ); Thu, 3 Dec 2020 03:41:55 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0B38eq0B114050; Thu, 3 Dec 2020 02:40:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1606984852; bh=pz6uUoqgOBRCAt9fEefTV7fWl8JCGohZTi6KZaMZyxo=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ImxfHlwn86cBcLHD9fwuH+nNsLweSCh+LdiadVYVK9Ix4l9HXlhj1GtDRkuBQcFF1 OQmlJRCILUwW2iwctM6MCyJgdNmylSGRyVdLvP6h8agbO/Uwrms0KdD3iwW3dq3wms 1ukKtJ1PpBYjA1dcGQvZ6mVQsZG+vhJMRadkS1hA= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0B38eqsQ059694 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Dec 2020 02:40:52 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) 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.1979.3; Thu, 3 Dec 2020 02:40:52 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE108.ent.ti.com (10.64.6.29) 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; Thu, 3 Dec 2020 02:40:52 -0600 Received: from [10.250.233.179] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0B38emBI063771; Thu, 3 Dec 2020 02:40:49 -0600 Subject: Re: [PATCH 1/4] net: ti: am65-cpsw-nuss: Add devlink support To: Andrew Lunn CC: "David S . Miller" , Jakub Kicinski , Grygorii Strashko , Jonathan Corbet , Jiri Pirko , , , , Linux ARM Mailing List References: <20201130082046.16292-1-vigneshr@ti.com> <20201130082046.16292-2-vigneshr@ti.com> <20201130155044.GE2073444@lunn.ch> From: Vignesh Raghavendra Message-ID: Date: Thu, 3 Dec 2020 14:10:48 +0530 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: <20201130155044.GE2073444@lunn.ch> Content-Type: text/plain; charset="utf-8" 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 Hi Andrew, On 11/30/20 9:20 PM, Andrew Lunn wrote: > On Mon, Nov 30, 2020 at 01:50:43PM +0530, Vignesh Raghavendra wrote: >> AM65 NUSS ethernet switch on K3 devices can be configured to work either >> in independent mac mode where each port acts as independent network >> interface (multi mac) or switch mode. >> >> Add devlink hooks to provide a way to switch b/w these modes. > > Hi Vignesh > > What is not clear is why you need this? Ports are independent anyway > until you add them to a bridge when using switchdev. > Default use case is to support multiple independent ports with no switching. Users can either use software bridge with multi-mac configuration or HW bridge for switch functionality. devlink hook enables users to select Hw supported switch functionality. We don't want to enable HW based switch support unless explicitly asked by user. This also matches previous generation of devices (DRA7xx and AM57xx) supported under drivers/net/ethernet/ti/cpsw_new.c In general, devlink will also be used to configure few more parameters (in addition to switch mode) such as host port in ALE_BYPASS mode (to allow all packets to be routed to host) etc. Regards Vignesh