From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on070a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe49::70a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2C77F82208 for ; Wed, 22 Feb 2017 19:38:21 -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=ChVcPix+lSEZI6mGDjMi+uc0KBYK95Pw5gsy+zPT/60=; b=lOkGfdMDY8vnAdViRztQL7kCzziQ6tGKgOB+JtM9UVrcu6PfVd0+5MhiNZ/DPtK48JG66/LLjN4uTWnnq1F3+IDao1pu1aR3eKm+hcz29FmN7QttJUfuc09cJ88tRjw6we7Xk8I4lbXV4uUyGCyB+ctxGpVBZYfQtNtDfO+mJRk= 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:38:19 +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:38:19 +0000 From: "Subramanian, Sriram" To: Zhang Lubo , "edk2-devel@lists.01.org" CC: Ye Ting , Fu Siyuan , Wu Jiaxin Thread-Topic: [patch] NetworkPkg: Update the Ethernet interface name. Thread-Index: AQHSjX38/00zZBjhXUOOgF1LjB3ZcKF18XQw Date: Thu, 23 Feb 2017 03:38:19 +0000 Message-ID: References: <1487817517-3104-1-git-send-email-lubo.zhang@intel.com> In-Reply-To: <1487817517-3104-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: 9e817455-b18a-4a76-d49e-08d45b9d690a 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:+QghTQfBhMWwkdVVIJofY0bQ0GDGgqD1/0QkBEPJZRBKbc8t23YTOZ6Zqnk7gBm9/Gi0bHjCkfJrA9bXzmsUfGA5C+GViLGYRvTcqnuKZSbkeOcXk8BdSppGh+3/zd0CiLpMtbiy6K7PLPP4f1uu821Uvx4MSI3YztB1NAWTwfv0Wq5ERKqIUt/kBfAETezOfN7B/9tU1RC5xtzU8NwStCg5Dw1L30mZ4B10wpfFKWiGY1nihBAIkxVFwdbEXxgQZpSUfXWguW8kP4XJe1lndZ8h89ASlDeTi9FAzKmuveBDMfgZYny/mrimZAYSjs3GScv6eKIcUifBCuRgkx4Dew== 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:38:19.4401 (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] NetworkPkg: 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:38:21 -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] NetworkPkg: 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 --- NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c b/NetworkPkg/Ip6Dxe/Ip6Confi= gImpl.c index e309b69..9287475 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c @@ -1439,11 +1439,11 @@ Ip6ConfigInitIfInfo ( ) { UnicodeSPrint ( IfInfo->Name, sizeof (IfInfo->Name), - L"eth%x", + L"eth%d", IpSb->Ip6ConfigInstance.IfIndex ); =20 IfInfo->IfType =3D IpSb->SnpMode.IfType; IfInfo->HwAddressSize =3D IpSb->SnpMode.HwAddressSize; --=20 1.9.5.msysgit.1