From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D63A81BB7A for ; Wed, 4 Apr 2018 20:59:59 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2018 11:56:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,407,1517904000"; d="scan'208";a="44917456" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga001.jf.intel.com with ESMTP; 04 Apr 2018 11:56:23 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.155]) by IRSMSX152.ger.corp.intel.com ([169.254.6.128]) with mapi id 14.03.0319.002; Wed, 4 Apr 2018 19:56:22 +0100 From: "De Lara Guarch, Pablo" To: "Horton, Remy" , "dev@dpdk.org" CC: "Mcnamara, John" , "Lu, Wenzhuo" , "Wu, Jingjing" , "Zhang, Qi Z" , "Xing, Beilei" , "Shreyansh Jain" , Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v3 1/4] ethdev: add support for PMD-tuned Tx/Rx parameters Thread-Index: AQHTzDjtrZUpCRKZTEa57R8P1jqznKPw9HIg Date: Wed, 4 Apr 2018 18:56:21 +0000 Message-ID: References: <20180404171740.5084-1-remy.horton@intel.com> <20180404171740.5084-2-remy.horton@intel.com> In-Reply-To: <20180404171740.5084-2-remy.horton@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmEyODY4YjMtYTYzZi00ODE5LWJjODYtNGM4YTA3OWRhNzQ0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlZUTzVyMGZXWXkyM1ZBUllzc2VjNUxFTjFxbEtjNTBFYTNlVjlGQ2lyWXM9In0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 1/4] ethdev: add support for PMD-tuned Tx/Rx parameters X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2018 19:00:00 -0000 Hi Remy, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Remy Horton > Sent: Wednesday, April 4, 2018 6:18 PM > To: dev@dpdk.org > Cc: Mcnamara, John ; Lu, Wenzhuo > ; Wu, Jingjing ; Zhang, Qi Z > ; Xing, Beilei ; Shreyansh J= ain > ; Thomas Monjalon > Subject: [dpdk-dev] [PATCH v3 1/4] ethdev: add support for PMD-tuned Tx/R= x > parameters >=20 > The optimal values of several transmission & reception related parameters= , such > as burst sizes, descriptor ring sizes, and number of queues, varies betwe= en > different network interface devices. This patch allows individual PMDs to= specify > preferred parameter values. >=20 > Signed-off-by: Remy Horton > --- > doc/guides/rel_notes/deprecation.rst | 13 ---------- > doc/guides/rel_notes/release_18_05.rst | 5 ++++ > lib/librte_ether/rte_ethdev.c | 44 +++++++++++++++++++++++++++-= ------ > lib/librte_ether/rte_ethdev.h | 25 +++++++++++++++++++ > 4 files changed, 65 insertions(+), 22 deletions(-) >=20 > diff --git a/doc/guides/rel_notes/deprecation.rst > b/doc/guides/rel_notes/deprecation.rst > index 0c696f7..920df6b 100644 > --- a/doc/guides/rel_notes/deprecation.rst > +++ b/doc/guides/rel_notes/deprecation.rst > @@ -115,19 +115,6 @@ Deprecation Notices > The new API add rss_level field to ``rte_eth_rss_conf`` to enable a ch= oice > of RSS hash calculation on outer or inner header of tunneled packet. >=20 > -* ethdev: Currently, if the rte_eth_rx_burst() function returns a valu= e less > - than *nb_pkts*, the application will assume that no more packets are p= resent. > - Some of the hw queue based hardware can only support smaller burst for= RX > - and TX and thus break the expectation of the rx_burst API. Similar is = the > - case for TX burst as well as ring sizes. ``rte_eth_dev_info`` will be = added > - with following new parameters so as to support semantics for drivers t= o > - define a preferred size for Rx/Tx burst and rings. > - > - - Member ``struct preferred_size`` would be added to enclose all prefe= rred > - size to be fetched from driver/implementation. > - - Members ``uint16_t rx_burst``, ``uint16_t tx_burst``, ``uint16_t rx= _ring``, > - and ``uint16_t tx_ring`` would be added to ``struct preferred_size``= . > - > * ethdev: A work is being planned for 18.05 to expose VF port represento= rs > as a mean to perform control and data path operation on the different = VFs. > As VF representor is an ethdev port, new fields are needed in order to= map diff API and ABI changes should be documented in release notes. Thanks, Pablo