Skip to contentSkip to conversation

driver: net: ldpaa: Increase num of buffers for a pool

PATCH New Prabhakar Kushwaha 3 participants 4 messages Dec 24, 2015 – Jan 27, 2016 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 driver: net: ldpaa: Increase num of buffers for a pool

Management Complex FW 9.0 set the hardware depletion to be 20 buffers in order to support multiple pools in DPNI. This requires driver to fill the pool with at least 21 to be able to receive frames.

So, Increase number of buffers for a pool.

---
 drivers/net/ldpaa_eth/ldpaa_eth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ldpaa_eth/ldpaa_eth.h +1 -1
index af41b27..3b16150 100644
@@ -24,7 +24,7 @@ enum ldpaa_eth_type {
 };
 
 /* Arbitrary values for now, but we'll need to tune */
-#define LDPAA_ETH_NUM_BUFS		(2 * 7)
+#define LDPAA_ETH_NUM_BUFS		(7 * 7)
 #define LDPAA_ETH_REFILL_THRESH		(LDPAA_ETH_NUM_BUFS/2)
 #define LDPAA_ETH_RX_BUFFER_SIZE	2048
 
Signature · 1 line
1.9.1
#1 lore raw

PATCH 5/7 driver: net: ldpaa: Increase num of buffers for a pool

Quoted 16 lines · Prabhakar Kushwaha

Management Complex FW 9.0 set the hardware depletion to be 20 buffers in order to support multiple pools in DPNI. This requires driver to fill the pool with at least 21 to be able to receive frames.

So, Increase number of buffers for a pool.

---
 drivers/net/ldpaa_eth/ldpaa_eth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ldpaa_eth/ldpaa_eth.h +0 -0
index af41b27..3b16150 100644

drivers/net/ldpaa_eth/ldpaa_eth.h enum ldpaa_eth_type { · line 27

Quoted 5 lines
drivers/net/ldpaa_eth/ldpaa_eth.h +1 -1
@@ -24,7 +24,7 @@ enum ldpaa_eth_type {
 };
 
 /* Arbitrary values for now, but we'll need to tune */
-#define LDPAA_ETH_NUM_BUFS		(2 * 7)
+#define LDPAA_ETH_NUM_BUFS		(7 * 7)

You said at least 21, but actually use 49. Is there a connection?

York

#2 lore raw

PATCH 5/7 driver: net: ldpaa: Increase num of buffers for a pool

Quoted 28 lines

-----Original Message-----
From: york sun [mailto:york.sun at nxp.com]
Sent: Monday, January 25, 2016 10:50 PM
To: Prabhakar Kushwaha <[email protected]>; u-boot at lists.denx.de
Cc: Yusong Sun <[email protected]>
Subject: Re: [PATCH 5/7] driver: net: ldpaa: Increase num of buffers for a pool

Quoted 18 lines · Prabhakar Kushwaha

Management Complex FW 9.0 set the hardware depletion to be 20 buffers in order to support multiple pools in DPNI. This requires driver to fill the pool with at least 21 to be able to receive frames.

So, Increase number of buffers for a pool.

---
 drivers/net/ldpaa_eth/ldpaa_eth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ldpaa_eth/ldpaa_eth.h +0 -0
index af41b27..3b16150 100644
@@ -24,7 +24,7 @@ enum ldpaa_eth_type {  };
 
Quoted 6 lines

drivers/net/ldpaa_eth/ldpaa_eth.h enum ldpaa_eth_type { · line 27

Quoted 3 lines
drivers/net/ldpaa_eth/ldpaa_eth.h +1 -1
 /* Arbitrary values for now, but we'll need to tune */
-#define LDPAA_ETH_NUM_BUFS		(2 * 7)
+#define LDPAA_ETH_NUM_BUFS		(7 * 7)

You said at least 21, but actually use 49. Is there a connection?

Total Buffer must be >= 21.

Regards,
Prabhakar

#3 lore raw

PATCH 5/7 driver: net: ldpaa: Increase num of buffers for a pool

In reply to Prabhakar Kushwaha
Quoted 11 lines · Prabhakar Kushwaha

Management Complex FW 9.0 set the hardware depletion to be 20 buffers in order to support multiple pools in DPNI. This requires driver to fill the pool with at least 21 to be able to receive frames.

So, Increase number of buffers for a pool.

---
 drivers/net/ldpaa_eth/ldpaa_eth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Slightly reformat commit message.
Applied to u-boot-fsl-qoriq master. Awaiting upstream.

Thanks.

York