730-18-v6.3-net-ethernet-mtk_eth_soc-fix-tx-throughput-regressio.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From: Felix Fietkau <[email protected]>
  2. Date: Fri, 24 Mar 2023 14:56:58 +0100
  3. Subject: [PATCH] net: ethernet: mtk_eth_soc: fix tx throughput regression with
  4. direct 1G links
  5. Using the QDMA tx scheduler to throttle tx to line speed works fine for
  6. switch ports, but apparently caused a regression on non-switch ports.
  7. Based on a number of tests, it seems that this throttling can be safely
  8. dropped without re-introducing the issues on switch ports that the
  9. tx scheduling changes resolved.
  10. Link: https://lore.kernel.org/netdev/trinity-92c3826f-c2c8-40af-8339-bc6d0d3ffea4-1678213958520@3c-app-gmx-bs16/
  11. Fixes: f63959c7eec3 ("net: ethernet: mtk_eth_soc: implement multi-queue support for per-port queues")
  12. Reported-by: Frank Wunderlich <[email protected]>
  13. Reported-by: Daniel Golle <[email protected]>
  14. Tested-by: Daniel Golle <[email protected]>
  15. Signed-off-by: Felix Fietkau <[email protected]>
  16. ---
  17. --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  18. +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  19. @@ -675,8 +675,6 @@ static void mtk_mac_link_up(struct phyli
  20. break;
  21. }
  22. - mtk_set_queue_speed(mac->hw, mac->id, speed);
  23. -
  24. /* Configure duplex */
  25. if (duplex == DUPLEX_FULL)
  26. mcr |= MAC_MCR_FORCE_DPX;