All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/2] net: stmmac: introduce XDP multi-buff support for TX path
@ 2026-10-01  9:26 Lorenzo Bianconi
  2026-10-01  9:26 ` [PATCH net-next v4 1/2] net: stmmac: fix TX coalesce race and div-by-zero in XDP/legacy path Lorenzo Bianconi
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2026-10-01  9:26 UTC (permalink / raw)
  To: Maxime Chevallier, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Maxime Coquelin, Alexandre Torgue,
	Alexei Starovoitov, Daniel Borkmann, Jesper Dangaard Brouer,
	John Fastabend, Stanislav Fomichev, Ong Boon Leong
  Cc: netdev, linux-stm32, linux-arm-kernel, bpf, Lorenzo Bianconi

Extend stmmac_xdp_xmit_xdpf() to transmit XDP frames with fragments.
Fix TX coalesce race and div-by-zero in XDP/legacy path

---
Changes in v4:
- Add patch 1/2 to fix theoretical division by zero issue in xdp/legacy
  tx path.
- Link to v3: https://lore.kernel.org/r/20260925-b4-stmmac-xmit-mb-v3-1-ca08f029e81c@oss.qualcomm.com

Changes in v3:
- Advertise NETDEV_XDP_ACT_NDO_XMIT_SG capability.
- Add missing dma_wmb() before setting OWN bit of the first descriptor.
- Link to v2: https://lore.kernel.org/r/20260924-b4-stmmac-xmit-mb-v2-1-003347b7bc25@oss.qualcomm.com

Changes in v2:
- Fix Tx coalescing logic in stmmac_xdp_xmit_xdpf()
- Consider the max between STMMAC_TX_THRESH() and num_frames as
  threshold in stmmac_xdp_xmit_xdpf().
- Link to v1: https://lore.kernel.org/r/20260923-b4-stmmac-xmit-mb-v1-1-a71a1c522142@oss.qualcomm.com

---
Lorenzo Bianconi (2):
      net: stmmac: fix TX coalesce race and div-by-zero in XDP/legacy path
      net: stmmac: add XDP multi-buff support for TX side

 .../net/ethernet/stmicro/stmmac/stmmac_ethtool.c   |  11 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 160 +++++++++++++--------
 drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c   |   2 +-
 3 files changed, 107 insertions(+), 66 deletions(-)
---
base-commit: ea3b2f0356c2f33022c10dc7ad3fd02bf4aa517c
change-id: 20260922-b4-stmmac-xmit-mb-bb78e0684cf4

Best regards,
-- 
Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-07 23:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-01  9:26 [PATCH net-next v4 0/2] net: stmmac: introduce XDP multi-buff support for TX path Lorenzo Bianconi
2026-10-01  9:26 ` [PATCH net-next v4 1/2] net: stmmac: fix TX coalesce race and div-by-zero in XDP/legacy path Lorenzo Bianconi
2026-10-05  9:47   ` netdev-bot+sashiko
2026-10-05 10:12     ` Lorenzo Bianconi
2026-10-01  9:26 ` [PATCH net-next v4 2/2] net: stmmac: add XDP multi-buff support for TX side Lorenzo Bianconi
2026-10-07 23:40 ` [PATCH net-next v4 0/2] net: stmmac: introduce XDP multi-buff support for TX path patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.