Skip to content

Commit 20fb057

Browse files
Ioana Ciocoi Radulescudavem330
authored andcommitted
dpaa2-eth: Update buffer pool refill threshold
Add more buffers to the Rx buffer pool as soon as 7 of them get consumed, instead of waiting for their number to drop below a fixed threshold. 7 is the number of buffers that can be released in the pool via a single DPIO command. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1fa0f68 commit 20fb057

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
*/
5454
#define DPAA2_ETH_MAX_FRAMES_PER_QUEUE (DPAA2_ETH_TAILDROP_THRESH / 64)
5555
#define DPAA2_ETH_NUM_BUFS (DPAA2_ETH_MAX_FRAMES_PER_QUEUE + 256)
56-
#define DPAA2_ETH_REFILL_THRESH DPAA2_ETH_MAX_FRAMES_PER_QUEUE
56+
#define DPAA2_ETH_REFILL_THRESH \
57+
(DPAA2_ETH_NUM_BUFS - DPAA2_ETH_BUFS_PER_CMD)
5758

5859
/* Maximum number of buffers that can be acquired/released through a single
5960
* QBMan command

0 commit comments

Comments
 (0)