[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1472077539-18033-1-git-send-email-xander.huff@ni.com>
Date: Wed, 24 Aug 2016 17:25:39 -0500
From: Xander Huff <xander.huff@...com>
To: nicolas.ferre@...el.com
Cc: netdev@...r.kernel.org, Nathan Sullivan <nathan.sullivan@...com>,
linux-kernel@...r.kernel.org, xander.huff@...com
Subject: [PATCH v2] net: macb: Increase DMA TX buffer size
From: Nathan Sullivan <nathan.sullivan@...com>
In recent testing with the RT patchset, we have seen cases where the
transmit ring can fill even with up to 200 txbds in the ring. Increase the
size of the DMA TX ring to avoid overruns.
Signed-off-by: Xander Huff <xander.huff@...com>
Signed-off-by: Nathan Sullivan <nathan.sullivan@...com>
---
drivers/net/ethernet/cadence/macb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 3256839..3efddb7 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -40,7 +40,7 @@
#define RX_RING_SIZE 512 /* must be power of 2 */
#define RX_RING_BYTES (sizeof(struct macb_dma_desc) * RX_RING_SIZE)
-#define TX_RING_SIZE 128 /* must be power of 2 */
+#define TX_RING_SIZE 512 /* must be power of 2 */
#define TX_RING_BYTES (sizeof(struct macb_dma_desc) * TX_RING_SIZE)
/* level of occupied TX descriptors under which we wake up TX process */
--
1.9.1
Powered by blists - more mailing lists