From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr60051.outbound.protection.outlook.com [40.107.6.51]) by dpdk.org (Postfix) with ESMTP id E5312271 for ; Fri, 19 Jan 2018 19:18:39 +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=rNpmeKP7oEeNRxM0z5tJucUIZCsLwUJOaFRRfIfct1U=; b=WcDgLMSXhbnaO+61OmSZsi+uE2xyOkLTaReg4np1MuQQcMSfEenbK8gE5ZQQCY2arDSpFw17OULGG7AESaYZlQFGF8ICYjfijg31KLOBdECxJQkprYFi2/idKdje5NmREKc6yPlX2C6yAovXvbRDPE+ydM+fheRsS6UmT6yAUcs= Received: from VI1PR05MB1678.eurprd05.prod.outlook.com (10.165.235.152) by VI1PR05MB1325.eurprd05.prod.outlook.com (10.162.122.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Fri, 19 Jan 2018 18:18:38 +0000 Received: from VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::34c1:e91f:7ec2:161]) by VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::34c1:e91f:7ec2:161%14]) with mapi id 15.20.0428.014; Fri, 19 Jan 2018 18:18:38 +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/g9aNDAGKAgBKtrnCAIP/GgIACmQ9QgAHgzwCAAJmU8A== Date: Fri, 19 Jan 2018 18:18:37 +0000 Message-ID: References: <20171115155402.9967-1-xuemingl@mellanox.com> <20171209153923.19958-1-xuemingl@mellanox.com> <20171214153543.2d2ydissujk55cng@platinum> <20180116124549.32w7g5jmhl633m2v@platinum> <20180119090702.fpko3aiz27b3heau@platinum> In-Reply-To: <20180119090702.fpko3aiz27b3heau@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; VI1PR05MB1325; 7:/mQv1WRU3q8MbK2W3ZVGELY1Vv6sJaiZxveDcGj1gGOMeXswN9lmAmUUqruu1GkNnohbuFtjvrBqZCJZwZJLwSTKWzuPQLPldJF0DXMUXG7W6N2JT+whpZTB28SvTV3EhW7Bstsf6UKTO8vkgDVHMlUMkhoBiYoXvt1rWAKZYV21zTj3rC6TrlHJ3TYry49jPcag5KFDHtG+79ajbqCRUxAAXKpC223luDwcjY62v6kZ4/NbxvNDnK9rQ275RUz3 x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 19c6dcd3-f1d8-4165-fa97-08d55f690f91 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(48565401081)(2017052603307)(7153060)(7193020); SRVR:VI1PR05MB1325; x-ms-traffictypediagnostic: VI1PR05MB1325: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(788757137089)(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(3231023)(2400081)(944501161)(3002001)(93006095)(93001095)(6055026)(6041268)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR05MB1325; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR05MB1325; x-forefront-prvs: 0557CBAD84 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(396003)(346002)(376002)(39860400002)(13464003)(52314003)(199004)(189003)(102836004)(8676002)(74316002)(81166006)(478600001)(53546011)(6506007)(86362001)(81156014)(6246003)(66066001)(106356001)(93886005)(59450400001)(305945005)(26005)(54906003)(7736002)(97736004)(68736007)(3280700002)(76176011)(8936002)(3660700001)(2906002)(316002)(14454004)(99286004)(6116002)(6916009)(5660300001)(2950100002)(55016002)(5250100002)(25786009)(7696005)(53936002)(229853002)(3846002)(33656002)(6436002)(105586002)(2900100001)(9686003)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB1325; H:VI1PR05MB1678.eurprd05.prod.outlook.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-antispam-message-info: 7AByPPHVV18yL3zPO44ZqGina5/xXTuHvzh5VTGUsMeGOCbm2HOYBFL11d49Ksb+9GijOi0HtL4ENYSLIPJedQ== 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: 19c6dcd3-f1d8-4165-fa97-08d55f690f91 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2018 18:18:37.8660 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1325 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: Fri, 19 Jan 2018 18:18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