DPDK patches and discussions
 help / color / mirror / Atom feed
From: Zhe Tao <zhe.tao@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets
Date: Tue, 29 Sep 2015 19:07:59 +0800	[thread overview]
Message-ID: <1443524879-24865-1-git-send-email-zhe.tao@intel.com> (raw)

Every time we started to receive the packets, the start queue number
should be the one that just received the packets, should not start from zero!

Signed-off-by: Zhe Tao <zhe.tao@intel.com>
---
 examples/dpdk_qat/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/dpdk_qat/main.c b/examples/dpdk_qat/main.c
index dc68989..b818e4e 100644
--- a/examples/dpdk_qat/main.c
+++ b/examples/dpdk_qat/main.c
@@ -187,7 +187,7 @@ nic_rx_get_packet(struct lcore_conf *qconf)
 		uint32_t i;
 
 		qconf->rx_mbuf_pos = 0;
-		for (i = 0; i < qconf->n_rx_queue; i++) {
+		for (i = qconf->rx_curr_queue; i < qconf->n_rx_queue; i++) {
 			qconf->rx_mbuf.len = rte_eth_rx_burst(
 				qconf->rx_queue_list[qconf->rx_curr_queue].port_id,
 				qconf->rx_queue_list[qconf->rx_curr_queue].queue_id,
-- 
1.9.3

             reply	other threads:[~2015-09-29 11:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 11:07 Zhe Tao [this message]
2015-12-07  1:32 ` Thomas Monjalon
2015-12-07  8:47   ` Declan Doherty
2016-03-04  8:19 ` Wu, Jingjing

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=1443524879-24865-1-git-send-email-zhe.tao@intel.com \
    --to=zhe.tao@intel.com \
    --cc=dev@dpdk.org \
    /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).