From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on072c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe41::72c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 63F4582208 for ; Wed, 22 Feb 2017 19:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=HPEnterprise.onmicrosoft.com; s=selector1-hpe-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DwHVduKQ7FPjncFbSppibb34Y72tg1tt5u8T+ugp/YA=; b=as1AHqPatM81ciOEGHk07l4kdFcEt5EK7Ae0GxoAR9zolRUcf/whXUrzd2s8QNsSmAPM83Gtqe8pEHenPqklY9eWgD6BeNogi79/e3nI9qHVKyZSMCa5zDabo9DDOEDlcACrl+zEhr+KlW2E6rnDqHN9MjTjeM9lHO6JfXF6Imk= Received: from DF4PR84MB0041.NAMPRD84.PROD.OUTLOOK.COM (10.162.192.143) by DF4PR84MB0044.NAMPRD84.PROD.OUTLOOK.COM (10.162.192.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Thu, 23 Feb 2017 03:39:39 +0000 Received: from DF4PR84MB0041.NAMPRD84.PROD.OUTLOOK.COM ([10.162.192.143]) by DF4PR84MB0041.NAMPRD84.PROD.OUTLOOK.COM ([10.162.192.143]) with mapi id 15.01.0919.015; Thu, 23 Feb 2017 03:39:39 +0000 From: "Subramanian, Sriram" To: Zhang Lubo , "edk2-devel@lists.01.org" CC: Ye Ting , Fu Siyuan , Wu Jiaxin Thread-Topic: [patch] MdeModulePkg: Update the Ethernet interface name. Thread-Index: AQHSjX4cMOaF906J2kyGxwtYpyqTcqF18c/Q Date: Thu, 23 Feb 2017 03:39:39 +0000 Message-ID: References: <1487817535-5500-1-git-send-email-lubo.zhang@intel.com> In-Reply-To: <1487817535-5500-1-git-send-email-lubo.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sriram-s@hpe.com; x-originating-ip: [15.219.195.2] x-ms-office365-filtering-correlation-id: cf70306c-2182-46b7-9090-08d45b9d98a0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:DF4PR84MB0044; x-microsoft-exchange-diagnostics: 1; DF4PR84MB0044; 7:PzSv/Arj1eMjmTcPiK/adGLUdSFbuzpvmaPM4QQ3ECzAggyy0+iaL7YHzuaJ5rCePwBKWRW51ZjYQD1lUOkoBj5yW5ASsHvyiiXe95dtWkkQhdXml+QhvC2+OkkdNreFW1tiaKxwxs01Q8WUq5wiC50qznc+mf+rOmOGGEWbvZs95Dd2sTy4whnOmF58XVDBaM6vWoHy0252DkfD/zFPpbICulSMs7Sy7C3j9oGhKTFC47tKC9ii3gXb5YEJl3JfSGLq2nCxzNY5Q6R/wJ7NQftbTEq4N+t4kpp2zvBN7JU0LlV1OnYMlu1TZVPbMUfXkqYvBlGkqSTFQbMEomBOdA== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861)(162533806227266)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123558025)(20161123564025)(6072148); SRVR:DF4PR84MB0044; BCL:0; PCL:0; RULEID:; SRVR:DF4PR84MB0044; x-forefront-prvs: 02272225C5 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39410400002)(39850400002)(39840400002)(39860400002)(39450400003)(199003)(189002)(13464003)(377454003)(2501003)(54906002)(6506006)(5660300001)(2906002)(8676002)(9686003)(8936002)(81156014)(77096006)(81166006)(189998001)(3660700001)(3280700002)(102836003)(3846002)(7696004)(305945005)(97736004)(74316002)(53546006)(229853002)(6116002)(2900100001)(2950100002)(4326007)(55016002)(6436002)(53936002)(76176999)(68736007)(33656002)(122556002)(92566002)(54356999)(15650500001)(66066001)(86362001)(6246003)(7736002)(106356001)(38730400002)(50986999)(106116001)(101416001)(105586002)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:DF4PR84MB0044; H:DF4PR84MB0041.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2017 03:39:39.3444 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR84MB0044 Subject: Re: [patch] MdeModulePkg: Update the Ethernet interface name. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2017 03:39:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Sriram Subramanian -----Original Message----- From: Zhang Lubo [mailto:lubo.zhang@intel.com]=20 Sent: Thursday, February 23, 2017 8:09 AM To: edk2-devel@lists.01.org Cc: Subramanian, Sriram ; Ye Ting ; Fu= Siyuan ; Wu Jiaxin Subject: [patch] MdeModulePkg: Update the Ethernet interface name. Update the interface name from ethA ethB to eth10, eth11 etc if port number more than 9. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo Cc: Sriram Subramanian Cc: Ye Ting Cc: Fu Siyuan Cc: Wu Jiaxin --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c b/MdeMo= dulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c index a6a3da8..504f247 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c @@ -1493,11 +1493,11 @@ Ip4Config2InitIfInfo ( ) { UnicodeSPrint ( IfInfo->Name, EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_SIZE, - L"eth%x", + L"eth%d", IpSb->Ip4Config2Instance.IfIndex ); =20 IfInfo->IfType =3D IpSb->SnpMode.IfType; IfInfo->HwAddressSize =3D IpSb->SnpMode.HwAddressSize; --=20 1.9.5.msysgit.1