From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCHv4 1/5] ethdev: add new API to retrieve RX/TX queue information Date: Wed, 22 Jul 2015 12:48:02 -0700 Message-ID: <20150722124802.6a0f4745@urahara> References: <1437589735-30041-1-git-send-email-konstantin.ananyev@intel.com> <1437589735-30041-2-git-send-email-konstantin.ananyev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Konstantin Ananyev Return-path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by dpdk.org (Postfix) with ESMTP id C7F175921 for ; Wed, 22 Jul 2015 21:47:53 +0200 (CEST) Received: by pabkd10 with SMTP id kd10so71520485pab.2 for ; Wed, 22 Jul 2015 12:47:52 -0700 (PDT) In-Reply-To: <1437589735-30041-2-git-send-email-konstantin.ananyev@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 22 Jul 2015 19:28:51 +0100 Konstantin Ananyev wrote: > Add the ability for the upper layer to query RX/TX queue information. > > Add new structures: > struct rte_eth_rxq_info > struct rte_eth_txq_info > > new functions: > rte_eth_rx_queue_info_get > rte_eth_tx_queue_info_get > > into rte_etdev API. > > Left extra free space in the queue info structures, > so extra fields could be added later without ABI breakage. > > v2 changes: > - Add formal check for the qinfo input parameter. > - As suggested rename 'rx_qinfo/tx_qinfo' to 'rxq_info/txq_info' > > v3 changes: > - Updated rte_ether_version.map > - Merged with latest changes > > v4 changes: > - rte_ether_version.map: move new functions into DPDK_2.1 sub-space. > > Signed-off-by: Konstantin Ananyev Since all this data should be rxconf already, Is it possible to do a generic version of this and not have to change every driver. You only handled the Intel hardware drivers. But there also all the virtual drivers, other vendors etc.