From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B29C52C7A for ; Wed, 23 Sep 2015 13:49:36 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 23 Sep 2015 04:49:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,577,1437462000"; d="scan'208";a="811148879" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga002.fm.intel.com with ESMTP; 23 Sep 2015 04:49:34 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX154.ger.corp.intel.com (163.33.192.96) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 23 Sep 2015 12:49:34 +0100 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.252]) by IRSMSX156.ger.corp.intel.com ([169.254.3.133]) with mapi id 14.03.0248.002; Wed, 23 Sep 2015 12:49:34 +0100 From: "Ananyev, Konstantin" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] ethdev: add new RX/TX queue state arrays in rte_eth_dev_data Thread-Index: AQHQ8MnogHVSzob4mUu8y3qQl6WFbJ5KCfXw Date: Wed, 23 Sep 2015 11:49:33 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725836A9B901@irsmsx105.ger.corp.intel.com> References: <1442440284-6175-1-git-send-email-pablo.de.lara.guarch@intel.com> In-Reply-To: <1442440284-6175-1-git-send-email-pablo.de.lara.guarch@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] ethdev: add new RX/TX queue state arrays in rte_eth_dev_data 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 Sep 2015 11:49:37 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara > Sent: Wednesday, September 16, 2015 10:51 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2] ethdev: add new RX/TX queue state arrays i= n rte_eth_dev_data >=20 > Following the same approach taken with dev_started field > in rte_eth_dev_data structure, this patch adds two new fields > in it, rx_queue_state and tx_queue_state arrays, which track > which queues have been started and which not. >=20 > This is important to avoid trying to start/stop twice a queue, > which will result in undefined behaviour > (which may cause RX/TX disruption). >=20 > Mind that only the PMDs which have queue_start/stop functions > have been changed to update this field, as the functions will > check the queue state before switching it. >=20 > Signed-off-by: Pablo de Lara Acked-by: Konstantin Ananyev > ---