From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50050.outbound.protection.outlook.com [40.107.5.50]) by dpdk.org (Postfix) with ESMTP id 382101DBF for ; Tue, 26 Dec 2017 13:57:43 +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=IhQlKPAqyxfZNSUIVLjEojNwK/SRljRQ5Boh+2+xUfM=; b=BjF6ZFMyBqCEySVVeb6sEZSqNNJM+dw+a86+f6un5vJ24W2NeA0dOdDl+/k29Y+2ZcV7lM2dDMsRQ4+e9IUUVYpoSheOBhF2S2R1gLTMX3SshXu+RNQEofYgN1Vl6LQUV5knYfHA/m91zRNaWk4bYvm1wgkExcqDYEynirHXppY= Received: from VI1PR0502MB4079.eurprd05.prod.outlook.com (52.134.19.16) by VI1PR0502MB4079.eurprd05.prod.outlook.com (52.134.19.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Tue, 26 Dec 2017 12:57:41 +0000 Received: from VI1PR0502MB4079.eurprd05.prod.outlook.com ([fe80::e1af:fb62:751:707d]) by VI1PR0502MB4079.eurprd05.prod.outlook.com ([fe80::e1af:fb62:751:707d%13]) with mapi id 15.20.0345.017; Tue, 26 Dec 2017 12:57:41 +0000 From: "Xueming(Steven) Li" To: Olivier MATZ CC: Adrien Mazarguil , "dev@dpdk.org" Thread-Topic: [PATCH v2] lib/cmdline: init CLI parsing memory Thread-Index: AQHTcQP3OGyCyrp0SEyWXy35AU/g9aNDAGKAgBKtrnA= Date: Tue, 26 Dec 2017 12:57:41 +0000 Message-ID: References: <20171115155402.9967-1-xuemingl@mellanox.com> <20171209153923.19958-1-xuemingl@mellanox.com> <20171214153543.2d2ydissujk55cng@platinum> In-Reply-To: <20171214153543.2d2ydissujk55cng@platinum> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [114.83.161.171] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0502MB4079; 7:AblNfLhmU+p2uH7rJe39YrYeD3RWtzCPG7vhR3gp5JM7b7SOxPsaMZlhzxf1K7eJf6HbUPqUuw07mDkVwybi2K4QaJytIEZUZAEBeQE5lBXMZMyYx3oDAxcRg4xJVKtMGMT6zIpz5AfsBX07aSh8BOrPL+0xBEvV6W495Dpdpf4wWP0bWEr0ZGGEXk8kOnBIGfAF6WoxCwagAMySoaPj6wOq211HggGt1Kg6iOOBk/rTQ71/VryJsJg7x5cVmcRr x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 8eabc205-5e3f-46f1-a681-08d54c604025 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603307)(7153060); SRVR:VI1PR0502MB4079; x-ms-traffictypediagnostic: VI1PR0502MB4079: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944501075)(6055026)(6041268)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:VI1PR0502MB4079; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0502MB4079; x-forefront-prvs: 053315510E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(376002)(39860400002)(366004)(346002)(24454002)(189003)(13464003)(199004)(25786009)(33656002)(4326008)(5660300001)(68736007)(2906002)(53936002)(6246003)(66066001)(8936002)(6436002)(229853002)(2900100001)(5250100002)(55016002)(2950100002)(6916009)(305945005)(3280700002)(3660700001)(7736002)(74316002)(106356001)(105586002)(8676002)(59450400001)(6116002)(86362001)(3846002)(97736004)(76176011)(316002)(478600001)(81166006)(14454004)(53546011)(81156014)(7696005)(9686003)(54906003)(6506007)(99286004)(102836004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB4079; H:VI1PR0502MB4079.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: QXbYaGTKnntHsxRQx4nTZQKVIyutaTsYFHJkBWp1n5oU/vlOyj41oXQDSxeTbluKN0DN39WsPPo+47QzvwwvYA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8eabc205-5e3f-46f1-a681-08d54c604025 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Dec 2017 12:57:41.8323 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB4079 Subject: Re: [dpdk-dev] [PATCH v2] lib/cmdline: init CLI parsing memory 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: Tue, 26 Dec 2017 12:57:43 -0000 SEkgT2xpdmllciwNCg0KQnkgcmVhZGluZyBwMSBjb21tZW50cyBjYXJlZnVsbHksIGxvb2tz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