From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhe Tao Subject: [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 Message-ID: <1443524879-24865-1-git-send-email-zhe.tao@intel.com> To: dev@dpdk.org 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) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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