From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 C167F21A16E54 for ; Wed, 10 May 2017 17:50:38 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 10 May 2017 17:50:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,321,1491289200"; d="scan'208";a="259686545" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 10 May 2017 17:50:38 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 10 May 2017 17:50:37 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 10 May 2017 17:50:37 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.117]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.193]) with mapi id 14.03.0319.002; Thu, 11 May 2017 08:50:37 +0800 From: "Fu, Siyuan" To: "Wu, Jiaxin" , "edk2-devel@lists.01.org" CC: "Ye, Ting" Thread-Topic: [Patch] NetworkPkg/IScsiDxe: Switch IP4 configuration policy to Static before DHCP Thread-Index: AQHSyaK82Kthhx0/TkG75KxTTgzxC6HuTeRQ Date: Thu, 11 May 2017 00:50:36 +0000 Message-ID: References: <1494430381-8064-1-git-send-email-jiaxin.wu@intel.com> In-Reply-To: <1494430381-8064-1-git-send-email-jiaxin.wu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzE3N2JjNTktZDdiYi00NjMzLWI1MzAtZjg1Y2JmZTE5NmYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlF6RFNIU2lqTTdGeEMxTG53VUNGQzczajJVRUZsc1lrTmxrQWw0QU5IR0U9In0= dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] NetworkPkg/IScsiDxe: Switch IP4 configuration policy to Static before DHCP X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 00:50:39 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 UmV2aWV3ZWQtYnk6IEZ1IFNpeXVhbiA8c2l5dWFuLmZ1QGludGVsLmNvbT4NCg0KDQotLS0tLU9y aWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogV3UsIEppYXhpbiANClNlbnQ6IDIwMTfE6jXUwjEw yNUgMjM6MzMNClRvOiBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZw0KQ2M6IFllLCBUaW5nIDx0aW5n LnllQGludGVsLmNvbT47IEZ1LCBTaXl1YW4gPHNpeXVhbi5mdUBpbnRlbC5jb20+OyBXdSwgSmlh eGluIDxqaWF4aW4ud3VAaW50ZWwuY29tPg0KU3ViamVjdDogW1BhdGNoXSBOZXR3b3JrUGtnL0lT Y3NpRHhlO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Qa2cvSVNjc2lEeGUvSVNjc2lEaGNwLmMNCisrKyBiL05ldHdvcmtQa2cvSVNjc2lEeGUvSVNj c2lEaGNwLmMNCkBAIC0zNjksMTAgKzM2OSw1NCBAQCBJU2NzaVBhcnNlRGhjcEFjayAoDQogICBG cmVlUG9vbCAoT3B0aW9uTGlzdCk7DQogDQogICByZXR1cm4gU3RhdHVzOw0KIH0NCiANCisvKioN CisgIFRoaXMgZnVuY3Rpb24gd2lsbCBzd2l0Y2ggdGhlIElQNCBjb25maWd1cmF0aW9uIHBvbGlj eSB0byBTdGF0aWMuDQorDQorICBAcGFyYW1baW5dICBJcDRDb25maWcyICAgICAgICAgIFBvaW50 ZXIgdG8gdGhlIElQNCBjb25maWd1cmF0aW9uIHByb3RvY29sLg0KKw0KKyAgQHJldHZhbCAgICAg RUZJX1NVQ0NFU1MgICAgICAgICBUaGUgcG9saWN5IGlzIGFscmVhZHkgY29uZmlndXJlZCB0byBz dGF0aWMuDQorICBAcmV0dmFsICAgICBPdGhlcnMgICAgICAgICAgICAgIE90aGVyIGVycm9yIGFz IGluZGljYXRlZC4NCisNCisqKi8NCitFRklfU1RBVFVTDQorSVNjc2lTZXRJcDRQb2xpY3kgKA0K KyAgSU4gRUZJX0lQNF9DT05GSUcyX1BST1RPQ09MICAgICAgICAqSXA0Q29uZmlnMg0KKyAgKQ0K K3sNCisgIEVGSV9JUDRfQ09ORklHMl9QT0xJQ1kgICAgICAgICAgUG9saWN5Ow0KKyAgRUZJX1NU QVRVUyAgICAgICAgICAgICAgICAgICAgICBTdGF0dXM7DQorICBVSU5UTiAgICAgICAgICAgICAg ICAgICAgICAgICAgIERhdGFTaXplOw0KKw0KKyAgRGF0YVNpemUgPSBzaXplb2YgKEVGSV9JUDRf Q09ORklHMl9QT0xJQ1kpOyAgU3RhdHVzID0gDQorIElwNENvbmZpZzItPkdldERhdGEgKA0KKyAg ICAgICAgICAgICAgICAgICAgICAgICBJcDRDb25maWcyLA0KKyAgICAgICAgICAgICAgICAgICAg ICAgICBJcDRDb25maWcyRGF0YVR5cGVQb2xpY3ksDQorICAgICAgICAgICAgICAgICAgICAgICAg ICZEYXRhU2l6ZSwNCisgICAgICAgICAgICAgICAgICAgICAgICAgJlBvbGljeQ0KKyAgICAgICAg ICAgICAgICAgICAgICAgICApOw0KKyAgaWYgKEVGSV9FUlJPUiAoU3RhdHVzKSkgew0KKyAgICBy ZXR1cm4gU3RhdHVzOw0KKyAgfQ0KKw0KKyAgaWYgKFBvbGljeSAhPSBJcDRDb25maWcyUG9saWN5 U3RhdGljKSB7DQorICAgIFBvbGljeSA9IElwNENvbmZpZzJQb2xpY3lTdGF0aWM7DQorICAgIFN0 YXR1cz0gSXA0Q29uZmlnMi0+U2V0RGF0YSAoDQorICAgICAgICAgICAgICAgICAgICAgICAgICBJ cDRDb25maWcyLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgSXA0Q29uZmlnMkRhdGFUeXBl UG9saWN5LA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgc2l6ZW9mIChFRklfSVA0X0NPTkZJ RzJfUE9MSUNZKSwNCisgICAgICAgICAgICAgICAgICAgICAgICAgICZQb2xpY3kNCisgICAgICAg ICAgICAgICAgICAgICAgICAgICk7DQorICAgIGlmIChFRklfRVJST1IgKFN0YXR1cykpIHsNCisg ICAgICByZXR1cm4gU3RhdHVzOw0KKyAgICB9DQorICB9DQorDQorICByZXR1cm4gRUZJX1NVQ0NF U1M7DQorfQ0KIA0KIC8qKg0KICAgUGFyc2UgdGhlIERIQ1AgQUNLIHRvIGdldCB0aGUgYWRkcmVz cyBjb25maWd1cmF0aW9uIGFuZCBETlMgaW5mb3JtYXRpb24uDQogDQogICBAcGFyYW1baW5dICAg ICAgIEltYWdlICAgICAgICAgICAgVGhlIGhhbmRsZSBvZiB0aGUgZHJpdmVyIGltYWdlLg0KQEAg LTM5MSwxOCArNDM1LDIwIEBAIElTY3NpRG9EaGNwICgNCiAgIElOICAgICBFRklfSEFORExFICAg ICAgIC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