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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 721E9C4332F for ; Sat, 5 Nov 2022 03:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WMIuxlDQOMHrwrp6CSsa8CrM6RfOtfcvS8y9MhmBy3s=; b=iL5vSiI+osIP/k xnl3Ikq7MOtqHtQygHXEeMauRKRQ8OfT4opkaePn7w9ThORLcBFE+WOyOIivU62ajUdgQQBrNo+Kb jaV2VmzVUqBLg8C5zwchpVqh/DIKKDX2bR5eeHLR8DXxGdwLicmWczyTIxv91qKXxBpDfYFQHPcEZ bs1b2WHuXXl21e3GGAEC3Ll0MLy58Q6P/165DFWGRYOMTXLUptAVFXqMfulRsr1BIWQxHFSy4q6DM NlwzrmSh+dR4wGK0uJSA5OJngJx/nf8TcnACk8Fwh4ZpmS7aQnhFDvgogWzKLn77LJ2qOdS/T6F6s N1Vwoa9+vvs8MkM5paVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1or9V3-005mGK-Hh; Sat, 05 Nov 2022 03:05:37 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1or9V0-005mFA-Cq for linux-arm-kernel@lists.infradead.org; Sat, 05 Nov 2022 03:05:35 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EBF5A623AC; Sat, 5 Nov 2022 03:05:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D3E8C433C1; Sat, 5 Nov 2022 03:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667617532; bh=Umqv5TifrdYvGAgkEbrHB+9F3i1kl8URY4lxJt5JgnU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RUSpKDoQsUpxmyw84iR9hk2MKXk7x5jXy6Xa0rtAwELAhA9ChEw0eDcSsMpAt0Rsg OfQamM2RJW8LILzbI9mqVMpZfYbgHI+gYDBUp7ojOWiwyb87JXWxklp+4LVxXiUEoF 8+PW9kdzcEkptfjRWbC2D/h1LZBU25kJqE47QqUEUdk5sGBeXBJFToyIKl1LCiKsYx R3M47E8D97phyiZzWBgG4LdHQLVwepDiPGLEzSS4zI7Wyx3Rhc6GRBRvAbbZR5vBI5 P/pAoGO3UqsmiqNYgpye5ZUAlphbI0esHmfAyRGBeqd+DDsryrAhfW2qB8jw1J9K7n oAtvm8YGzN60g== Date: Fri, 4 Nov 2022 20:05:30 -0700 From: Jakub Kicinski To: Maxime Chevallier Cc: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko , Andy Gross , Bjorn Andersson , Konrad Dybcio Subject: Re: [PATCH net-next v8 3/5] net: dsa: add out-of-band tagging protocol Message-ID: <20221104200530.3bbe18c6@kernel.org> In-Reply-To: <20221104174151.439008-4-maxime.chevallier@bootlin.com> References: <20221104174151.439008-1-maxime.chevallier@bootlin.com> <20221104174151.439008-4-maxime.chevallier@bootlin.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_200534_578665_E27039DD X-CRM114-Status: GOOD ( 17.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 4 Nov 2022 18:41:49 +0100 Maxime Chevallier wrote: > This tagging protocol is designed for the situation where the link > between the MAC and the Switch is designed such that the Destination > Port, which is usually embedded in some part of the Ethernet Header, is > sent out-of-band, and isn't present at all in the Ethernet frame. > > This can happen when the MAC and Switch are tightly integrated on an > SoC, as is the case with the Qualcomm IPQ4019 for example, where the DSA > tag is inserted directly into the DMA descriptors. In that case, > the MAC driver is responsible for sending the tag to the switch using > the out-of-band medium. To do so, the MAC driver needs to have the > information of the destination port for that skb. > > Add a new tagging protocol based on SKB extensions to convey the > information about the destination port to the MAC driver This is what METADATA_HW_PORT_MUX is for, you shouldn't have to allocate a piece of memory for every single packet. Also the series doesn't build. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel