From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id DEEF78E9D for ; Wed, 4 Nov 2015 17:54:27 +0100 (CET) Received: by wmll128 with SMTP id l128so119479660wml.0 for ; Wed, 04 Nov 2015 08:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=xxy8vWSRWoeiNB7wrgdw/aLF2LKRIkGNWV0GOUuNuhg=; b=quwl8a+ZWfdrj956a1fiTTmYslCtRzs0zN9C82NXEKaUuU/euxPMkiyzlUHIDSq/DO PeSjEr6M2DFJwEEtzksAg1jSTKQOrPKt+ndiuMM0r5JNGh1kAT2RHhW/61yCC8VQLX9N SY4EGu6PLIf49qQhsQWzvAlywlJTeFRfw36wdTCGaqsDeChYhVKY8KiQw0mqGHmlLZEF KktBZB9Dupt5Kfq1qGKDXoT6bnsV8AuZXq23ysyxj8DmXQVkmhlJYE5/iGj+Djq+rsc9 ln9vD2r/17MOXZ+aW98+k8cpKH37u2C0A+d/AuhCnF08GWhrDiFEY7/TbSVwGITyfLrY XFvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=xxy8vWSRWoeiNB7wrgdw/aLF2LKRIkGNWV0GOUuNuhg=; b=Hl+n+kNrYFhco96LRDbJ/i7rKetsgAAfwy6dKs+a5yklD9E47Pf4Sa8dFJlsdP+u0P m5eKDG+8cSZJ3Vp1Gs/dEGI4D6qc0b2JYgnj4i+xE8BWy2IbUor+zN9UFfQ/KNe8eH+U GZEfZZv009g9xeS06hVYq4AZRG2kK1/hd3bHsDdyyCcJbW/Ulm4womV5CBOUUlflqtNm 5F4voVhrPGw9wnhxta9Xj8I7V5YvgD2kM7NNKE80ci9zZ9DHMnD92/yzhJJhoql2NEYO /pV4rejR3PSOF+u1fZyEMYMXrY5bHqUraHof/G2fj1/meV+LaENqfNbnEvI96RwlM6Z9 OwsA== X-Gm-Message-State: ALoCoQlooJfUhTk3lX5RtVgviZIcGf0y4/MfLEjeoSQZ2ZDXbbYOWMOg7rr8bEB3KzAWv+w+84NV X-Received: by 10.28.215.205 with SMTP id o196mr4774231wmg.95.1446656067724; Wed, 04 Nov 2015 08:54:27 -0800 (PST) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id d22sm29605697wma.21.2015.11.04.08.54.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Nov 2015 08:54:27 -0800 (PST) From: Thomas Monjalon To: "De Lara Guarch, Pablo" Date: Wed, 04 Nov 2015 17:53:15 +0100 Message-ID: <4777980.MR7QEg9ZTP@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <2601191342CEEE43887BDE71AB97725836A9B901@irsmsx105.ger.corp.intel.com> References: <1442440284-6175-1-git-send-email-pablo.de.lara.guarch@intel.com> <2601191342CEEE43887BDE71AB97725836A9B901@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org 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, 04 Nov 2015 16:54:28 -0000 > > 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. > > > > This is important to avoid trying to start/stop twice a queue, > > which will result in undefined behaviour > > (which may cause RX/TX disruption). > > > > 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. > > > > Signed-off-by: Pablo de Lara > > Acked-by: Konstantin Ananyev Applied, thanks