From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.36510.1602492847595208449 for ; Mon, 12 Oct 2020 01:54:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=me9sNDWi; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: jiaxin.wu@intel.com) IronPort-SDR: kO5/zVAbHZioIdgIqLfg6eBXJAsK2d20CeyFkpL4pTpBhfqBHhKuyJ8ZlAliKeXaFTYPVimjF+ ceUT4Mk/kZ1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9771"; a="162242936" X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="162242936" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2020 01:54:06 -0700 IronPort-SDR: PmdN4vsCr/7f8rqt/vK5jL1G7aOjI/VST7YPXXPsT13XSGmWDXH0HQFM4xHUjyo4C4dJFfqHan QPsuMLhjPvKg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="329674715" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga002.jf.intel.com with ESMTP; 12 Oct 2020 01:54:05 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 12 Oct 2020 01:54:05 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 12 Oct 2020 01:54:04 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Mon, 12 Oct 2020 01:54:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NVHsztihAku01xZBTb7C//MWmvG2DRFlfNCq4jBVqOGWBI1kVwBsIOrEuZ6LMWnSQ6tsxh51AhKz1dm7twpYdwzoImSyjx67/L068xQmSBZcc3oo07CLrZnJh0XPyAQ9xrKqdnXoVph5f2HpBnADPteHgPGJdP/jSo+7mlTXyzGobArHpgYJ1401t4GtD3sjCsbl+ppf3Mthc1vFBZ8eMcLWJc3vhxMATIx7oow6evHcEu90Sj/IpdHbZm8I71vRMUZWffzv/K3AkL2VorF++yOVeyqHp4w5F7gXIY35eE9u1fnZACvttrSNoGStpRadicLuKk+gUMF2rcgyikAo2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5z97/Wv+vm2SL9jt7kXvcrosP+X/PKOHYagix77HiCg=; b=T20w23286AtwOaTr/50RWVLPkKkWEFcftVVavdpPXteD7ahpi6IdvwbruLDSbHzReVvqqa/poyR+D3dIO27wCAdGMpddOKcqtTXP6YC+pyePzPl5Oj6sVp+O4h8DFwgzJSiSdvryKzZ//0MRTZ07ixqjY50fl9QYNesU6WeEJHjGA3eufIYoBCTZHRyqD7v15/5PHJoW/hXQ3cMBXFFIuxdi+Lv6XA/L4UY0SVinV/G6MCoeH85PS9SgAmvA2QgWTqUXnagJ3soKRhlvuZ0gG3R/mC8ijOhAtptJFfy0L/O1JfL/A7I4JP/g5GUac6AWU0tU1Q1pyP+Njz62ZEBbQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5z97/Wv+vm2SL9jt7kXvcrosP+X/PKOHYagix77HiCg=; b=me9sNDWiKSpJCN5WQMV1SwqjzKrHmu6uydTkfgeOzeCPgcIYz4asTzIVrCHtXemaWclGISPcmzhXWISz5kGZ+hh5eg7A51BzsTSmy0nTlswVcw85NbMev18Pbiz9zKPr9PuL7uEqWyd23DJ3Xbb/V+GpCxMSHoYemsWs1L5Hbwc= Received: from DM5PR11MB1372.namprd11.prod.outlook.com (2603:10b6:3:11::14) by DM6PR11MB2555.namprd11.prod.outlook.com (2603:10b6:5:c5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.38; Mon, 12 Oct 2020 08:54:01 +0000 Received: from DM5PR11MB1372.namprd11.prod.outlook.com ([fe80::b807:5b9e:5d17:aa0a]) by DM5PR11MB1372.namprd11.prod.outlook.com ([fe80::b807:5b9e:5d17:aa0a%10]) with mapi id 15.20.3455.030; Mon, 12 Oct 2020 08:54:01 +0000 From: "Wu, Jiaxin" To: "devel@edk2.groups.io" , "abner.chang@hpe.com" CC: "Yao, Jiewen" , Nickle Wang Subject: Re: [edk2-devel] [Rest Ex Definition PATCH 2/2] RedfishPkg/Include: PCD definitions of Host Interface EFI device path Thread-Topic: [edk2-devel] [Rest Ex Definition PATCH 2/2] RedfishPkg/Include: PCD definitions of Host Interface EFI device path Thread-Index: AQHWoGwrMkeiTTtyeU2fxYmSYnK1N6mTqZPQ Date: Mon, 12 Oct 2020 08:54:01 +0000 Message-ID: References: <20201012070415.5878-1-abner.chang@hpe.com> <20201012070415.5878-3-abner.chang@hpe.com> In-Reply-To: <20201012070415.5878-3-abner.chang@hpe.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzdhZmZiZTMtNWUwMC00MTlmLWJhOGMtM2QwNWQyNDAyZTk4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoia2QxdUZKWm5uRjFmZlFLVEFiSmN6UmNJQjJlVm9LZ0wwUk1BV2xnZlAySlwvYzBZOG5rZ3RNK2d3VGJ5bGg5WmEifQ== dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-ctpclassification: CTP_NT dlp-reaction: no-action authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.202] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e9879f78-d515-489b-767d-08d86e8c5d37 x-ms-traffictypediagnostic: DM6PR11MB2555: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5+4dP5B+zBfNloS+Z72w13OpeoBajmCIz7Z8+7Q5zn5Aja+97FeRJnkvD0G+54RCTESMltz8sqOLP4k6ldNGcY4tzTd2nRglsdpRw04dqRETTXNJJ8LcbwM8jvDddiE4lXCa1qaZTSZ9ECBYQ0ugQWW3FeKj4FDq5Q5Mr+bo880N2/jucf80Z7Zz7a+rZbg+6k8O3HQA+0kOW9DpQ7LjeaLuoD/F7wXlN6hvAk3BkXUgbj2ixop4GDHKv18YdklLQRG30pisbLqjcoMwkzX2D50A//YLtnAQgC6ze0RAmH9muDf9MLyCHGWRdD1Kiah5VZe+KiuYebC1DFc7whd3Ur/ejsb0RNAEgNoqyvWKHvLlGrCnF2aKI4sdioDwkHTG26kQs4IzvGVyH/8ccstfAg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR11MB1372.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(136003)(376002)(39860400002)(366004)(396003)(64756008)(52536014)(478600001)(2906002)(316002)(8676002)(55016002)(8936002)(33656002)(9686003)(5660300002)(66946007)(71200400001)(76116006)(83080400001)(86362001)(4326008)(66476007)(66556008)(7696005)(66446008)(6506007)(26005)(966005)(110136005)(54906003)(53546011)(83380400001)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: Y5VMS1Z6cBqPgSKu2Au1JojdKRFL5CvYSB+EONfn/Ncy3WfNZd3Oec2/gTu1YdYeX9h/Bzwq2t7VUHOWv61SRC4tXMNRrWkUULFjDAQjA1K4JtIqkEAfXhac+xiMZ/89OalQa8xZCCn+0j6oXqREHG291o2JbdXkC6fWCXYBjl5VyUUNjsEYOPuecmS9Eo4K/Kf16tIrIL9SDJFknemc+D0aubCU4F8dFN3urAB/OFffHF+hfCz4X4P2JdN4fV7e2ySRkWqb/u/ygO4XRC2TGZBK+hJqTGuAh1tcrt3e3aOHlhG8F9znYgtQ+hE2sWez5yhZqDRgNCAm9nD+QMc+87BpQ2ygK0eoLNTvqDpnBfZSWpC2YbO81nSV37/YjalJA3r5Y6E6wz0iM5LlGgUuEw4cu1kbK1lvJWHuyRGxqDXuvsNpwG2+/tUJnh4ocYwHX8i0YqAomvAWrHgWhwQrMeBqEEABxfcdQDM7aSkWOX7o4zhml38AOoK0lE5v/HN8pAat+k09dy2Jx6f5XQkj4C+gRN3dEmWgJo5QtlA56cUkDmTK28RTHplgVOGPEUGvntgjmkM+mKAKLHGQVCM5KI1GGDukmQLh3QuKIGfDh7yFeumGMDApOc2ZvLhF/tyEfWN9kUACIBQ+aK1svcmE8g== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR11MB1372.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9879f78-d515-489b-767d-08d86e8c5d37 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2020 08:54:01.0768 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KCB2a5Qfq1JjHKHeNVNsxWKg6JICkLJkanNLC3lB6kVIfj89VJskBEhO4BaaRzYrb++Cn5wk/Hj0YolPGQE9cA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2555 Return-Path: jiaxin.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiaxin Wu > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Abner > Chang > Sent: Monday, October 12, 2020 3:04 PM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Nickle Wang > > Subject: [edk2-devel] [Rest Ex Definition PATCH 2/2] RedfishPkg/Include: > PCD definitions of Host Interface EFI device path >=20 > The definitions of Host Interface EFI device path structure PCD. >=20 > Signed-off-by: Jiaxin Wu > Signed-off-by: Siyuan Fu > Signed-off-by: Fan Wang > Signed-off-by: Abner Chang >=20 > Cc: Jiewen Yao > Cc: Nickle Wang > --- > .../Include/Pcd/RestExServiceDevicePath.h | 38 +++++++++++++++++++ > RedfishPkg/RedfishPkg.dec | 3 ++ > 2 files changed, 41 insertions(+) > create mode 100644 RedfishPkg/Include/Pcd/RestExServiceDevicePath.h >=20 > diff --git a/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h > b/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h > new file mode 100644 > index 0000000000..89de3b1a21 > --- /dev/null > +++ b/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h > @@ -0,0 +1,38 @@ > +/** @file > + This library defines the UEFI device path data of network device for = REST > + service to decide which should be used as the Redfish host interface. > + > + Copyright (c) 2019, Intel Corporation. All rights reserved.
> + (C) Copyright 2020 Hewlett Packard Enterprise Development LP
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > + > +#ifndef REST_EX_SERVICE_DEVICE_PATH_H_ > +#define REST_EX_SERVICE_DEVICE_PATH_H_ > + > +#include > + > +typedef enum { > + DEVICE_PATH_MATCH_MAC_NODE =3D 1, > + DEVICE_PATH_MATCH_PCI_NODE =3D 2, > + DEVICE_PATH_MATCH_MODE_MAX > +} DEVICE_PATH_MATCH_MODE; > + > +typedef struct { > + UINT32 DevicePathMatchMode; > + UINT32 DevicePathNum; > + // > + // Example: > + // {DEVICE_PATH("PciRoot(0)/Pci(0,0)/MAC(005056C00002,0x1)")} > + // DevicePath will be parsed as below: > + // {0x02,0x01,0x0c,0x00,0xd0,0x41,0x03,0x0a,0x00,0x00,0x00,0x00, > + // 0x01,0x01,0x06,0x00,0x00,0x00, > + // > 0x03,0x0b,0x25,0x00,0x00,0x50,0x56,0xc0,0x00,0x02,0x00,0x00,0x00,0x00,0x= 0 > 0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,= 0 > x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, > + // 0x7f,0xff,0x04,0x00} > + // > + EFI_DEVICE_PATH_PROTOCOL DevicePath[]; > +} REST_EX_SERVICE_DEVICE_PATH_DATA; > + > +#endif > diff --git a/RedfishPkg/RedfishPkg.dec b/RedfishPkg/RedfishPkg.dec > index e95ec5fe10..de3611252e 100644 > --- a/RedfishPkg/RedfishPkg.dec > +++ b/RedfishPkg/RedfishPkg.dec > @@ -13,6 +13,9 @@ > PACKAGE_GUID =3D c432b76e-5232-11e7-9010-005056c00008 > PACKAGE_VERSION =3D 1.0 >=20 > +[Includes] > + Include > + > [Guids] > gEfiRedfishPkgTokenSpaceGuid =3D { 0x4fdbccb7, 0xe829, 0x4b4c, {= 0x88, > 0x87, 0xb2, 0x3f, 0xd7, 0x25, 0x4b, 0x85 }} >=20 > -- > 2.17.1 >=20 >=20 >=20 >=20 >=20