Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp327954rwb; Wed, 16 Nov 2022 00:55:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7G14ePcMfhFpXmcRF1Vs67R1VLU2gk+xML1hzf0P3Jyhmh4Npet6+Icxda8+0B/A0Pcjqz X-Received: by 2002:a17:90b:3608:b0:213:3521:f83a with SMTP id ml8-20020a17090b360800b002133521f83amr2665022pjb.84.1668588925423; Wed, 16 Nov 2022 00:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668588925; cv=none; d=google.com; s=arc-20160816; b=JJzAcnWJ9pDMN6Qtoqp0P9S/nESpO30q3f3TbM4tJ6658reotCC73GVoB8irWpUCEb NkNIjIuA2hOngtSgXb0Me2t3ij/Wh0kW6rQsLEFjBtBTLXPKlTIq84aHTrz0xZhOdIO7 KrKICBRx6r0qEzUp09asgt5TBO5q9rpE7Dmtkc+nUPEgOAeN6av/TFCc41a6csfIFqDU 3EyNzvXroHPuF30hedqO8bCaEVfc0e/QjX/QsJ4TBtvTswc3STiX80P+JFl60wJpTgMK gniKPOfMEXFy/CMyt989NjpPMOxAvGTxfr426Ka8f2nlV5I007LmSQayRIvz0ldZZ+vQ ID+Q== 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:date:subject:cc:to:from :dkim-signature; bh=CNx2EvBgaSK9aSDl5n7dtYqaf36QTyssctQ2Sm28n8U=; b=cDRBSAfK/nzlf8/eHJ8HGPOBdUb6hEuV04KP6z26NxZRTRiNK/3vG1E3cuDo/b4/zF iwMLNJGknfLnnWcqIc4Cxp92jN1T0UY3jNuXc+Qi7Zo8mZDWJtn8ARGrZrQ8IYUARpC2 Q3o9iP/6vUoaDYmA/WzapL0F5n8hvwzeYNHgZ6xKRruD2xkFywHe7DlTFBXatpafXx6P zbS9hM6ptQrCF8uJkjAb37SgHUmiYuzFJy/Q1FwS9RuHkPrPyiBcYfr0OVOcEHFeB/yQ Bxe/V6DguFDFLuzP5WyIK3s/yyEZ1zGNAGRaFnXzKb1pNb3XuP5P1RmDIrV8zN5qo6fU XcmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=ZvCTo5bQ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170902c3c400b00186c3afbd25si13266816plj.349.2022.11.16.00.55.14; Wed, 16 Nov 2022 00:55:25 -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=fail header.i=@nbd.name header.s=20160729 header.b=ZvCTo5bQ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232964AbiKPIJD (ORCPT + 90 others); Wed, 16 Nov 2022 03:09:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238541AbiKPIIM (ORCPT ); Wed, 16 Nov 2022 03:08:12 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B04012601; Wed, 16 Nov 2022 00:07:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CNx2EvBgaSK9aSDl5n7dtYqaf36QTyssctQ2Sm28n8U=; b=ZvCTo5bQnviRC3drDP+mYi53W4 7OIeHEzA2qnZFksv8PlwXvuLGT5ngY6IuQcT2k+AfJqp1o1FWWjKjqEhV+565WRvEHpC6XNQa25zl wnSgaPe1yhwOF1ayNGyShB+FlRhEt7l6XRNNWXx/OIbiwJrnaSC23e2YwD5ZrdoeXFXc=; Received: from p200300daa72ee10015f07c5633889601.dip0.t-ipconnect.de ([2003:da:a72e:e100:15f0:7c56:3388:9601] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1ovDSM-002Xoe-HJ; Wed, 16 Nov 2022 09:07:38 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 5/6] net: dsa: tag_mtk: assign per-port queues Date: Wed, 16 Nov 2022 09:07:33 +0100 Message-Id: <20221116080734.44013-6-nbd@nbd.name> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116080734.44013-1-nbd@nbd.name> References: <20221116080734.44013-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 Keeps traffic sent to the switch within link speed limits Signed-off-by: Felix Fietkau --- net/dsa/tag_mtk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/dsa/tag_mtk.c b/net/dsa/tag_mtk.c index 415d8ece242a..5953356b829d 100644 --- a/net/dsa/tag_mtk.c +++ b/net/dsa/tag_mtk.c @@ -25,6 +25,8 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb, u8 xmit_tpid; u8 *mtk_tag; + skb_set_queue_mapping(skb, dp->index); + /* 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