From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 75D9A21199241 for ; Tue, 4 Dec 2018 16:04:10 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2018 16:04:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,316,1539673200"; d="scan'208";a="299358911" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga006.fm.intel.com with ESMTP; 04 Dec 2018 16:04:09 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Dec 2018 16:04:09 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.203]) by shsmsx102.ccr.corp.intel.com ([169.254.2.182]) with mapi id 14.03.0415.000; Wed, 5 Dec 2018 08:04:06 +0800 From: "Gao, Liming" To: Laszlo Ersek , Ard Biesheuvel , "edk2-devel@lists.01.org" CC: "Zhu, Yonghong" , "Feng, Bob C" , "Carsey, Jaben" Thread-Topic: [PATCH v2 4/6] BaseTools/DevicePath: use MAX_UINT16 as default device path max size Thread-Index: AQHUiP5zORAsw19yOk+aLhhm4TkZnKVseawAgALPpZA= Date: Wed, 5 Dec 2018 00:04:05 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E383BB7@SHSMSX104.ccr.corp.intel.com> References: <20181130224537.18936-1-ard.biesheuvel@linaro.org> <20181130224537.18936-5-ard.biesheuvel@linaro.org> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH v2 4/6] BaseTools/DevicePath: use MAX_UINT16 as default device path max size X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2018 00:04:10 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TGFzemxvOg0KICBJIGFncmVlIHdpdGggeW91LiBNQVhfVUlOVDMyIGlzIG1vcmUgY29tZm9ydGFi bGUuIA0KDQpUaGFua3MNCkxpbWluZw0KPi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+RnJv bTogTGFzemxvIEVyc2VrIFttYWlsdG86bGVyc2VrQHJlZGhhdC5jb21dDQo+U2VudDogTW9uZGF5 LCBEZWNlbWJlciAwMywgMjAxOCA5OjA2IFBNDQo+VG86IEFyZCBCaWVzaGV1dmVsIDxhcmQuYmll c2hldXZlbEBsaW5hcm8ub3JnPjsgZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmcNCj5DYzogWmh1LCBZ b25naG9uZyA8eW9uZ2hvbmcuemh1QGludGVsLmNvbT47IEdhbywgTGltaW5nDQo+PGxpbWluZy5n YW9AaW50ZWwuY29tPjsgRmVuZywgQm9iIEMgPGJvYi5jLmZlbmdAaW50ZWwuY29tPjsgQ2Fyc2V5 LCBKYWJlbg0KPjxqYWJlbi5jYXJzZXlAaW50ZWwuY29tPg0KPlN1YmplY3Q6IFJlOiBbUEFUQ0gg djIgNC82XSBCYXNlVG9vbHMvRGV2aWNlUGF0aDogdXNlIE1BWF9VSU5UMTYgYXMNCj5kZWZhdWx0 IGRldmljZSBwYXRoIG1heCBzaXplDQo+DQo+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