[openwrt/openwrt] realtek: Correct TX ring size in ethernet driver

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 8 23:26:14 PDT 2021


blogic pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e88ac0bbd1099cc7844ad0efe891b9fb5f0e34e2

commit e88ac0bbd1099cc7844ad0efe891b9fb5f0e34e2
Author: Birger Koblitz <git at birger-koblitz.de>
AuthorDate: Sun Sep 5 15:13:10 2021 +0200

    realtek: Correct TX ring size in ethernet driver
    
    This enlarges the size of the TX ring buffer, which prevents warnings
    when the buffer runs out of space.
    
    Signed-off-by: Birger Koblitz <git at birger-koblitz.de>
---
 target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c
index ce3574b902..7c3d7c544b 100644
--- a/target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c
+++ b/target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c
@@ -37,8 +37,7 @@ extern struct rtl83xx_soc_info soc_info;
 #define MAX_RXLEN	100
 #define MAX_ENTRIES	(200 * 8)
 #define TXRINGS		2
-// BUG: TXRINGLEN can be 160
-#define TXRINGLEN	16
+#define TXRINGLEN	160
 #define NOTIFY_EVENTS	10
 #define NOTIFY_BLOCKS	10
 #define TX_EN		0x8



More information about the lede-commits mailing list