Skip to content

Commit

Permalink
net: ethernet: microchip: lan743x: Increase rx ring size to improve r…
Browse files Browse the repository at this point in the history
…x performance

Increase the rx ring size (LAN743X_RX_RING_SIZE) to improve rx performance on some platforms.
Tested on x86 PC with EVB-LAN7430.
The iperf3.7 TCPIP improved from 881 Mbps to 922 Mbps, and UDP improved from 817 Mbps to 936 Mbps.

Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yuiko Oshino authored and David S. Miller committed Oct 29, 2021
1 parent 6689d71 commit a1f1627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/microchip/lan743x_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ struct lan743x_rx_buffer_info {
unsigned int buffer_length;
};

#define LAN743X_RX_RING_SIZE (65)
#define LAN743X_RX_RING_SIZE (128)

#define RX_PROCESS_RESULT_NOTHING_TO_DO (0)
#define RX_PROCESS_RESULT_BUFFER_RECEIVED (1)
Expand Down

0 comments on commit a1f1627

Please sign in to comment.