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 5A4D92BAD for ; Fri, 4 Mar 2016 09:19:23 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 04 Mar 2016 00:19:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,535,1449561600"; d="scan'208";a="901102278" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 04 Mar 2016 00:19:22 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 4 Mar 2016 00:19:20 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.132]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.42]) with mapi id 14.03.0248.002; Fri, 4 Mar 2016 16:19:18 +0800 From: "Wu, Jingjing" To: "Tao, Zhe" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets Thread-Index: AQHQ+qcwRFvxCF3nBESe1F+FndnOpZ9JzOhw Date: Fri, 4 Mar 2016 08:19:18 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F8DCE1BC@SHSMSX104.ccr.corp.intel.com> References: <1443524879-24865-1-git-send-email-zhe.tao@intel.com> In-Reply-To: <1443524879-24865-1-git-send-email-zhe.tao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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: Fri, 04 Mar 2016 08:19:23 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhe Tao > Sent: Tuesday, September 29, 2015 7:08 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start > number to the one just received the packets >=20 > Every time we started to receive the packets, the start queue number shou= ld > be the one that just received the packets, should not start from zero! >=20 > Signed-off-by: Zhe Tao > --- > examples/dpdk_qat/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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; >=20 > qconf->rx_mbuf_pos =3D 0; > - for (i =3D 0; i < qconf->n_rx_queue; i++) { > + for (i =3D qconf->rx_curr_queue; i < qconf->n_rx_queue; i++) { > qconf->rx_mbuf.len =3D rte_eth_rx_burst( > qconf->rx_queue_list[qconf- > >rx_curr_queue].port_id, > qconf->rx_queue_list[qconf- > >rx_curr_queue].queue_id, I don't think we need to change the start queue number from 0 to rx_curr_qu= eue. If changes to start from rx_curr_queue, the queue whose id is less than rx_= curr_queue won't be scanned until this function is called next time. > -- > 1.9.3