summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/CLD_TXRX/TXRX/ol_txrx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/CORE/CLD_TXRX/TXRX/ol_txrx.c b/CORE/CLD_TXRX/TXRX/ol_txrx.c
index 60def2b83d1f..c02abfc4b85f 100644
--- a/CORE/CLD_TXRX/TXRX/ol_txrx.c
+++ b/CORE/CLD_TXRX/TXRX/ol_txrx.c
@@ -284,12 +284,16 @@ ol_txrx_pdev_attach(
* Define the value seperately.
*/
pdev->tx_queue.rsrc_threshold_lo = TXRX_HL_TX_FLOW_CTRL_MGMT_RESERVED;
+
+ /* when freeing up descriptors, keep going until there's a 7.5% margin */
+ pdev->tx_queue.rsrc_threshold_hi = ((15 * desc_pool_size)/100)/2;
#else
/* always maintain a 5% margin of unallocated descriptors */
pdev->tx_queue.rsrc_threshold_lo = (5 * desc_pool_size)/100;
-#endif
+
/* when freeing up descriptors, keep going until there's a 15% margin */
pdev->tx_queue.rsrc_threshold_hi = (15 * desc_pool_size)/100;
+#endif
} else {
/*
* For LL, limit the number of host's tx descriptors to match the