net/dpaa2: change threshold value
PATCH 1/1 net/dpaa2: change threshold value
this threshold value can be changed with function argument nb_rx_desc.
--- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa2/dpaa2_ethdev.c +1 -1
@@ -829,7 +829,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, dpaa2_q->cgid, &taildrop); }else {/*enabling per rx queue congestion control */ - taildrop.threshold =CONG_THRESHOLD_RX_BYTES_Q ; + taildrop.threshold = nb_rx_desc *1024 ; taildrop.units =DPNI_CONGESTION_UNIT_BYTES ; taildrop.oal =CONG_RX_OAL ; DPAA2_PMD_DEBUG("Enabling Byte based Drop on queue= %d",
Signature · 1 line
2.27.0
Quoted 24 lines · Tianli Lai
Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
this threshold value can be changed with function argument
nb_rx_desc.Signed-off-by Tianli Lai <[email protected]>--- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/dpaa2/dpaa2_ethdev.c +1
-2@@ -829,7 +829,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, dpaa2_q->cgid, &taildrop); }else {/*enabling per rx queue congestion control */ - taildrop.threshold =CONG_THRESHOLD_RX_BYTES_Q ; + taildrop.threshold = nb_rx_desc *1024 ; taildrop.units =DPNI_CONGESTION_UNIT_BYTES ; taildrop.oal =CONG_RX_OAL ; DPAA2_PMD_DEBUG("Enabling Byte based Drop on queue= %d", --
Quoted 2 lines
2.27.0
Hi Tianli,
The number of bytes based tail drop threshold value "CONG_THRESHOLD_RX_BYTES_Q" is an optimized value for dpaa2 platform. we concluded this value after multiple benchmark experiments in past. Although, number of frame based threshold value is "nb_rx_desc" based only. We will further review this suggestion and get back.
Signature · 3 lines
Thanks, Sachin Saxena (NXP)
Quoted 34 lines · Sachin Saxena (OSS)
Quoted 26 lines · Tianli Lai
Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
this threshold value can be changed with function argument
nb_rx_desc.Signed-off-by Tianli Lai <[email protected]>---
drivers/net/dpaa2/dpaa2_ethdev.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/dpaa2/dpaa2_ethdev.c +1
-1@@ -829,7 +829,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, dpaa2_q->cgid, &taildrop); } else { /*enabling per rx queue congestion control */ - taildrop.threshold = CONG_THRESHOLD_RX_BYTES_Q; + taildrop.threshold = nb_rx_desc * 1024; taildrop.units = DPNI_CONGESTION_UNIT_BYTES; taildrop.oal = CONG_RX_OAL;Quoted 5 lines
DPAA2_PMD_DEBUG("Enabling Byte based Drop on queue= %d",
Signature · 1 line
2.27.0Hi Tianli,
Quoted 6 lines
The number of bytes based tail drop threshold value "
CONG_THRESHOLD_RX_BYTES_Q" is an optimized value for dpaa2 platform. we concluded this value after multiple benchmark experiments in past. Although, number of frame based threshold value is "nb_rx_desc" based only. We will further review this suggestion and get back.
Hi Sachin, What is the status of this patch?
Quoted 35 lines · Ferruh Yigit
Quoted 34 lines · Sachin Saxena (OSS)
Quoted 26 lines · Tianli Lai
Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
this threshold value can be changed with function argument
nb_rx_desc.Signed-off-by Tianli Lai <[email protected]>---
drivers/net/dpaa2/dpaa2_ethdev.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/dpaa2/dpaa2_ethdev.c +1
-1@@ -829,7 +829,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, dpaa2_q->cgid, &taildrop); } else { /*enabling per rx queue congestion control */ - taildrop.threshold = CONG_THRESHOLD_RX_BYTES_Q; + taildrop.threshold = nb_rx_desc * 1024; taildrop.units = DPNI_CONGESTION_UNIT_BYTES; taildrop.oal = CONG_RX_OAL;Quoted 5 lines
DPAA2_PMD_DEBUG("Enabling Byte based Drop on queue= %d",
Signature · 1 line
2.27.0Hi Tianli,
Quoted 9 lines
Quoted 6 lines
The number of bytes based tail drop threshold value "
CONG_THRESHOLD_RX_BYTES_Q" is an optimized value for dpaa2 platform. we concluded this value after multiple benchmark experiments in past. Although, number of frame based threshold value is "nb_rx_desc" based only. We will further review this suggestion and get back.Hi Sachin, What is the status of this patch?
Ping
Quoted 43 lines · Ferruh Yigit
Quoted 42 lines · Ferruh Yigit
Quoted 40 lines · Sachin Saxena (OSS)
Quoted 26 lines · Tianli Lai
Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
this threshold value can be changed with function argument
nb_rx_desc.Signed-off-by Tianli Lai <[email protected]>---
drivers/net/dpaa2/dpaa2_ethdev.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/dpaa2/dpaa2_ethdev.c +1
-1@@ -829,7 +829,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, dpaa2_q->cgid, &taildrop); } else { /*enabling per rx queue congestion control */ - taildrop.threshold = CONG_THRESHOLD_RX_BYTES_Q; + taildrop.threshold = nb_rx_desc * 1024; taildrop.units = DPNI_CONGESTION_UNIT_BYTES; taildrop.oal = CONG_RX_OAL;Quoted 5 lines
DPAA2_PMD_DEBUG("Enabling Byte based Drop on queue= %d",
Signature · 1 line
2.27.0Hi Tianli,
The number of bytes based tail drop threshold value "
CONG_THRESHOLD_RX_BYTES_Q" is an optimized value for dpaa2 platform. we concluded this value after multiple benchmark experiments in past. Although, number of frame based threshold value is "nb_rx_desc" based only. We will further review this suggestion and get back.
Quoted 5 lines
Quoted 2 lines
Hi Sachin, What is the status of this patch?
Ping
Hi Sachin, Hemant,
If you believe current threshold value is more optimized value, please reject this patch, instead of letting it stuck around.
Or @Tianli if you have more arguments to prove this is better value, can you please share them to help maintainers?
Quoted 66 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Friday, November 3, 2023 2:36 AM
To: Sachin Saxena (OSS) <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>
Cc: [email protected]; Tianli Lai <[email protected]>
Subject: Re: [PATCH] net/dpaa2: change threshold value
Importance: HighQuoted 9 lines · Ferruh Yigit
Quoted 8 lines · Ferruh Yigit
Quoted 7 lines · Sachin Saxena (OSS)
Quoted 6 lines · Tianli Lai
Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
this threshold value can be changed with function argument
nb_rx_desc.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Tianli Lai <[email protected]>---
drivers/net/dpaa2/dpaa2_ethdev.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/dpaa2/dpaa2_ethdev.c dpaa2_dev_rx_queue_setup(struct
Quoted 6 lines
drivers/net/dpaa2/dpaa2_ethdev.c +0
-0@@ -829,7 +829,7 @@ dpaa2_dev_rx_queue_setup(struct
rte_eth_devQuoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
drivers/net/dpaa2/dpaa2_ethdev.c +0
-1*dev, dpaa2_q->cgid, &taildrop); } else { /*enabling per rx queue congestion control*/ - taildrop.threshold =
CONG_THRESHOLD_RX_BYTES_Q;
+ taildrop.threshold =nb_rx_desc* 1024; taildrop.units =DPNI_CONGESTION_UNIT_BYTES;
taildrop.oal =CONG_RX_OAL; DPAA2_PMD_DEBUG("Enabling Byte based Drop on queue= %d",
--
2.27.0Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hi Tianli,
The number of bytes based tail drop threshold value "
CONG_THRESHOLD_RX_BYTES_Q" is an optimized value for dpaa2 platform. we concluded this value after multiple benchmarkexperiments in past.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Although, number of frame based threshold value is "
nb_rx_desc"based only.
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
We will further review this suggestion and get back.
Hi Sachin, What is the status of this patch?
Quoted 7 lines
Quoted 2 lines
Ping
Hi Sachin, Hemant,
If you believe current threshold value is more optimized value, please reject this patch, instead of letting it stuck around.
[Hemant] Yes, NACK for us for now.
Quoted 2 lines
Or @Tianli if you have more arguments to prove this is better value, can you please share them to help maintainers?