From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shahaf Shuler Subject: [PATCH 4/5] app/testpmd: add command line option for mbuf fast free Date: Thu, 23 Nov 2017 14:08:03 +0200 Message-ID: <20171123120804.143897-5-shahafs@mellanox.com> References: <20171123120804.143897-1-shahafs@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: dev@dpdk.org To: jingjing.wu@intel.com Return-path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0059.outbound.protection.outlook.com [104.47.2.59]) by dpdk.org (Postfix) with ESMTP id 20F302B9E for ; Thu, 23 Nov 2017 13:08:31 +0100 (CET) In-Reply-To: <20171123120804.143897-1-shahafs@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch enables mbuf fast free Tx offloads from the command line. Signed-off-by: Shahaf Shuler --- app/test-pmd/parameters.c | 5 +++++ doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 8a68a39ea..cc18cb767 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -216,6 +216,8 @@ usage(char* progname) "requests flow API isolated mode on all ports at initialization time.\n"); printf(" --enable-multiseg: " "enables multi segment send Tx offload on all ports.\n"); + printf(" --enable-fast-free: " + "enables mbuf fast free Tx offload on all ports.\n"); } #ifdef RTE_LIBRTE_CMDLINE @@ -647,6 +649,7 @@ launch_args_parse(int argc, char** argv) { "print-event", 1, 0, 0 }, { "mask-event", 1, 0, 0 }, { "enable-multiseg", 0, 0, 0 }, + { "enable-fast-free", 0, 0, 0 }, { 0, 0, 0, 0 }, }; @@ -1122,6 +1125,8 @@ launch_args_parse(int argc, char** argv) } if (!strcmp(lgopts[opt_idx].name, "enable-multiseg")) tx_offloads |= DEV_TX_OFFLOAD_MULTI_SEGS; + if (!strcmp(lgopts[opt_idx].name, "enable-fast-free")) + tx_offloads |= DEV_TX_OFFLOAD_MBUF_FAST_FREE; break; case 'h': diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index b21a1fe8a..1311cce41 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -501,3 +501,7 @@ The commandline options are: * ``--enable-multiseg`` Enables multi segment send Tx offload on all ports. + +* ``--enable-fast-free`` + + Enables mbuf fast free Tx offload on all ports. -- 2.12.0