From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 83AA5CE7 for ; Thu, 17 Sep 2015 09:24:45 +0200 (CEST) Received: by wiclk2 with SMTP id lk2so14902298wic.1 for ; Thu, 17 Sep 2015 00:24:45 -0700 (PDT) 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=khv0omqLfwJQeFMfdOOILcSmXfD1R3BYqrRWXkYvVH8=; b=E0mPvtAendVbuNlh3zPWFg1o3Qe1nGmmv/o6rQPZo9Nd16fat37zxy+55N+BBsmqyq uP1B9rYLf70aNb4XobdM1dSTfyO/S3v7Zx5MzNeDTPuNEi8z3wotSz19YDBWWQXRD3c9 ArtpouCR1u1yrEYFVhc7ua6pL0SKw9+mjx7qJlrSOiGz5ZrUbWUhe2sxwUBSpWR9wPqs zGOOYGk+klNriJFDBiTwBoZBequ0KWWNkYFLJam8WttjWWmlFCuXpQNTP1BCNLs+rcAJ SaqWSw1ZVABF4oFPBHPjCiqCXwuLIQlhj8XZJEFCWRYHenOsxRKNezJwSz6DgasxlgbK LfJQ== X-Gm-Message-State: ALoCoQlEZi58/ZJfY2gIkNbZIclBxtxJdce/ZFDlaWQdDKCT4dAYCpYOTu34ezwsB4KmCYzIp9Vi X-Received: by 10.180.103.72 with SMTP id fu8mr27042827wib.7.1442474685299; Thu, 17 Sep 2015 00:24:45 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id az6sm8462087wib.12.2015.09.17.00.24.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 00:24:44 -0700 (PDT) From: Thomas Monjalon To: "De Lara Guarch, Pablo" Date: Thu, 17 Sep 2015 09:23:35 +0200 Message-ID: <1926548.3ArlD1O00b@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1442402465-20158-1-git-send-email-pablo.de.lara.guarch@intel.com> <2601191342CEEE43887BDE71AB97725836A870DF@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] 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: Thu, 17 Sep 2015 07:24:45 -0000 2015-09-16 21:22, De Lara Guarch, Pablo: > From: Ananyev, Konstantin > > Why not something like: > > ret = dev->dev_ops->tx_queue_start(dev, tx_queue_id); > > if (ret == 0) > > dev->data->tx_queue_state[tx_queue_id] = > > RTE_ETH_QUEUE_STATE_START; > > > > Same for dev_stop and RX. > > Then you hopefully wouldn't need to update each and every PMD, > > only rteh_ethdev* would be affected. > > Problem is that some PMDs call internally queue_start/stop, but not the generic rte_eth_rx_queue_start (stop and RX), > so in that case this would not update the state of the queue. Why not changing PMD to call rte_eth_rx_queue_start? Do you think it will be too much error prone for later updates?