realtek: eth: rtl960x: increase ring sizes and buf size

The GMAC on RTL9607C can handle ring sizes of up to 4096. Fix the comment
to now say 4096 is max instead of 256 and change the rx/tx ring sizes to 1024
and 2048 respectively to follow the vendor's defaults from their nic driver.

Also change the RX_BUF_SIZE to 1600 as the mentioned nic driver has the
SKB_BUF_SIZE set to 1600.

Signed-off-by: Rustam Adilov <adilov@tutamail.com>
Link: https://github.com/openwrt/openwrt/pull/25042
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
This commit is contained in:
Rustam Adilov authored and Markus Stockhausen committed 2026-09-07 08:11:16 +02:00
1 parent d95ef3c999
commit e1f69d04e0
1 file changed
+3 -3
@@ -52,9 +52,9 @@
#define DSA_TRAILER_LEN 4
/* Datapath sizing */
#define RX_RING_SIZE 128 /* must be a power of two, 16..256 */
#define TX_RING_SIZE 128
#define RX_BUF_SIZE 1536 /* 0x600, per U-Boot RX_DESC_BUFFER_SIZE */
#define RX_RING_SIZE 1024 /* must be a power of two, from 16 to 4096 */
#define TX_RING_SIZE 2048
#define RX_BUF_SIZE 1600
#define RX_SHIFT 2 /* HW writes the frame at buf + 2 bytes */
#define RX_MAX_FRAME_LEN (RX_BUF_SIZE - RX_SHIFT)
#define TX_MIN_LEN ETH_ZLEN