From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0094.outbound.protection.outlook.com [157.56.110.94]) by dpdk.org (Postfix) with ESMTP id A4FF847D0 for ; Fri, 22 Apr 2016 11:58:45 +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=8DalwqvimicgrbvvT8q/X4UvL4Dc9nGtDsfEB/yikGI=; b=l9X1W0CPmV2VI7bE3OGYe4uHrEo+LKWtFjXiGK3zZLM1piMGxys8AoQKluUJiTuQfnbkULwF8ncujYLgsT+IYvH1fuBH6g3iudrx91V9ModR1BuZlbeVp2CNkCA8aLrlxGFUKYdi4wQA7LNfKXSJFxgcYClplnMMJBoK2mHMVro= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from hp-mjc.semihalf.local (213.17.239.108) by DM2PR0701MB1034.namprd07.prod.outlook.com (10.160.25.142) with Microsoft SMTP Server (TLS) id 15.1.466.19; Fri, 22 Apr 2016 09:58:43 +0000 From: To: CC: , Maciej Czekaj Date: Fri, 22 Apr 2016 11:58:17 +0200 Message-ID: <1461319098-22632-3-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: HE1PR06CA0030.eurprd06.prod.outlook.com (10.162.181.168) To DM2PR0701MB1034.namprd07.prod.outlook.com (10.160.25.142) X-MS-Office365-Filtering-Correlation-Id: 496ec795-dcd1-441a-68b4-08d36a94b0a5 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0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kV8doxBI3Qbo2bA4w== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1034; 20:ecvCPVKCfBuHq9/w8/wGeMyOkLyhhavB6ycAu7Ts6xthSMquhUvKK6LnBUd6KqOqCoYOGamRYLa+fg5DZEIJxXS6FAf+ozmW/crBWlbvSOXbZV1v35OZ6p/JdEAtai0zUAzF8CMd+QG0OZ8fJwFgkM0rQ7tJE9kiAA1m3nQSWuUclkwoezlTQJgBBrpC3wIPF+LcZ33b9EK8SpLwx2oQWgLJNViQO5rF5sHu6tt2SQA/z7VgcSxVaT9MgOO/7Ila36LMXV/7yeJryqMq7fKQ9u982aomNjfSM2BuSrnCfyHbB10sFptHeYe8JQ477lUnHLqH9XLQr9dsEBil4w2/Vp7HL+lP4hk6i7HR9iRWn24YgMj8y+vfo32eqUQ7i5wTy+RZEAdDolu6R/fwPlStKSp/7cBu0aubco9XZBkqrCCKTpBhYx1hHA9dcm37nagYaQFPP2WLyu1hKTyhTpLYhvPlwBPTDcUKURlVLzuu1b+/OsYO8zWILXiP5V/tnUSRwTmnMwDBRUnwAWW2lznIO+eGOfmXAq+nUYa5rGkuBBEn+6M5r9lHCQHDDQoj2e9/2wDs2RpisqBKr8ZH/HnPLO6bUlpE3FVOkgsujcF2hhA= 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)(10201501046)(3002001); SRVR:DM2PR0701MB1034; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1034; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1034; 4:ceTOfznQlmsBes9dhePYDQVyQOaFmE8LLTjTHaAIlYz3PsiQGdxvXXIDA2KyAVX/SvUZUWomdUHK6z1hzNheNSE1ACnjQTH5OU3ggnzSrlSD8ZS5Uthfb6+Z4+DAMCpzQt3J/zUDNVlev+fJ0kPca4YXRWY1LVGNcYOG3swajlMazebU1v+UGssOIm5KoSRFad6NUHbfUtp5zsa9oW8YEmXjSZDyNIGDa6/ZbRiZgrQzHOPufY+3P/TzWtTmGQ2GvAw7zMG/BAK4tgx7azgZNXBiZzG/bLntfNDBDE9QJgg3nrQH5PTRYKqMZIZqKewVoGzDZgNQ+khWXyme2+kl229tWrj77cRbYnNLfEIPyuAUN/6q9LkmduBgXsWSIUpbwrd9Gas/5SaP0L6C/oQq3A== X-Forefront-PRVS: 0920602B08 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(1096002)(4001430100002)(2876002)(5003940100001)(6116002)(33646002)(3846002)(19580395003)(19580405001)(76176999)(586003)(50986999)(5008740100001)(107886002)(50466002)(189998001)(2906002)(48376002)(36756003)(110136002)(66066001)(5004730100002)(86362001)(42186005)(2950100001)(86152002)(2351001)(50226001)(229853001)(77096005)(47776003)(4326007)(81166005)(92566002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1034; H:hp-mjc.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1034; 23:EdjphxMZMhs8Zf2MxN/Lc6h2hOkt3r3zOCKalRU?= =?us-ascii?Q?qUOIynzAdDdAZsnO20t29XfRyoCCCpL8MztfE0TgWrEAiW23FGkZdu6RxAdA?= =?us-ascii?Q?DsCHTqvMjRo68Dy2SPCfwUwz0MFBvb3hoYux2q6teUYFozr9JVYJlruqEJxf?= =?us-ascii?Q?3HtSbCWnJtkAplLjsYWvK4Ak94M9teLDonqRK6vIWz0k+MOS3ZWzZIvfVSzT?= =?us-ascii?Q?8xWqhshYFArFJ0FKNpu3RUMKnij5We02mkGsmZ3p3VuQjMQOrh5YC9ZBgrh/?= =?us-ascii?Q?pSuV4MpoJZXcXut/nEYSvhQBo3lWa6DPRFlP8kP7FhDaT1v5NCSIG9TaGtJ1?= =?us-ascii?Q?E3fBZAblRHKoQTPM9j8uow7srQK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//asnPYmXIUgskjtcO2T0BM0+MW2ZuHzf6xDANUj8LaWyApSyvRnmS+Ip0JOi+D79UHA2BkHntIwcg=; 7:ungBsOtVrn1y4EJP9maB1mR8N8TUkKZZmYXsIWPsM9GC105g1EogPS9QrYCAM8p/G4XtORJxx3jedHfO5bSo95czzbZ6s5a43cIjNrNP3oEpFJUuF3fh4hxcsxoxhjU5VdAJ9uGcj4iPO9RCg5i6lLa9w6HOX0UKSJDrMPuY/gaVn3v0/bFdfqVCqjGqmmf6D+h6tyRZCC12HPmsL+4LHAept0RggTNH+2QxHHIJsqk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2016 09:58:43.0081 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1034 Subject: [dpdk-dev] [PATCH 2/3] app/testpmd: extend port config with 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 09:58:46 -0000 From: Maciej Czekaj "port config all scatter on|off" allows for controlling rxmode.enable_scatter in command line. Signed-off-by: Maciej Czekaj --- app/test-pmd/cmdline.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index c5b9479..929d19a 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -559,10 +559,10 @@ static void cmd_help_long_parsed(void *parsed_result, "port config all max-pkt-len (value)\n" " Set the max packet length.\n\n" - "port config all (crc-strip|rx-cksum|hw-vlan|hw-vlan-filter|" + "port config all (crc-strip|scatter|rx-cksum|hw-vlan|hw-vlan-filter|" "hw-vlan-strip|hw-vlan-extend|drop-en)" " (on|off)\n" - " Set crc-strip/rx-checksum/hardware-vlan/drop_en" + " Set crc-strip/scatter/rx-checksum/hardware-vlan/drop_en" " for ports.\n\n" "port config all rss (all|ip|tcp|udp|sctp|ether|none)\n" @@ -1410,6 +1410,15 @@ cmd_config_rx_mode_flag_parsed(void *parsed_result, printf("Unknown parameter\n"); return; } + } else if (!strcmp(res->name, "scatter")) { + if (!strcmp(res->value, "on")) + rx_mode.enable_scatter = 1; + else if (!strcmp(res->value, "off")) + rx_mode.enable_scatter = 0; + else { + printf("Unknown parameter\n"); + return; + } } else if (!strcmp(res->name, "rx-cksum")) { if (!strcmp(res->value, "on")) rx_mode.hw_ip_checksum = 1; @@ -1487,7 +1496,7 @@ cmdline_parse_token_string_t cmd_config_rx_mode_flag_all = TOKEN_STRING_INITIALIZER(struct cmd_config_rx_mode_flag, all, "all"); cmdline_parse_token_string_t cmd_config_rx_mode_flag_name = TOKEN_STRING_INITIALIZER(struct cmd_config_rx_mode_flag, name, - "crc-strip#rx-cksum#hw-vlan#" + "crc-strip#scatter#rx-cksum#hw-vlan#" "hw-vlan-filter#hw-vlan-strip#hw-vlan-extend"); cmdline_parse_token_string_t cmd_config_rx_mode_flag_value = TOKEN_STRING_INITIALIZER(struct cmd_config_rx_mode_flag, value, @@ -1496,7 +1505,7 @@ cmdline_parse_token_string_t cmd_config_rx_mode_flag_value = cmdline_parse_inst_t cmd_config_rx_mode_flag = { .f = cmd_config_rx_mode_flag_parsed, .data = NULL, - .help_str = "port config all crc-strip|rx-cksum|hw-vlan|" + .help_str = "port config all crc-strip|scatter|rx-cksum|hw-vlan|" "hw-vlan-filter|hw-vlan-strip|hw-vlan-extend on|off", .tokens = { (void *)&cmd_config_rx_mode_flag_port, -- 1.9.1