DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/ptpclient: enable Rx queue configuration
@ 2021-08-19  8:58 Simei Su
  2021-10-13 16:32 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Simei Su @ 2021-08-19  8:58 UTC (permalink / raw)
  To: kirill.rybalchenko, ferruh.yigit; +Cc: dev, qi.z.zhang, haiyue.wang, Simei Su

This patch adds support to enable per-queue Rx offloads so that
it can convey the configuration to PMD.

Signed-off-by: Simei Su <simei.su@intel.com>
---
 examples/ptpclient/ptpclient.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c
index 4f32ade..d083a2e 100644
--- a/examples/ptpclient/ptpclient.c
+++ b/examples/ptpclient/ptpclient.c
@@ -217,8 +217,13 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
 
 	/* Allocate and set up 1 RX queue per Ethernet port. */
 	for (q = 0; q < rx_rings; q++) {
+		struct rte_eth_rxconf *rxconf;
+
+		rxconf = &dev_info.default_rxconf;
+		rxconf->offloads = port_conf.rxmode.offloads;
+
 		retval = rte_eth_rx_queue_setup(port, q, nb_rxd,
-				rte_eth_dev_socket_id(port), NULL, mbuf_pool);
+				rte_eth_dev_socket_id(port), rxconf, mbuf_pool);
 
 		if (retval < 0)
 			return retval;
-- 
2.9.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] examples/ptpclient: enable Rx queue configuration
  2021-08-19  8:58 [dpdk-dev] [PATCH] examples/ptpclient: enable Rx queue configuration Simei Su
@ 2021-10-13 16:32 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2021-10-13 16:32 UTC (permalink / raw)
  To: Simei Su; +Cc: kirill.rybalchenko, ferruh.yigit, dev, qi.z.zhang, haiyue.wang

19/08/2021 10:58, Simei Su:
> This patch adds support to enable per-queue Rx offloads so that
> it can convey the configuration to PMD.
> 
> Signed-off-by: Simei Su <simei.su@intel.com>

Applied, thanks.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-13 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19  8:58 [dpdk-dev] [PATCH] examples/ptpclient: enable Rx queue configuration Simei Su
2021-10-13 16:32 ` Thomas Monjalon

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git