From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.35831.1602490528343438275 for ; Mon, 12 Oct 2020 01:15:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=GgtY4TH/; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=05547ad1e7=nickle.wang@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09C8DARf022839 for ; Mon, 12 Oct 2020 08:15:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=Oc9WkN6U6dCVO4d2Toy/XiJ1G0S2GldpPzA9YcabKRg=; b=GgtY4TH/gdZJ8+JnbVvfQyprcadas1io2WUcHp5WkcJs6oaafwZIxarpXYwLmS0Dhotf TlPD8efn1DQ1qhQs2Y/kXLngT0pKhn/YKqvnTY5yAQjRZv3t7WulR2e8Ika2VI9E3HmC 1rvrvK0z7JrxP3zdvw2ka3RI+a3w8c81W5KvBt3v/ktzfJcx3d8aAiVfK90bwT+aE6aq t8o8b64zxwcGhQOZeTIdr/uUQaPPX4KsUyAOsKvl43IURrQA4UEC2u3taEljeQaQ825l 6hYSyqL2lN8bitxg+SdTay23M83fQpE2nKA5bkRrPC2CdZTdI3RZiuYQ4f+r16qUfOJ0 fg== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 343fq014c2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 12 Oct 2020 08:15:27 +0000 Received: from G4W9121.americas.hpqcorp.net (g4w9121.houston.hp.com [16.210.21.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3425.houston.hpe.com (Postfix) with ESMTPS id 033B39A for ; Mon, 12 Oct 2020 08:15:26 +0000 (UTC) Received: from G4W9119.americas.hpqcorp.net (2002:10d2:14d6::10d2:14d6) by G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Oct 2020 08:15:26 +0000 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (15.241.52.10) by G4W9119.americas.hpqcorp.net (16.210.20.214) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 12 Oct 2020 08:15:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cnp5Cn3oqIR3ug3fUopPPpm0b72HNg9Q05WMHwkHx0Y3s3ThR0TkSWgI/F4EBus3QPwSEURBnFzTi5dvUot8oT7ux+yUdysihyjKMNTFSryckGeMpm+gr5rQZ3PawZdiyXHtWw9cTew64WOyLCoj2jxFAMEMyn28G6nABsypBolNcL+kdq371ATY/jg6yCa3aiZfnRcbxpe1NHSO2ck9OA1o63IE6Bh7fs9Tt4lr3/Yr7DafJZOEIhCKh81eoLp9e8FWcV0O2DX7uj7Y5vyTgCGoCiHgD8WmlRPzlCdXvpr72xzeTN1f/lK5g9NotbgF0Z8zed8RBD2sFDIdCHfmXQ== 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=Oc9WkN6U6dCVO4d2Toy/XiJ1G0S2GldpPzA9YcabKRg=; b=lyW1CgQ9WRsexiFHpdX5T+Od06nVXjzpTdnRFSC0a7WUE+NgsFZy1u520jfMq+uCnOCtOAC2eAvQsRLvW3IS64AXUfV7I3sB2mZE0yf2DbIz0+kwobMeF2uWsfhwP6GL4vHvBqRYfSOHdehrQQewINwYxaklwJYCkGyCcaLuXIknp8nta0L4yejOFfOvzcGQ9uUFfKhcCYLwR3deTGs+LGbZQDtPnMt/O48uzfHOoQZQo/vPcjMqG65GRNx49K6Owsexfax5DDDzRXS8QJ2GzrHKWi6sJrdJDfBZBmMTkVMKsyUgGvzhqLcIBL0YT9xnsoPqCtQ96RNZzVj6Qm/0UQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::7) by DF4PR8401MB0505.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7607::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Mon, 12 Oct 2020 08:15:25 +0000 Received: from DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c9cf:9c73:a8a5:331b]) by DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c9cf:9c73:a8a5:331b%12]) with mapi id 15.20.3455.030; Mon, 12 Oct 2020 08:15:25 +0000 From: "Nickle Wang" To: "Chang, Abner (HPS SW/FW Technologist)" , "devel@edk2.groups.io" CC: Jiewen Yao Subject: Re: [Rest Ex Definition PATCH 2/2] RedfishPkg/Include: PCD definitions of Host Interface EFI device path Thread-Topic: [Rest Ex Definition PATCH 2/2] RedfishPkg/Include: PCD definitions of Host Interface EFI device path Thread-Index: AQHWoGwvcfI7Bn+Mu0yzoexm/6309KmTnoDQ Date: Mon, 12 Oct 2020 08:15:25 +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: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: hpe.com; dkim=none (message not signed) header.d=none;hpe.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [2001:b011:5c04:33ea:340a:2767:a8dd:b26a] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3161459d-172c-469b-15f3-08d86e86f8e8 x-ms-traffictypediagnostic: DF4PR8401MB0505: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Awvy/QsOACB5kwlUgqgSFp0TIzaCmvlRLtbiX4mLc8eUQVpMnN56n3gn0rRr4b3398K70s29zGb2bpIN6UjAY0leQYTvtCacGsqNJyTq6gyhkwHsFBllGmY5uErqo11QMM9C/zLPrKY5DzQuP16RKcpY2Q3Mn9AokMPQ8OkOLiWEzwLcmDyZcpy8e4GVQQklYbkkga83SWRsArbtiUwWig/Sg8epXThVgRoKKi0Ra0ujuHhJF51xUwp8luPozsEKx+TvmR7jiy95LkUyBgXmig0IlnyskQCs2tOkswwI5Q4tTFwwLMoA5bkaaNfBpUFd x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(39860400002)(376002)(366004)(396003)(346002)(136003)(55016002)(7696005)(186003)(6506007)(53546011)(316002)(33656002)(478600001)(71200400001)(86362001)(9686003)(2906002)(66946007)(66556008)(66476007)(66446008)(64756008)(8676002)(76116006)(4326008)(83380400001)(5660300002)(110136005)(52536014)(8936002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: ilqee6o8WHRbPPvGuxkptufDlxVX60/UJ7ZW6wVYgOjTzlFaXokFzivD51hdZf7L3U7Wd1e75NTM2yz3hs5LXtglXSvprS11NxqIdrcwlvJ9aQrF7cqLoce9pDhfJyTw7vjpS++pTuhqKAP3nZV1oNKbdFASOobROe6DljCdW0I2ZezmWxRxCNzOPdJzakRL4KxTLa12znIq8Y8c3xZtimnE3GU1UPojQeZQvk/J0Wy+YpP4q/im5ptUZ5dsmJvekLOY4SwA9FH4BJOPiet4OTQwY/QOGhL340qRejlRczsgUnYV6QIpqTXVukSp6KraktISeB+3Z2NlS2384t1crcepHKZWPeNpeB6F7dVLf0p68+uDzUI611V6k4pYwHUQV0+LPQADRLENgPn9hGg99BQZ3T1TS20XO4m291yosd7YhkbgYnH3ZPCn49dulY1gtHgF4XbvSIitH9vzzHW5Il5VBibAfDtUgv/pQBeeWKkQBZsPV7fWFrCd1UC7vXoE8Sh642TXpC7d3egRjx+m5OgSLlJsmnrevOsSywzkjhYAjID/D4ttqk755ifFObKthyZYWJ1oExV5H2X5cqUEwtIyqt16UWOMXAa5xtcTRj5nLyAudB8rCXI4dv9Oir2kJZuhGLheWvLOhrwOPtqzxw15xKzhNH2gHJ968F9egKkTNYsH3anuPXlaELVtEh+Wij5E4yqiQgPFaiH/8VsIFA== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 3161459d-172c-469b-15f3-08d86e86f8e8 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2020 08:15:25.2668 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DIPN7uDyGEzDKzCOaRx+DMFpQupdup4EtZzrBQowD95JTOzzsAhbL4x7/kA56P/sYBBYKyRQbRwh9fRB7tBOMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0505 X-OriginatorOrg: hpe.com X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-12_03:2020-10-12,2020-10-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 phishscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010120071 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Nickle Wang -----Original Message----- From: Chang, Abner (HPS SW/FW Technologist) =20 Sent: Monday, October 12, 2020 3:04 PM To: devel@edk2.groups.io Cc: Jiewen Yao ; Wang, Nickle (HPS SW) Subject: [Rest Ex Definition PATCH 2/2] RedfishPkg/Include: PCD definitions= of Host Interface EFI device path The definitions of Host Interface EFI device path structure PCD. Signed-off-by: Jiaxin Wu Signed-off-by: Siyuan Fu Signed-off-by: Fan Wang Signed-off-by: Abner Chang 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 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=20 +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,0= x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0= x00,0x00,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 e9= 5ec5fe10..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, { 0x= 88, 0x87, 0xb2, 0x3f, 0xd7, 0x25, 0x4b, 0x85 }} =20 -- 2.17.1