From: Birger Koblitz Date: Sun, 5 Sep 2021 13:13:10 +0000 (+0200) Subject: realtek: Correct TX ring size in ethernet driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e88ac0bbd1099cc7844ad0efe891b9fb5f0e34e2;p=openwrt%2Fstaging%2Flynxis.git 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 --- 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