From: Felix Fietkau <nbd@nbd.name>
To: netdev@vger.kernel.org, Matthias Brugger <matthias.bgg@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org
Subject: Multiqueue support for mtk_eth_soc
Date: Wed, 16 Nov 2022 09:07:28 +0100 [thread overview]
Message-ID: <20221116080734.44013-1-nbd@nbd.name> (raw)
This series implements multiqueue support on devices with QDMA (MT7621 and newer)
by using the SoC's traffic shaper function, which is part of the QDMA engine.
The driver exposes traffic shaper queues as network stack queues and configures
them to the link speed limit.
This fixes an issue where traffic to slower ports would drown out traffic to
faster ports. It also fixes packet drops and jitter when running hardware
offloaded traffic alongside traffic from the CPU.
Felix Fietkau (6):
net: ethernet: mtk_eth_soc: increase tx ring size for QDMA devices
net: ethernet: mtk_eth_soc: drop packets to WDMA if the ring is full
net: ethernet: mtk_eth_soc: avoid port_mg assignment on MT7622 and
newer
net: ethernet: mtk_eth_soc: implement multi-queue support for per-port
queues
net: dsa: tag_mtk: assign per-port queues
net: ethernet: mediatek: ppe: assign per-port queues for offloaded
traffic
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 328 ++++++++++++++----
drivers/net/ethernet/mediatek/mtk_eth_soc.h | 28 +-
drivers/net/ethernet/mediatek/mtk_ppe.c | 22 +-
drivers/net/ethernet/mediatek/mtk_ppe.h | 4 +
.../net/ethernet/mediatek/mtk_ppe_offload.c | 12 +-
net/dsa/tag_mtk.c | 2 +
6 files changed, 324 insertions(+), 72 deletions(-)
--
2.38.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-11-16 8:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 8:07 Felix Fietkau [this message]
2022-11-16 8:07 ` [PATCH net-next 1/6] net: ethernet: mtk_eth_soc: increase tx ring size for QDMA devices Felix Fietkau
2022-11-19 3:50 ` patchwork-bot+netdevbpf
2022-11-16 8:07 ` [PATCH net-next 2/6] net: ethernet: mtk_eth_soc: drop packets to WDMA if the ring is full Felix Fietkau
2022-11-16 8:07 ` [PATCH net-next 3/6] net: ethernet: mtk_eth_soc: avoid port_mg assignment on MT7622 and newer Felix Fietkau
2022-11-16 8:07 ` [PATCH net-next 4/6] net: ethernet: mtk_eth_soc: implement multi-queue support for per-port queues Felix Fietkau
2022-11-18 15:13 ` Alexander 'lynxis' Couzens
2022-11-18 16:30 ` Felix Fietkau
2022-11-16 8:07 ` [PATCH net-next 5/6] net: dsa: tag_mtk: assign " Felix Fietkau
2022-11-16 18:26 ` Florian Fainelli
2022-11-16 8:07 ` [PATCH net-next 6/6] net: ethernet: mediatek: ppe: assign per-port queues for offloaded traffic Felix Fietkau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221116080734.44013-1-nbd@nbd.name \
--to=nbd@nbd.name \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox