From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YFir0HELSkOG1EpDbn+lmoIa0wiD2blW4aCixaSig7g=; b=DV6bcn4aJ5YPDUf7l8K4/7F6e4fLko4tdZX4vj1GKOX1Df1w2zWuwGB4HsGGsG7fdanIlYqLB4hIX6yPuGiTn83ZPVyT8GTJev9ZYd5/IJw8bC71h9IqJms5t5Evqw8sUBfxfnjdhHIr0dG05RSMq2qGiH272Lnn+uoEEMx735Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (82.166.227.17) by DB6PR05MB3144.eurprd05.prod.outlook.com (2603:10a6:6:1a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Thu, 23 Nov 2017 12:08:29 +0000 From: Shahaf Shuler To: jingjing.wu@intel.com Cc: dev@dpdk.org Date: Thu, 23 Nov 2017 14:08:03 +0200 Message-Id: <20171123120804.143897-5-shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171123120804.143897-1-shahafs@mellanox.com> References: <20171123120804.143897-1-shahafs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: AM5PR0601CA0033.eurprd06.prod.outlook.com (2603:10a6:203:68::19) To DB6PR05MB3144.eurprd05.prod.outlook.com (2603:10a6:6:1a::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c5db69e6-c0af-4f1e-9cd4-08d5326ae921 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600025)(4604075)(2017052603258); SRVR:DB6PR05MB3144; X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3144; 3:LU/Jlqth5XbepIaU4EceYnhKfmfOolFJpPncL8sm0a/qI+2R1Kb+gSClwVYD+tjWz9CTnk74vCJi3szrS/nhf7KL+4ya7JMgKUP17vgAHHvA9rLYQ+NCYkKX96HD6WFzT4uLxWFRc0MiUZekzqH2+OV7dwVU0AW7/rKyiQ/Euh3+BSpHdUkJ5cdA1IU6l/J5f094QbUh4URqKYlVj+rFs4oaEvPfq0Um7gUckhm9z/AjOHBUiudqrpTU+7vZfhWN; 25:ZDOtKfhkUoqBXO8OJdPrq+V2YiFWmhI6wA91W5l11gvdFIvitdoWYOCEVg94xWaDdGB//TcOmXF+cYFX2/uSZOKLcysdrhQZJ+Mu5rLAm0csI6bKp9LNQYVpn9a0x/0mgW59CGehfiKk0Nndt+1WDjt6VNmdZ5DrO1dGeA2E9DYk5Kzr1uDLMdHPRRnxdi/6cR6FcK1hiQ27K2FD/ZbH2YZdy/lkHBAAn69YBzG4eP/8gekp8Ej/AhclCAf51KUqg4HGYEyfmPjkCMmgDRJieRuGsIOgDUvdboibo5ouxH0c1qAAaj5d2FdWhSnA9qt8NUghOhZD7+pedFnbiGSniA==; 31:t+s5zmYEgfw19uuYSexyJifR4TMXcwq1U8uDTQPO/Pwt0ikQhBqpW+Z/9DlEaY3SSagoEgraPOdK5jylL1Ys6FIoVbLaZnOPlj/wzzVvpbFxjKztv4rJbocV4U9JZ7Ofge9cUAq7OQl0iaN4vIHJ9KlzrxGlHUiRcV7G+rQlkwWhkoSeA6hDGsQ3zjHcnoDrhS+SZIQ+4VKKB4zMmVH12/mflgPYTFzqJ2/4DEFVK4w= X-MS-TrafficTypeDiagnostic: DB6PR05MB3144: X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3144; 20:4UY0YE7h6+XAP6IKZMjb9d/hX+yzeIk0b+94xuH13yn1SbkY8vriUmW9AihvbcSHDYZWVxLD1POvVYa+5VP6C+ibDzbkrrdbCeN9zkXifeV6XqwquZwo8XOVhvInGiMsn7srYMrqan12NIHWETSRxxk/eTHwhD+6fKkrd4m0snqYqlf/jb1EOsBIuAD2ZMzpEZeDY/nXoEQH7tqwS3I52QRQf6sFNug/zZTMKOmQJ4sL8t4t/xr+UADLmw/4bWHCrZY2ZWPbmuaY0cFj0/ex403ok211elYWQlSkVHx5e0BS7eghGLMKgcF7AL8myD1TErRgiIc6kSZKv4VmkdFYPfGrsOH9TGFjCTzFPiQ/TAaQ2lWw5fU8LlJyBGpgM9rSwiAerLcydgbJ8qr+QHO2K4e+36BLf6JjlRBmw3intTwNoIOPk+MlSXYNtTketIhMKvpRlSzzG/OkIEwjfgWy130NE2eEYfu19qG8O3gQ7/htSvDIchAqjNlFYWXUTzAv; 4:fx+tqw4X5Ao6s5vaIBcoPfwuAcdAj+15+7Z0wcljcRDO/5zg0+4UL6OzeHwMUHPZ2947M7r6BYmycfFYDBY81xuQ6CSRZw44TLDjJzPKp2fwhB2dWtKYpkhr/5dZo8PZRQ5rK/rZ5YvagrL3VNg0DHDMRdJb1y+Nxa/F1gbz3GEzKfs23LnFW+OqA9TmKZBV8AcauJLG+ZIv+d9cNwKeNUvYnTtBZPXZnyEmlNoGXGr9RhZlb/+dYB+HkmUGL+nHr6soRRH+oaT1Vz69O4A6bQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3231022)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR05MB3144; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR05MB3144; X-Forefront-PRVS: 05009853EF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(346002)(366004)(376002)(199003)(189002)(6666003)(478600001)(8936002)(2361001)(50226002)(4326008)(106356001)(50986999)(76176999)(2351001)(33646002)(68736007)(5660300001)(189998001)(101416001)(36756003)(48376002)(6916009)(2950100002)(21086003)(50466002)(105586002)(16586007)(33026002)(25786009)(86362001)(66066001)(97736004)(2906002)(316002)(53936002)(47776003)(5003940100001)(16526018)(69596002)(55016002)(1076002)(6116002)(7736002)(3846002)(52116002)(305945005)(81156014)(81166006)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB3144; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR05MB3144; 23:vsaWMOMTtnprbaiaFkp+kqB23EtUcTYgfjId4tWrB?= =?us-ascii?Q?9Py9+xtadcFop6oIMjsdohtfxNp/f9NXsBF21iozlXBewjs4ZXgap1p1NHD7?= =?us-ascii?Q?oEX1artUxj/k3oav/RIH/KWuUvVRwtCBq0fz11IArMYJZ59XhNn2FVYjcDd/?= =?us-ascii?Q?c2TQZjZPERa0tzj2uRAe9xDT8LE0vNwTGe8KtMnAb7OibeBzQBsIp2AIwzV9?= =?us-ascii?Q?a5OYVO+VQfwDj2OMXmsiIXCO45lP+M9Nb8kH+Yzr4Fl8AZZyV6J9XBwg9uUG?= =?us-ascii?Q?dn71RNwAZG437U92Ds0VtvsjbFRR3bhvtI9T94T/jnQehbmEq+FW0dZWfKV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microsoft-Exchange-Diagnostics: 1; DB6PR05MB3144; 6:tKs+byU/pU9IuF4dG9Y4XsnUy+4tqjJHZOusqNRKQk7MbBdQpO0xGzsQ4lPFxBxTl2ZKZqLevZ3CI5axDKipOnpdpPAh2XoqG2Tr8P67+ODyEhOZ48P+V9F5dFeLfOazhi7gxiXOD+l9QKp2RHola3EcDHSjwPt7Y3lieVOKmPeIpkbyXKTGPdxVJoFwhp4BV3DBhVrLw92+mbPP0yNO/b3RAmPOZDnifHjAQLyGtTX5DfGoExCGig45JsTucO6ipagdE/zcYsqYC+gUqMbwS6yTRQk5vGRBWKzmjjf+iRUdaDV7pTh0MSOIP8x6iOrdyZHRZlsbd6rBEBNXf0pAFD6f+Zx36fAmhN0tV8kxkmc=; 5:zCufw7U3m04JWRJDZmICGLFHbajjT0ANQ7Ak/u5oue9RxnJ5rFgWv3VWJf2F4cpKn+y3vCSoiOjzMs43cVqheO0HkPxstKdsSo8wgmH+fwYeljAJd/gTjyfU6Fsdz+apODgFplnPcnDeqIZ71TAq/kEUCALz97Cuv99purRqcfo=; 24:UHok+owYYHETEk2LDW8/Fm7gWAGswVvC6jPK0Ml1CmOaZwlgAr9vKtnsh4606xHd0XWWboKf2oKa4kInTtp4q2jhWyjsKJoVUMoP7boee8s=; 7:ePlrlwE0E6/CtKuAxw9JJXHtw6CvKJZSVywlzXkyZpfJpyS4TYnBbuGJ/6b3aDu/9mFTsem4ogXQBngZq3G5mrWeWcUqMd53ZXFMAOH1OqhuFwJ5E7WLUK3PfYhrryOBtKFq4MWkaw9RpBZLppPDU6W0HXyymDvBlB/swoe7l2oUMa+dowr0DpZOio0/DU9PXKktiiqNrezd5Yv9u92ZKfRocZxjAlHcwCVi/glCOQeKuGvMZYl9otEvPXPpL7XT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2017 12:08:29.7478 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c5db69e6-c0af-4f1e-9cd4-08d5326ae921 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3144 Subject: [dpdk-dev] [PATCH 4/5] app/testpmd: add command line option for mbuf fast free 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: Thu, 23 Nov 2017 12:08:31 -0000 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