Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2487881rwb; Mon, 7 Nov 2022 14:01:54 -0800 (PST) X-Google-Smtp-Source: AMsMyM5QccLDPVYLTcaf1U4PEh2R297F8GF/4bf2W9LeODAENarC5n65R0yeoKxA3XPWTsKvg21f X-Received: by 2002:a17:902:c702:b0:186:e151:6b27 with SMTP id p2-20020a170902c70200b00186e1516b27mr53845892plp.69.1667858514507; Mon, 07 Nov 2022 14:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667858514; cv=none; d=google.com; s=arc-20160816; b=taPy+LY7vB4RUJmnkQG8ckghcV9SWxU4DwO4QoTmCNHIfBB1pse+mG6QzMpbUKwgnz wvmPpdrCGr9aSf8ilgsWnypE6Dm0mwaygFHEthIudImcrtTfXKO3UOgsE4zinf18bnjV l9VaZ9aFydvy3JQX5qFCwmkhhEChAzkoQ1Eu9KxUHakDfWGjsD7EHAFfycWbQj47UY1x FC0AbzRZeKS26DQJ90W4mSJVY4nf/OxKR2KKqBumXs5Jugo83rlWKt3ipvz9JsNlnHEE wdXWLf0zUaEexjEBrqevqfj0DjEdFgzNJEj2z/6J37xyIhNpKbj73VJdHVprYmhf8sHb 2vNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ddfhd8XwpJplivFsJcCTYCRWaroeD5Sk1QzcIWWbS0c=; b=AwPaEDyGnj0qlxNN4sX2gidAMirRF9XBKJ9sV8/keCSepbR18nuBGpHqlcm29J2Ka8 mQN47jNaalvbluV2WLlQ/ga/77z1bkBaVAPJcA5PC8lGWb9hGdI49Y+qUXv0WvV0c+UY 7xcjk+8sA3beoca8KHe4azZ+skKy0rh4Jc8bITHvweVDZhelRpkAZ2aDbpkijLD2+Ol5 2aljV3ZxV5sXqHTSMRsNF2zpk5/zczeT1jscbmXIqjClTas1QUKRlb7CJ09iorHTbHPu /VPrTgofYq1dTQksOe0Jn0Yrngpg5Yq5SU/XkystgF+c0dkBOkQwVD8QiHGWKL3hyNej KtMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Vy+4wxJA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v69-20020a638948000000b00434d8692854si11141532pgd.541.2022.11.07.14.01.42; Mon, 07 Nov 2022 14:01:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Vy+4wxJA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233309AbiKGVWr (ORCPT + 91 others); Mon, 7 Nov 2022 16:22:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233299AbiKGVWT (ORCPT ); Mon, 7 Nov 2022 16:22:19 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D1AD2F7; Mon, 7 Nov 2022 13:22:17 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id v17so19639944edc.8; Mon, 07 Nov 2022 13:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ddfhd8XwpJplivFsJcCTYCRWaroeD5Sk1QzcIWWbS0c=; b=Vy+4wxJA858HcqoCK36dhDhINBXnhv2nNfAeudikvcqnMjt4BeCjjPNOutf2MHEISB rKnZa/bY+ndMJsOY+D9hqnnFJj7SVekwqfY7YUzgvyZnC2WFkL749Fqcvw2Ua7yddi58 J6VIqP+D9q0qWbMsDy6/Szyr+JjA8lByTCbKEbR/SbeWxHVT1ATRe//GcFKGfKLGNwCk WtS5mG9Y+Uq4IA2KxpKxFDZNNNaB2m9+1qDhGs3TuBKJlW75KGc5Zi4EAuBUoxdpzFMy qW7IInIrO9+7KZCObQPN7q0BRVaj6cf6HDk3e2Pb1jF5aW4VwTPxS6Xu8Dybb2d4v7CN LIKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ddfhd8XwpJplivFsJcCTYCRWaroeD5Sk1QzcIWWbS0c=; b=CeVBJp/efL1y0RCOtdHIyU49T5hxl226DwWayhPIicP5rn26q94CxFGMHXvRNgUoTa Jipq4cV03lBe1LtvueegYI0fNL9G/j6tvMUkemSVXzs4arhcgJZEG7z6LtJ1WnuOj+Oc OEufQ2GbQ57PEQFZ1ITA6hhJvq4SbE4WiewuVrajP1Kmhjg1fuFeqKrAn57/L3zBb8ne t3Zg8avn5PUuOTxpbyuQ8jpSc4u8LWTHn4e1cz7NMKtdmojN9SOHquDWCLt0lAZbz1xw uMchYHgt2LTIiZ2p8vQNu/4bTRlgEl8P1T0UwOf535d3Kl/M/bQcQKxQ1tVlb1CnZLvS LUUA== X-Gm-Message-State: ACrzQf2i2SoslPIhhKpW/Ms6KaZOzLqnWmw9ASJEX0LniJiyC9GxdRKR jm0OH4X8IcCOaI2cISsAgII= X-Received: by 2002:aa7:d5c1:0:b0:459:2515:b27b with SMTP id d1-20020aa7d5c1000000b004592515b27bmr843867eds.338.1667856135756; Mon, 07 Nov 2022 13:22:15 -0800 (PST) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id m19-20020a056402051300b00459cd13fd34sm4615155edv.85.2022.11.07.13.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 13:22:15 -0800 (PST) Date: Mon, 7 Nov 2022 23:22:09 +0200 From: Vladimir Oltean To: Felix Fietkau Cc: netdev@vger.kernel.org, Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/14] net: dsa: tag_mtk: assign per-port queues Message-ID: <20221107212209.4pmoctkze4m2ggbv@skbuf> References: <20221107185452.90711-1-nbd@nbd.name> <20221107185452.90711-5-nbd@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221107185452.90711-5-nbd@nbd.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2022 at 07:54:43PM +0100, Felix Fietkau wrote: > Keeps traffic sent to the switch within link speed limits > > Signed-off-by: Felix Fietkau > --- > net/dsa/tag_mtk.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/net/dsa/tag_mtk.c b/net/dsa/tag_mtk.c > index 415d8ece242a..445d6113227f 100644 > --- a/net/dsa/tag_mtk.c > +++ b/net/dsa/tag_mtk.c > @@ -25,6 +25,9 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb, > u8 xmit_tpid; > u8 *mtk_tag; > > + /* Reserve the first three queues for packets not passed through DSA */ > + skb_set_queue_mapping(skb, 3 + dp->index); > + Should DSA have to care about this detail, or could you rework your mtk_select_queue() procedure to adjust the queue mapping as needed? > /* Build the special tag after the MAC Source Address. If VLAN header > * is present, it's required that VLAN header and special tag is > * being combined. Only in this way we can allow the switch can parse > -- > 2.38.1 >