[PATCH] net/nfp: unify the queue threshold value
Chaoyong He
chaoyong.he at corigine.com
Wed Dec 18 07:17:45 CET 2024
Make sure the Rx queue threshold value query by API
'rte_eth_rx_queue_info_get()' and 'rte_eth_dev_info_get()' unify.
Same for the Tx queue threshold value.
Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Peng Zhang <peng.zhang at corigine.com>
---
drivers/net/nfp/nfp_rxtx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c
index 35fb637b21..ad1eb21d2f 100644
--- a/drivers/net/nfp/nfp_rxtx.c
+++ b/drivers/net/nfp/nfp_rxtx.c
@@ -862,6 +862,7 @@ nfp_net_rx_queue_info_get(struct rte_eth_dev *dev,
nfp_net_infos_get(dev, &dev_info);
info->conf.offloads = dev_info.rx_offload_capa &
dev->data->dev_conf.rxmode.offloads;
+ info->conf.rx_thresh = dev_info.default_rxconf.rx_thresh;
}
void
@@ -883,6 +884,7 @@ nfp_net_tx_queue_info_get(struct rte_eth_dev *dev,
nfp_net_infos_get(dev, &dev_info);
info->conf.offloads = dev_info.tx_offload_capa &
dev->data->dev_conf.txmode.offloads;
+ info->conf.tx_thresh = dev_info.default_txconf.tx_thresh;
}
void
--
2.43.5
More information about the dev
mailing list