linux/drivers/net/ethernet/microchip
Horatiu Vultur fb9eb027fb net: lan966x: Improve the CPU TX bitrate.
When doing manual injection of the frame, it is required to check if the
TX FIFO is ready to accept the next word of the frame. For this we are
using 'readx_poll_timeout_atomic', the only problem is that before it
actually checks the status, is determining the time when to finish polling
the status. Which seems to be an expensive operation.
Therefore check the status of the TX FIFO before calling
'readx_poll_timeout_atomic'.
Doing this will improve the TX bitrate by ~70%. Because 99% the FIFO is
ready by that time. The measurements were done using iperf3.

Before:
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.03  sec  55.2 MBytes  46.2 Mbits/sec    0 sender
[  5]   0.00-10.04  sec  53.8 MBytes  45.0 Mbits/sec      receiver

After:
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.10  sec  95.0 MBytes  78.9 Mbits/sec    0 sender
[  5]   0.00-10.11  sec  95.0 MBytes  78.8 Mbits/sec      receiver

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-03-11 11:13:09 +00:00
..
lan966x net: lan966x: Improve the CPU TX bitrate. 2022-03-11 11:13:09 +00:00
sparx5 net: sparx5: Fix initialization of variables on stack 2022-03-04 20:57:57 -08:00
enc28j60_hw.h
enc28j60.c net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
encx24j600_hw.h net: encx24j600: check error in devm_regmap_init_encx24j600 2021-10-13 15:25:25 -07:00
encx24j600-regmap.c net: encx24j600: check error in devm_regmap_init_encx24j600 2021-10-13 15:25:25 -07:00
encx24j600.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
Kconfig net: lan966x: add the basic lan966x driver 2021-11-29 12:58:38 +00:00
lan743x_ethtool.c net: use bool values to pass bool param of phy_init_eee() 2022-01-24 17:09:56 -08:00
lan743x_ethtool.h
lan743x_main.c net: lan743x: Add support for Clause-45 MDIO PHY management 2022-02-13 12:07:26 +00:00
lan743x_main.h net: lan743x: Add support for Clause-45 MDIO PHY management 2022-02-13 12:07:26 +00:00
lan743x_ptp.c net: lan743x: Add support for 4 Tx queues 2022-02-13 12:07:26 +00:00
lan743x_ptp.h Support LAN743x PTP periodic output on any GPIO 2019-11-11 12:46:56 -08:00
Makefile net: lan966x: add the basic lan966x driver 2021-11-29 12:58:38 +00:00