From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr60045.outbound.protection.outlook.com [40.107.6.45]) by dpdk.org (Postfix) with ESMTP id 0C76A1B1BE for ; Thu, 18 Jan 2018 05:30:01 +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=zNNYWenOIhTi1eQay6lXr5NX/6foMnTr9iXklfu+MEc=; b=ieJoRJoNlIgIqO4TK7x10dYpPVw4Z9HWbrGvup2xu7oKOHXTguXCxtU0md7XcQGMe5ZJcdvmudDdKhz+tXO0F+klYdUUROa5SDl5/9f9Ns2YySGIMyiEQaz1qx7uoBgQ7nUxz+s107bsntRb4LOcroIvXKjAnXDM67r0cBBPW+k= Received: from VI1PR05MB1678.eurprd05.prod.outlook.com (10.165.235.152) by VI1PR05MB1134.eurprd05.prod.outlook.com (10.162.15.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Thu, 18 Jan 2018 04:29:59 +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; Thu, 18 Jan 2018 04:29:59 +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/GgIACmQ9Q Date: Thu, 18 Jan 2018 04:29:59 +0000 Message-ID: References: <20171115155402.9967-1-xuemingl@mellanox.com> <20171209153923.19958-1-xuemingl@mellanox.com> <20171214153543.2d2ydissujk55cng@platinum> <20180116124549.32w7g5jmhl633m2v@platinum> In-Reply-To: <20180116124549.32w7g5jmhl633m2v@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; VI1PR05MB1134; 7:YkTLW4OgliFaiRWXEvY67HlnRjwLKICU0YlV3dUcZmd8ZgJ2f8yq6gxxJ/9nEFprVzAXK+5RpCR3xSzqk9HfRDjop0tYC8iz6SIaFsgsN1UsWrH+zcA+TzcOtILFzfm5Xb08mehFGvCa89atlM+AQbiuBniS1ommZXoIOioj3MneBhjMbhwsR8mo5Zfc7d9xOMlYOwAE3ecmiBjT5cv0xiQqATmmhhyKjmdZUvSMFSlALOHljJvfEHHuCSh9XTaX x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: b7ec471d-0d2c-4513-73e3-08d55e2c22b5 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:VI1PR05MB1134; x-ms-traffictypediagnostic: VI1PR05MB1134: 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)(3002001)(93006095)(93001095)(10201501046)(3231023)(2400056)(944501161)(6055026)(6041268)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR05MB1134; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR05MB1134; x-forefront-prvs: 05568D1FF7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(366004)(376002)(39380400002)(39860400002)(13464003)(199004)(189003)(4326008)(68736007)(5250100002)(97736004)(81156014)(6246003)(54906003)(7696005)(9686003)(229853002)(5660300001)(6436002)(3846002)(26005)(6116002)(8936002)(81166006)(316002)(86362001)(8676002)(25786009)(106356001)(53936002)(105586002)(66066001)(3280700002)(99286004)(2950100002)(33656002)(14454004)(6916009)(478600001)(93886005)(6506007)(7736002)(53546011)(55016002)(59450400001)(76176011)(3660700001)(2906002)(305945005)(102836004)(74316002)(2900100001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB1134; 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: 8gPsUkkSikIbtas18tOewgS2AzD9KRtuIgP5pIkvMy3ZNgWqqYv7eKONUqeCh1xr8vhwoPmMjY7sJpqbq5gDXQ== 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: b7ec471d-0d2c-4513-73e3-08d55e2c22b5 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2018 04:29:59.5900 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1134 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: Thu, 18 Jan 2018 04:30:02 -0000 DQoNCj4gLS0tLS1Pcmlna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