From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from jaguar.aricent.com (jaguar.aricent.com [180.151.2.24]) by dpdk.org (Postfix) with ESMTP id 5EA8F4BBC for ; Wed, 23 Oct 2013 16:22:09 +0200 (CEST) Received: from jaguar.aricent.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 930BB36B8C; Wed, 23 Oct 2013 19:52:40 +0530 (IST) Received: from GUREXHT01.ASIAN.AD.ARICENT.COM (gurexht01.asian.ad.aricent.com [10.203.171.136]) by jaguar.aricent.com (Postfix) with ESMTP id 7ABE636B61; Wed, 23 Oct 2013 19:52:40 +0530 (IST) Received: from GUREXMB01.asian.ad.aricent.com ([10.203.171.134]) by GUREXHT01.ASIAN.AD.ARICENT.COM ([10.203.171.136]) with mapi; Wed, 23 Oct 2013 19:52:40 +0530 From: Prashant Upadhyaya To: Jyotiswarup Raiturkar , "dev@dpdk.org" Date: Wed, 23 Oct 2013 19:52:37 +0530 Thread-Topic: [dpdk-dev] query about port queues Thread-Index: Ac7P5KAnAqm7j+tzRfyU8G+YV9asigAFdW0w Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-MML: No Subject: Re: [dpdk-dev] query about port queues 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: Wed, 23 Oct 2013 14:22:09 -0000 Hi Jyoti, You can configure the number of tx and rx queues via the software when you = are calling the rte_eth_dev_configure. However you cannot allocate more than what the NIC supports. But you can al= locate less ofcourse. Typically the queues are used so that independent cores can do tx and rx on= a separate queue without locking. If you have configured 'n' rx queues, your must ensure that you read from _= all_ the queues because the packet can arrive on any of the rx queues based= on the algorithm by which NIC fans out incoming messages on the queues (eg= . RSS). You can transmit freely from any queue (eg. each core of yours coul= d have a tx queue each in your usecase) Regards -Prashant -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jyotiswarup Raiturkar Sent: Wednesday, October 23, 2013 5:10 PM To: dev@dpdk.org Subject: [dpdk-dev] query about port queues Hello Devs I'm new to DPDK and trying to understand the basics. I went through the pro= gramming guide but I had one question regarding Tx and Rx queues per port. = Are they configurable entirely in software or do they depend on the HW (NIC= )? Does the L2 configuration (MAC address) apply to all the queues on the p= ort? (and hence will an application like say a network stack need packets f= rom all the queues in the port)? Thanks Jyotiswarup Raiturkar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Please refer to http://www.aricent.com/legal/email_disclaimer.html for important disclosures regarding this electronic communication. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D