From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0074.outbound.protection.outlook.com [207.46.100.74]) by dpdk.org (Postfix) with ESMTP id D0FB22BA8 for ; Fri, 22 Apr 2016 16:51:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VPFzWENJHDM5fU96twNJf+kvW+L94JTAuL0jETyNBas=; b=L61gslIQDgdfSHvgn4rDOQFOpATCUTSxYWy7CPpNLFGIx5jIjq7V6LuDkfqB4RuM7PpqRZ7TNJ6X8N70NJQAM4MQkBGbkSLSI5IpHl1V4nnctFU14D7D/R683HxGSP0Lbb6CFfbycA3psaMaQjFwcv+7jP43IybLI5SmCGUDHf4= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from hp-mjc.semihalf.local (213.17.239.108) by DM2PR0701MB1033.namprd07.prod.outlook.com (10.160.25.141) with Microsoft SMTP Server (TLS) id 15.1.466.19; Fri, 22 Apr 2016 14:51:51 +0000 From: To: CC: , , Maciej Czekaj Date: Fri, 22 Apr 2016 16:51:18 +0200 Message-ID: <1461336680-7581-2-git-send-email-maciej.czekaj@caviumnetworks.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461319098-22632-1-git-send-email-maciej.czekaj@caviumnetworks.com> References: <1461319098-22632-1-git-send-email-maciej.czekaj@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [213.17.239.108] X-ClientProxiedBy: HE1PR02CA0059.eurprd02.prod.outlook.com (10.163.170.27) To DM2PR0701MB1033.namprd07.prod.outlook.com (10.160.25.141) X-MS-Office365-Filtering-Correlation-Id: 929458ff-7289-43e2-3d72-08d36abda482 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701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07OeLd5hoAJnYM/NWx9HXmRtcio9EARC6C2cOmn3LKiLhaUe3zKPHx5a9h3zO6EDgmlsrjGA9Gdr8UESSHazfiURqykt/abk6WlyrlbtmpJfeV9T/y0jx8/Ojg7I9m85MqBgjb/lOOlqjA2s4OF3mXrU27dDwe/pbTO6ycavTeAQ5BuKG9J6Sz62cLVZcrK3F4u2YxEDEiiL1VO4BTZnhI87ucPRYIcDJiJixVdAu6C+nBTBabq/bGe6X8oesHW8WFMqLloAJCpoXR/VXFocw5TWRG+MQf4+8YzJV6tL1Bonmf6viEetwNGOiUYFH/Zkom8m8KSLwjJDcdY2ana8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(9101521026)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:DM2PR0701MB1033; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1033; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1033; 4:VfyF2A7iZ25EogOU4tBSVs8myQ68y4IKfw6GNKnV1zmG0cOcNIEKeyBQ8Ltl8Z7R6KA+P9ywHATnrPOFyahhamg0io17Um238sBYPO2/HEnM9R35MXHTVon2Ypyq5oygNzEYddVtJ6HNPpzqwJZSj6vpaX/GT6UqHOkafbIi0MZN8C2ypBboO3h+ByKL0yEd4wDazr+Y3DUf5YNDHE9NM8VhgE4w2sQ2D0apZL9ngyS5allM+w3bgu+15ZEbuOdjWWbabqJUQ4QiCy9ONNtoU8RqkS3P4Wq/ieJEdwADjrL+gBKFLwmMIiBEBSKz6I3fHfW6eB5eli+AQCDOPqgTi9cjEAREEqiWN9PTCdCBmUXGNUTMHLIhxhPZSL2dmF8Jsbw53UNTd+Nl+P/9P+ZGwQ== X-Forefront-PRVS: 0920602B08 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(42186005)(6116002)(3846002)(5004730100002)(4326007)(86152002)(48376002)(19580395003)(19580405001)(586003)(50226001)(2876002)(36756003)(1096002)(5008740100001)(86362001)(2950100001)(50986999)(229853001)(50466002)(189998001)(2351001)(5003940100001)(76176999)(107886002)(92566002)(81166005)(77096005)(2906002)(47776003)(110136002)(4001430100002)(66066001)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1033; H:hp-mjc.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1033; 23:EbuButb9xBgHROmJcme+X6RL7UglXFRUFIu29p8?= =?us-ascii?Q?fdY9rgFEp9AxAHASCOCsqwuaPIPCRTcQ3hkUMpiukcaGj10tCmaIJVwNDF+Z?= =?us-ascii?Q?e0DAreYRcLKRtrZ85WtokP75se9jmOTl59aAVFMNGCQu1nIjmlWKn8CTZGPo?= =?us-ascii?Q?FoshGcO3TTjXjQ1nltvrNasBw9CErHiKb+9XdaDi0wb6hewxkqb1ZyCpJnbB?= =?us-ascii?Q?OAfaxIVlEsHkwvB6Ol1xD9br1z+NS5CC01iK8sOSedKEJsIOpOZOhTgYFIMc?= =?us-ascii?Q?vuLZO3DUfHDODszrua25L0Z9ZcVr4YGrqY/tJk2qIg4Zi2l7lBFs9o2Vl/0S?= =?us-ascii?Q?kO6kWdwz1rCBrXREhgJjLpR7MyeH0WvnHfUaOUCtvd3JQSjFVkcwgS2Cy8yt?= =?us-ascii?Q?jPMDUcI398gowrV4HCjV3fT58X60kZTHdMgtyaZccjv+EFeOVqvVDaYcsUl6?= =?us-ascii?Q?+aAzJp8i7uU1URaBE9TNjIOaT5H7YXTNsF4OGIEs3s2sc0vKW/F+AwlXsM9b?= =?us-ascii?Q?wRsaEdemxB6I8DrHBN0exxM/9bO91xmYyuTx/PJk737Qr3Cz+6tws0d5cz9O?= =?us-ascii?Q?h7lFxGUz0g9Fqg5UYYOzCm6jGNcyhClKNhiOLQMrDurLU+xu53a0xp1+wRjA?= =?us-ascii?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SPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2016 14:51:51.8233 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1033 Subject: [dpdk-dev] [PATCH v2 1/3] app/testpmd: add "enable-scatter" parameter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2016 14:51:54 -0000 From: Maciej Czekaj This parameter allows for controlling rxmode.enable_scatter which in turn allow for multi-segment packet receive tests. Signed-off-by: Maciej Czekaj --- app/test-pmd/parameters.c | 3 +++ doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 55572eb..8792c2c 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -526,6 +526,7 @@ launch_args_parse(int argc, char** argv) { "pkt-filter-drop-queue", 1, 0, 0 }, { "crc-strip", 0, 0, 0 }, { "enable-rx-cksum", 0, 0, 0 }, + { "enable-scatter", 0, 0, 0 }, { "disable-hw-vlan", 0, 0, 0 }, { "disable-hw-vlan-filter", 0, 0, 0 }, { "disable-hw-vlan-strip", 0, 0, 0 }, @@ -764,6 +765,8 @@ launch_args_parse(int argc, char** argv) } if (!strcmp(lgopts[opt_idx].name, "crc-strip")) rx_mode.hw_strip_crc = 1; + if (!strcmp(lgopts[opt_idx].name, "enable-scatter")) + rx_mode.enable_scatter = 1; if (!strcmp(lgopts[opt_idx].name, "enable-rx-cksum")) rx_mode.hw_ip_checksum = 1; diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index f605564..8fb0651 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -289,6 +289,10 @@ The commandline options are: Enable hardware RX checksum offload. +* ``--enable-scatter`` + + Enable scatter (multi-segment) RX. + * ``--disable-hw-vlan`` Disable hardware VLAN. -- 1.9.1