Article View: linux.kernel.netdev
Article #6380[PATCH RFC net 6/6] net: macb: keep best-effort traffic on TX queue 0
From: Steffen Dirkwinkel
Date: Thu, 22 Oct 2026 09:38
Date: Thu, 22 Oct 2026 09:38
52 lines
11456 bytes
11456 bytes
From: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Add an ndo_select_queue() that puts every frame on queue 0 unless
traffic classes are configured (taprio, or software mqprio).
The GEM serves its transmit queues in strict priority order, the
highest queue first, while the stack hashes flows over all of them. On
a saturated link the flows on the lower queues starve until the netdev
watchdog fires on them, and the timeout path cannot help as nothing is
wrong with the queue.
XPS settings, the socket queue cache and the queue choice of
PACKET_QDISC_BYPASS sockets no longer take effect on multi-queue GEMs
without traffic classes; queues 1 and up stay reachable through tc.
Fixes: 02c958dd3446 ("net/macb: add TX multiqueue support for gem")
Assisted-by: LLM
Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
---
drivers/net/ethernet/cadence/macb_main.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 3dfc7ffdd598..eae43490c5f7 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -4596,10 +4596,21 @@ static void macb_tx_timeout(struct net_device *netdev, unsigned int q)
macb_tx_restart(&bp->queues[q]);
}
+/* GEM serves TX queues in strict priority order, the highest queue first */
+static u16 macb_select_queue(struct net_device *netdev, struct sk_buff *skb,
+ struct net_device *sb_dev)
+{
+ if (netdev_get_num_tc(netdev))
+ return netdev_pick_tx(netdev, skb, sb_dev);
+
+ return 0;
+}
+
static const struct net_device_ops macb_netdev_ops = {
.ndo_open = macb_open,
.ndo_stop = macb_close,
.ndo_start_xmit = macb_start_xmit,
+ .ndo_select_queue = macb_select_queue,
.ndo_set_rx_mode = macb_set_rx_mode,
.ndo_get_stats64 = macb_get_stats,
.ndo_eth_ioctl = macb_ioctl,
--
2.56.0
Technical Details
Message-ID:
<20261022-std-macb-v14-send-v1-6-9187bc545bf6@beckhoff.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350488-linux-kernel-netdev=dewy.ruReferences:
<20261022-std-macb-v14-send-v1-0-9187bc545bf6@beckhoff.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350488-linux-kernel-netdev=dewy.ru From: lists@steffen.cc (Steffen Dirkwinkel) Newsgroups: linux.kernel.netdev Subject: [PATCH RFC net 6/6] net: macb: keep best-effort traffic on TX queue 0 Date: Thu, 22 Oct 2026 11:38:51 +0200 Organization: Usenet Network Message-ID: <20261022-std-macb-v14-send-v1-6-9187bc545bf6@beckhoff.com> References: <20261022-std-macb-v14-send-v1-0-9187bc545bf6@beckhoff.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="179268"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:mow1WHmC45uup4NStnwbhl89q8c= sha256:9s3JerGpcrPVRULGU1FrqFavX0zBqDYJapyoYO8NEU8= sha1:pW8o/6BviAu9A3pfQQP8KYFVXr4= sha256:uv7NVbsVoEJePFzzxartjEsZFQmMzSatIVqpS9Pd7s0= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 6633511121C; Thu, 22 Oct 2026 12:43:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.149 X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=steffen.cc X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l3MDnNnImn74; Thu, 22 Oct 2026 12:43:42 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-350488-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=steffen.cc X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 667591111DC; Thu, 22 Oct 2026 12:43:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 59FD460C538; Thu, 22 Oct 2026 09:40:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792661958; b=MNkdlmxKJX3JFLbvpEAcew2z0jpvxhAJDHNp/kULrdQPQrsu0cPQL4FRSFhyo+EhMzFf FfrU+XquPMQmCLDvQUmino4ZKksuYD5nvW2GlwAyY17f0onyn0wPCVmX01awFfkSedLzU OHNnlt3AyYuxEYod7UFwMDvMccpFLMhcpCy/TMmiNfMtwvdoi1mDl2LnTXhi4km2E9rWe PopWE2n3K57kBSLqGyLw4mm94dcXrGy68SfTOnUAgmmeseWUuWMBAJvZQjKUARUG9ZTpI C1olbV296WbZ3Fx1dAN3k1ylmxZGO3tnRWx67kMfXS+loI+mFLKcrNOZ0mPFNfU9MBQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792661958; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From: Date:Subject:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Rspamd-Queue-Id; bh=XxXdmGBefXIrzD/kysy2SoJnuiPsXZhcIjTx70PQl4Y=; b=nBhO6qNJWpN1l9EXBaarYqGv8nwEAtxlJMr0fFqtNSFQ08uSMp1V5eiGgQQPPbQ10LVQ mu7kYYzyznT1chnO/bFYF/gM78ORDwzgFKYfYtTXBfxIMDVE/6b5AToC5SditF4rZdbre T5z8ug4AFcxKwXKqH+RyLNQlX7kKoQMbsK02j7+w5WfVxSHrIaDzzZcZnBKkQko3Rwb1T LArNqN1hlLP026CCt2HZhL06dG+HGcsU0Qsl9QPCgu27vUNsxYyVN9z9cWecN1nM58Vyt EQzm7JnKEXvnZWVdscHYsc3UnOOk4pdMQOJEIJ0XTJcE2mjoQZEAueQif7S2Fbocj5Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=steffen.cc header.i=@steffen.cc header.a=rsa-sha256 header.s=MBO0001 header.b="DEXq+/fQ"; dmarc=pass header.from=steffen.cc; spf=pass smtp.mailfrom=steffen.cc; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE01C60A4ADB; Thu, 22 Oct 2026 09:39:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=steffen.cc header.i=@steffen.cc header.a=rsa-sha256 header.s=MBO0001 header.b=DEXq+/fQ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.161 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792661955; b=cUw/2VbN3KMCXQp3flHKYptPe0VClk9Lz/0LVw9miQEge3Fb+XvxQxqgG5GDXAf9LvDN qFjZ+HOUQAbUB6gzAWXmD92FbKj3Sh7vakRaMMYedPM8CdhfxqVq2KnHB6gq6H/9BPGwh W19m+5/VRLMMezFlRbSl3Ea76l5VUeNtUeirSQKMmNlMwQqF3NdXWxbjJ6XwcEIaGlRsy Co33N0sYvnGj2PHbcZHVhHeWYlYghPZjPIG4ku8dmXhwKxmlLac4xrWdQZwrdMpWBvtZJ y6O+biXjhJaeyXzlINp9Hcnv1I9OZmUUvE/xDAY+AsU7nxVdEUR4cNgdmzs9bXJIkaw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792661955; h=DMARC-Filter:Received:DKIM-Signature:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Rspamd-Queue-Id; bh=XxXdmGBefXIrzD/kysy2SoJnuiPsXZhcIjTx70PQl4Y=; b=poxd/bgLAhs4LrKXwGzRoy2dnCxc19XgAccFnXWEpq39TOS/ku5jSLRE0qyZ9hH6TdZV No+ZcdhJtjbd+evuShC4tNvqDjt64rvUQsvtMrslcJ/a6pn8dS0UUQRM9sOEyKUpyjMtE LvU1iGijuGWsiB/bvKJcrPFCZwSYsxz0siZGVyV2Hd9UaJuWJFHAQuUQeuUSGZOlZ/7qN J12M9c94eX6Tqt6xtRTV9eij0lqgu5Ye/sosak0RUMwh/GJ5k98nf4/eMECPGZ2CF5QVC i5l08VQOeHS9BLJK0NuIOO2xe8AGxhCtNbmh+xKfMMEhp1IvniDZljs8b+Vk0YccV9w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=steffen.cc; spf=pass smtp.mailfrom=steffen.cc; dkim=pass header.d=steffen.cc header.i=@steffen.cc header.a=rsa-sha256 header.s=MBO0001 header.b="DEXq+/fQ"; arc=none smtp.remote-ip=80.241.56.161 X-Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9329360A381E; Thu, 22 Oct 2026 09:39:14 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9329360A381E X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=steffen.cc X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=steffen.cc X-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4j9LhH5kZfzKmwp; Thu, 22 Oct 2026 11:39:11 +0200 (CEST) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=steffen.cc; s=MBO0001; t=1792661951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XxXdmGBefXIrzD/kysy2SoJnuiPsXZhcIjTx70PQl4Y=; b=DEXq+/fQs4o1+qcRXtlKo8sddKdqzjwtBIO0dzN9hz4UTExVaoTPRl2yzW/eSeINDHj1xq ltfTzYe/O3yWYWs/K4zDVuf7SodzO0bjwoDr3FuSM4w6yuxZbU6IwyF73FLGCI1BEDxUEn B+BdhIBTYrbDOYyDMF87e5VgyJOwhvL09hDxawvNgLxct+c01JTyLe9zneYEkztUQnMvY0 cbYELxd8de/k813No7ROYhThPlOTsDfwqe41Vv1aqlIbQXM3PPhbUYQ5eXhGxyROkeWx9W edNW34GPoeP8nZIuiKT4Nmo6EpINlIYFVrGGjHIksxSrf+HSYw/cL2TjPHZ3lg== X-Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of lists@steffen.cc designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=lists@steffen.cc X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261022-std-macb-v14-send-v1-0-9187bc545bf6@beckhoff.com> X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev, Christian Taedcke <christian.taedcke@weidmueller.com>, Nicolai Buchwitz <nb@tipi-net.de>, Andrea della Porta <andrea.porta@suse.com>, Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com> X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1792661936; l=1891; i=s.dirkwinkel@beckhoff.com; s=20260625; h=from:subject:message-id; bh=5SFNsZwxQop4FNjc7v2pflVp7X+DnG6j0I1lOk/2tmQ=; b=IwcrrE5cSvhDpnKnBcgWX6a1x1V38/zPgm9mE8LqCvq1Tf1tY04eQyepELILKMSAg25W/poNT /sUEBsHUHezCdgf9ysOQkXKwHSCONZG+A00br5wbytuExix/hmyarJm X-Developer-Key: i=s.dirkwinkel@beckhoff.com; a=ed25519; pk=5DcsaSpVtmm7nCi3Bnw5A4vbXI+sg3hBgt8e2A2U/gw= X-Rspamd-Queue-Id: 4j9LhH5kZfzKmwp