linux-gbmc: enlarge the ring size

Update ftgmac100 tx and rx queue size based on Aspeed's suggestion.

Effort: Aspeed g6 platforms
Signed-off-by: Tom Tung <tomtung@google.com>
Change-Id: Ic94e0f8fe64acb2ccbcca4de2afbb374fb87c2dd
diff --git a/recipes-kernel/linux/files/0003-ftgmac100-enlarge-the-ring-size.patch b/recipes-kernel/linux/files/0003-ftgmac100-enlarge-the-ring-size.patch
new file mode 100644
index 0000000..9c5c089
--- /dev/null
+++ b/recipes-kernel/linux/files/0003-ftgmac100-enlarge-the-ring-size.patch
@@ -0,0 +1,38 @@
+From 493c0eae0edd2ac3f727ba47e999140ae1e6c170 Mon Sep 17 00:00:00 2001
+From: Tom Tung <tomtung@google.com>
+Date: Fri, 2 Dec 2022 12:31:28 +0800
+Subject: [PATCH] ftgmac100: enlarge the ring size
+
+Based on the suggestion from Aspeed for BMC tx queue issue, this patch:
+- enlarge the ring size from 128 to 1024
+
+
+Patch Tracking Bug: b/261150507
+Upstream info / review: n/a
+Upstream-Status: Inappropriate [configuration]
+Justification: This patch contains Aspeed-g6 only configuration.
+
+Change-Id: I2f03592c498eb19f8caef1d8871259a75b0c89f7
+Signed-off-by: Tom Tung <tomtung@google.com>
+---
+ drivers/net/ethernet/faraday/ftgmac100.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c
+index 9db3fb649cee..18def8683242 100644
+--- a/drivers/net/ethernet/faraday/ftgmac100.c
++++ b/drivers/net/ethernet/faraday/ftgmac100.c
+@@ -38,8 +38,8 @@
+ #define MIN_TX_QUEUE_ENTRIES	32
+ 
+ /* Defaults */
+-#define DEF_RX_QUEUE_ENTRIES	128
+-#define DEF_TX_QUEUE_ENTRIES	128
++#define DEF_RX_QUEUE_ENTRIES	1024
++#define DEF_TX_QUEUE_ENTRIES	1024
+ 
+ #define MAX_PKT_SIZE		1536
+ #define RX_BUF_SIZE		MAX_PKT_SIZE	/* must be smaller than 0x3fff */
+-- 
+2.39.0.rc0.267.gcb52ba06e7-goog
+
diff --git a/recipes-kernel/linux/linux-gbmc.inc b/recipes-kernel/linux/linux-gbmc.inc
index 0d0c1dc..9c94c6f 100644
--- a/recipes-kernel/linux/linux-gbmc.inc
+++ b/recipes-kernel/linux/linux-gbmc.inc
@@ -20,5 +20,5 @@
   file://0001-net-ftgmac100-Support-for-fixed-PHYs.patch \
   file://DOWNSTREAM_0002-kernel-Ensure-only-3-byte-read-command-can-be-sent.patch \
   file://0003-net-ftgmac100-Add-scu-reset-toggling.patch \
+  file://0003-ftgmac100-enlarge-the-ring-size.patch \
 "
-