From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, Chaoyong He <chaoyong.he@corigine.com>,
Peng Zhang <peng.zhang@corigine.com>
Subject: [PATCH] net/nfp: unify the queue threshold value
Date: Wed, 18 Dec 2024 14:17:45 +0800 [thread overview]
Message-ID: <20241218061745.1696899-1-chaoyong.he@corigine.com> (raw)
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@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@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
reply other threads:[~2024-12-18 6:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241218061745.1696899-1-chaoyong.he@corigine.com \
--to=chaoyong.he@corigine.com \
--cc=dev@dpdk.org \
--cc=oss-drivers@corigine.com \
--cc=peng.zhang@corigine.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).