From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFAA8C2D0E4 for ; Fri, 27 Nov 2020 09:18:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38A9A20809 for ; Fri, 27 Nov 2020 09:18:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0iJ2NgXM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38A9A20809 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=l6M4BGDUG3Nn27t7zOU79b2cfo6TEMpMyqLTRHuGMB4=; b=0iJ2NgXMX2yb/yQ4tHuKWoS9+ jipzXwONqyxVlbgMNXVOWIr2sHqH1bt2fYFb9IcXVoJBTyEBu2EKaGE5khzicY4vypeBffIgDMyO4 Hfgo9n12V7q9wK/1SIqDo23iHvU75CRqzUCfg2fWFg7rj7J36ZLwYTVSTzSgjhSJVDH1AmTizLlZ/ F2jD4Uh2pgfBk8yUIVHdl40F74haFwnMUNA3FKwdFSjiOT2Nv3TsGZIrHrjuoclrPRWxhr1PGwzNB VCJJdrZXT855RzUr7P0m1AoNJ5XJY0sDe3GOM3y1I8GyRiaSJZDa0BSdwiDzUkRtPZY65+IG5IZqo 0Kt7xCanA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kiZsF-0007Z4-1q; Fri, 27 Nov 2020 09:17:03 +0000 Received: from mail-out.m-online.net ([212.18.0.9]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kiZs8-0007RV-EY for linux-arm-kernel@lists.infradead.org; Fri, 27 Nov 2020 09:16:57 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Cj8C92TpMz1qtdL; Fri, 27 Nov 2020 10:16:52 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Cj8C84Tq9z1sy8T; Fri, 27 Nov 2020 10:16:52 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Hlz0i54BBvVV; Fri, 27 Nov 2020 10:16:50 +0100 (CET) X-Auth-Info: dpfPVe1hPmNWlW+Q/vLI2GSLKIjsjgRdBsMJ0e9s11A= Received: from jawa (89-64-5-98.dynamic.chello.pl [89.64.5.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 27 Nov 2020 10:16:50 +0100 (CET) Date: Fri, 27 Nov 2020 10:16:15 +0100 From: Lukasz Majewski To: Andrew Lunn Subject: Re: [RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC Message-ID: <20201127101615.7349b35f@jawa> In-Reply-To: <20201127005502.GQ2075216@lunn.ch> References: <20201125232459.378-1-lukma@denx.de> <20201126123027.ocsykutucnhpmqbt@skbuf> <20201127003549.3753d64a@jawa> <20201127005502.GQ2075216@lunn.ch> Organization: denx.de X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201127_041656_763647_A0FDE88C X-CRM114-Status: GOOD ( 21.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , Florian Fainelli , Fugang Duan , Shawn Guo , stefan.agner@toradex.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, krzk@kernel.org, Vivien Didelot , NXP Linux Team , Jakub Kicinski , Vladimir Oltean , Fabio Estevam , "David S . Miller" , linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============6124994934028340199==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6124994934028340199== Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/BICa7OL/1Ul3q5t3kEEq_yA"; protocol="application/pgp-signature" --Sig_/BICa7OL/1Ul3q5t3kEEq_yA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Andrew, > > (A side question - DSA uses switchdev, so when one shall use > > switchdev standalone?) =20 >=20 > DSA gives you a framework for an Ethernet switch connected to a host > via Ethernet for the data plane. Generally, that Ethernet link to the > switch is a MAC to MAC connection. It can be PHY to PHY. But those are > just details. The important thing is you use an Ethernet driver on the > host. >=20 > If you look at pure switchdev devices, they generally DMA frames > directly into the switch. There is either one DMA queue per switch > port, or there is a way to multiplex frames over one DMA queue, > generally by additional fields in the buffer descriptor. >=20 > For this device, at the moment, it is hard to say which is the best > fit. A lot will depend on how the FEC driver works, if you can reuse > it, while still having the degree of control you need over the DMA > channel. If you can reuse the FEC driver, then a DSA driver might > work. If the coupling it too loose, and you have to take control of > the DMA, then a pure switchdev driver seems more appropriate. >=20 > Andrew >=20 Thanks for the detailed explanation. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/BICa7OL/1Ul3q5t3kEEq_yA Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAl/Aw98ACgkQAR8vZIA0 zr1EVAf+PndkSAVobok+I5hCS6pcZwgjc9jS944Kx4NLmKOd3Ckv/bebz9TUDuou P6veKuA53l3aUKaOjdCNntFPdVA1zntozoogSGA63O+LWjnxkqrkLqXUqzAjULmT Oo3QX7LctuMmrFPOWm7LVvETNx4BgSkuC8pBtjF1zUbp6H7O6uTFdhY7dBn1xmS6 onIfzHulhLPY6s+VDjIVvFJRtpNXfDBXBufcxDMTZ6sH/qs3CDk+9NWPb/f1FHRd P4+MSy7NV8FXFlZOqR2SeMPWzylGFVfJAiOcrl+3dl0/0IHP9gVkTOPt7bE3krda q7kXFFbpJRkLDPPwzF7AfBHvw2yxzw== =vIQY -----END PGP SIGNATURE----- --Sig_/BICa7OL/1Ul3q5t3kEEq_yA-- --===============6124994934028340199== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6124994934028340199==--