From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 1/4] ethdev: add support for PMD-tuned Tx/Rx parameters Date: Fri, 30 Mar 2018 17:57:16 +0200 Message-ID: <24577040.56AkOZZsW2@xps> References: <20180321142749.27520-1-remy.horton@intel.com> <20180321142749.27520-2-remy.horton@intel.com> <1867154.rqMg12d5dS@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, John McNamara , Wenzhuo Lu , Jingjing Wu , Qi Zhang , Beilei Xing , Shreyansh Jain , ferruh.yigit@intel.com To: Remy Horton Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 9C701727F for ; Fri, 30 Mar 2018 17:57:54 +0200 (CEST) In-Reply-To: <1867154.rqMg12d5dS@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 30/03/2018 17:40, Thomas Monjalon: > I know that this patch is already applied, > but I have some comments below. > Please try to address them. > > 21/03/2018 15:27, Remy Horton: > > + /* If number of queues specified by application for both Rx and Tx is > > + * zero, use driver preferred values. This cannot be done individually > > + * as it is valid for either Tx or Rx (but not both) to be zero. > > + * If driver does not provide any preferred valued, fall back on > > + * EAL defaults. > > + */ > > The fallback could be set in rte_eth_dev_info_get() and call this function > instead of calling directly dev_ops->dev_infos_get. > It would require to never return -ENOTSUP. > > At least, some default values should be set in rte_eth_dev_info_get(). I see it has been discussed in v1. And it was decided to not have ethdev defaults in rte_eth_dev_info_get. > > @@ -1029,6 +1048,10 @@ struct rte_eth_dev_info { > > /** Configured number of rx/tx queues */ > > uint16_t nb_rx_queues; /**< Number of RX queues. */ > > uint16_t nb_tx_queues; /**< Number of TX queues. */ > > + > > + /** Tx/Rx parameter recommendations */ > > + struct rte_eth_dev_portconf default_rxportconf; > > + struct rte_eth_dev_portconf default_txportconf; > > Some formatting comments: > Usually, there is no blank line in structs. > The doxygen comment must apply to each field. > Have you checked what is the doxygen output?