Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp885056rwb; Wed, 9 Nov 2022 09:47:30 -0800 (PST) X-Google-Smtp-Source: AMsMyM6KVZZXq9Bdmfm4uh29Z4oJrxF8mGf87QM66fg6BlrX/sfwfuny55RIdDBRdLuaSxq+pNC0 X-Received: by 2002:a17:907:6288:b0:78d:ab30:c374 with SMTP id nd8-20020a170907628800b0078dab30c374mr57885686ejc.266.1668016050204; Wed, 09 Nov 2022 09:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668016050; cv=none; d=google.com; s=arc-20160816; b=OQcYN2XVs1HXHhk/fnBKWv0r8gPzNNJJlPEzpUKEXPYjSEI50nkYML0RTwBrT93aQD xlMaTzP9zBaGTbaKHkqRiETV9rxoK3Bk8ZiKNiwuurP+aOf27XAwZ8zCJCd2mHzkCRIx jZqI8frsmqyBwae/e8bIptCTiamEaVJqihHIWXbGf6LrT0mPQktQnT3gxLkDG7GZmIQS QvJXt/rdVnQ0ia5m8YD5Qqt4AvvayeoljvrwbrBnY8+Pj6Y1Rd3o2M4WVbZP3MbHbVDa FCJxcCe5P+FynaFy/YkDeqq9yna5Djx52LiZgb9r7fj193XDtz9p0sf908aWJy9rp+yZ pafw== 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=apbaBq6+1dcNun02SZRT4XTrfguODpaHAMZLlx3n/yh/E9H8iwamfWgevf6qunfj2U Ns2ziPCkVNDCKggJWEB3w1+dBsFxzC/+IGG9evg+MdPxgtSQsHeZSPl/coXII6kboks9 LVrd/ZJE7wqb5ahWGX6QO2vWNDmXtjxn2NEsv48Y8xqUA2F7UF6b6rMPLCVoijXaxOF5 W5vw7COW8YXw672BC1IHmWhi8c/WRoPNm1wD6G0jS2UF7Y4OMSQolumXGMfjwguZUIaq OZUrvHQMms5//U2AMOjoLBJa4gGWezKUudlsqs0On9iR5AD7Z5Xe7HxTD5vTWKFkgkLE dJIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=VOzMv9Zb; 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 y22-20020a056402359600b0045c13366de4si17612058edc.572.2022.11.09.09.47.07; Wed, 09 Nov 2022 09:47:30 -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=VOzMv9Zb; 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 S231293AbiKIQfG (ORCPT + 92 others); Wed, 9 Nov 2022 11:35:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbiKIQew (ORCPT ); Wed, 9 Nov 2022 11:34:52 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 384821A05E; Wed, 9 Nov 2022 08:34:52 -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=VOzMv9ZbI1H3uX1yYfBGtAh3xN xAtjtcjwrDAzIMopqcbRnIq5FDn4TYwmuVdg9rfGaGWC16JkG2SU8uPgSqz+sCZST6PEzBX2dFwNO BUnvv4DBPKDN99s5U3EYjgYcCTFIy8eSa2Vjmy4XC8XIU+dObGIyvYT67QXfYcESuROk=; Received: from p200300daa72ee100054f3c61b16ef6e7.dip0.t-ipconnect.de ([2003:da:a72e:e100:54f:3c61:b16e:f6e7] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1oso26-000l4N-Fp; Wed, 09 Nov 2022 17:34:34 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , 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 v2 05/12] net: dsa: tag_mtk: assign per-port queues Date: Wed, 9 Nov 2022 17:34:19 +0100 Message-Id: <20221109163426.76164-6-nbd@nbd.name> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221109163426.76164-1-nbd@nbd.name> References: <20221109163426.76164-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