From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 095CE902 for ; Tue, 29 Sep 2015 13:08:05 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 29 Sep 2015 04:08:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,607,1437462000"; d="scan'208";a="815216264" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 29 Sep 2015 04:08:04 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t8TB82nd019576; Tue, 29 Sep 2015 19:08:02 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t8TB7x1h024899; Tue, 29 Sep 2015 19:08:02 +0800 Received: (from zhetao@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t8TB7xRa024895; Tue, 29 Sep 2015 19:07:59 +0800 From: Zhe Tao To: dev@dpdk.org Date: Tue, 29 Sep 2015 19:07:59 +0800 Message-Id: <1443524879-24865-1-git-send-email-zhe.tao@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 11:08:06 -0000 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 --- 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