From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3DCD65F6C for ; Wed, 21 Mar 2018 15:27:52 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2018 07:27:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,340,1517904000"; d="scan'208";a="213360420" Received: from rhorton-mobl1.ger.corp.intel.com (HELO FC23.ir.intel.com) ([163.33.230.232]) by fmsmga006.fm.intel.com with ESMTP; 21 Mar 2018 07:27:49 -0700 From: Remy Horton To: dev@dpdk.org Cc: John McNamara , Wenzhuo Lu , Jingjing Wu , Qi Zhang , Beilei Xing , Shreyansh Jain , Thomas Monjalon Date: Wed, 21 Mar 2018 14:27:45 +0000 Message-Id: <20180321142749.27520-1-remy.horton@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: Message-ID: <20180307120851.5822-1-remy.horton@intel.com> Subject: [dpdk-dev] [PATCH v2 0/4] ethdev: add per-PMD tuning of RxTx parmeters 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, 21 Mar 2018 14:27:53 -0000 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 patchset allows individual PMDs to specify their preferred parameter values, and if so indicated by an application, for them to be used automatically by the ethdev layer. rte_eth_dev_configure() has been changed so that specifying zero for both nb_rx_q AND nb_tx_q causes it to use driver preferred values, and if these are not available, falls back to EAL defaults. Setting one (but not both) to zero does not cause the use of defaults, as having one of them zeroed is a valid setup. This RFC/V1 includes per-PMD values for e1000 and i40e but it is expected that subsequent patchsets will cover other PMDs. A deprecation notice covering the API/ABI change is in place. Changes in v2: * Rebased to * Removed fallback values from rte_eth_dev_info_get() * Added fallback values to rte_rte_[rt]x_queue_setup() * Added fallback values to rte_eth_dev_configure() * Corrected comment * Removed deprecation notice * Split RX and Tx into seperate structures * Changed parameter names Remy Horton (4): ethdev: add support for PMD-tuned Tx/Rx parameters net/e1000: add TxRx tuning parameters net/i40e: add TxRx tuning parameters testpmd: make use of per-PMD TxRx parameters app/test-pmd/testpmd.c | 5 ++-- doc/guides/rel_notes/deprecation.rst | 13 ----------- drivers/net/e1000/em_ethdev.c | 6 +++++ drivers/net/i40e/i40e_ethdev.c | 33 ++++++++++++++++++++++++--- lib/librte_ether/rte_ethdev.c | 44 ++++++++++++++++++++++++++++-------- lib/librte_ether/rte_ethdev.h | 23 +++++++++++++++++++ 6 files changed, 97 insertions(+), 27 deletions(-) -- 2.9.5