From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v2 4/4] testpmd: make use of per-PMD TxRx parameters Date: Wed, 28 Mar 2018 07:18:53 +0000 Message-ID: References: <20180321142749.27520-1-remy.horton@intel.com> <20180321142749.27520-5-remy.horton@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: John McNamara , Wenzhuo Lu , Jingjing Wu , Qi Zhang , Beilei Xing , Thomas Monjalon To: Remy Horton , "dev@dpdk.org" Return-path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50046.outbound.protection.outlook.com [40.107.5.46]) by dpdk.org (Postfix) with ESMTP id 234DB5F21 for ; Wed, 28 Mar 2018 09:19:14 +0200 (CEST) In-Reply-To: <20180321142749.27520-5-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" Hello Remy, > -----Original Message----- > From: Remy Horton [mailto:remy.horton@intel.com] > Sent: Wednesday, March 21, 2018 7:58 PM > To: dev@dpdk.org > Cc: John McNamara ; Wenzhuo Lu > ; Jingjing Wu ; Qi Zhang > ; Beilei Xing ; Shreyansh > Jain ; Thomas Monjalon > Subject: [PATCH v2 4/4] testpmd: make use of per-PMD TxRx 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 testpmd to make use of per-PMD tuned parameter values. >=20 > Signed-off-by: Remy Horton > --- > app/test-pmd/testpmd.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index 4c0e258..82eb197 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -210,9 +210,10 @@ queueid_t nb_txq =3D 1; /**< Number of TX queues per > port. */ >=20 > /* > * Configurable number of RX/TX ring descriptors. > + * Defaults are supplied by drivers via ethdev. > */ > -#define RTE_TEST_RX_DESC_DEFAULT 1024 > -#define RTE_TEST_TX_DESC_DEFAULT 1024 > +#define RTE_TEST_RX_DESC_DEFAULT 0 > +#define RTE_TEST_TX_DESC_DEFAULT 0 > uint16_t nb_rxd =3D RTE_TEST_RX_DESC_DEFAULT; /**< Number of RX > descriptors. */ > uint16_t nb_txd =3D RTE_TEST_TX_DESC_DEFAULT; /**< Number of TX > descriptors. */ Can the change for burst size too be accommodated in this patch? I looked through them and they might not be as trivial as the change above = - but if that is incorporated in this, it might serve as example for other = applications. Or, I am also OK sending a separate patch for that change (maybe for iofwd = case, at least) Either way: Acked-by: Shreyansh Jain