From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [RFC PATCH v1 1/4] ethdev: add support for PMD-tuned Tx/Rx parameters Date: Wed, 14 Mar 2018 12:28:15 +0000 Message-ID: References: <20180307120851.5822-1-remy.horton@intel.com> <20180307120851.5822-2-remy.horton@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: Wenzhuo Lu , Jingjing Wu , Qi Zhang , Beilei Xing , Thomas Monjalon To: Remy Horton , "dev@dpdk.org" Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0052.outbound.protection.outlook.com [104.47.0.52]) by dpdk.org (Postfix) with ESMTP id 3233E5F30 for ; Wed, 14 Mar 2018 13:28:43 +0100 (CET) In-Reply-To: <20180307120851.5822-2-remy.horton@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Remy Horton [mailto:remy.horton@intel.com] > Sent: Wednesday, March 7, 2018 5:39 PM > To: dev@dpdk.org > Cc: Wenzhuo Lu ; Jingjing Wu > ; Qi Zhang ; Beilei Xing > ; Shreyansh Jain ; > Thomas Monjalon > Subject: [RFC PATCH v1 1/4] ethdev: add support for PMD-tuned Tx/Rx > parameters >=20 > The optimal values of several transmission & reception related > parameters, such as burst sizes, descriptor ring sizes, and number > of queues, varies between different network interface devices. This > patch allows individual PMDs to specify preferred parameter values. >=20 > Signed-off-by: Remy Horton > --- > lib/librte_ether/rte_ethdev.c | 18 ++++++++++++++++++ > lib/librte_ether/rte_ethdev.h | 15 +++++++++++++++ > 2 files changed, 33 insertions(+) >=20 > diff --git a/lib/librte_ether/rte_ethdev.c > b/lib/librte_ether/rte_ethdev.c > index 0590f0c..1630407 100644 > --- a/lib/librte_ether/rte_ethdev.c > +++ b/lib/librte_ether/rte_ethdev.c > @@ -1461,6 +1461,10 @@ rte_eth_rx_queue_setup(uint16_t port_id, > uint16_t rx_queue_id, > return -EINVAL; > } >=20 > + /* Use default specified by driver, if nb_rc_desc is zero */ ^^^^^^^^^^^ Should be '_rx_' > + if (nb_rx_desc =3D=3D 0) > + nb_rx_desc =3D dev_info.preferred_queue_values.rx_ring_size; > + > if (nb_rx_desc > dev_info.rx_desc_lim.nb_max || > nb_rx_desc < dev_info.rx_desc_lim.nb_min || > nb_rx_desc % dev_info.rx_desc_lim.nb_align !=3D 0) { > @@ -1584,6 +1588,10 @@ rte_eth_tx_queue_setup(uint16_t port_id, > uint16_t tx_queue_id, >=20 [...] Other than the above; Acked-by: Shreyansh Jain