From: "Wu, Jiaxin" <jiaxin.wu@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"abner.chang@hpe.com" <abner.chang@hpe.com>,
"Rabeda, Maciej" <maciej.rabeda@intel.com>
Subject: Re: [edk2-devel] Which is the proper edk2 package the EFI REST Structure DXE driver should stay with?
Date: Tue, 19 Nov 2019 08:15:33 +0000 [thread overview]
Message-ID: <895558F6EA4E3B41AC93A00D163B727416FA5A4B@SHSMSX107.ccr.corp.intel.com> (raw)
In-Reply-To: <CS1PR8401MB11920BB535D93933F44E7F48FF4C0@CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM>
[-- Attachment #1: Type: text/plain, Size: 6325 bytes --]
Hi Abner,
I just prefer put it with REST(EX) driver. So, how about keep it under RedfishPkg since the REST driver will still under RedfishPkg (currently)? I know it's a generic and centralized driver to do the converting, but the fact of the matter is no other consumer except for UEFI Redfish feature, or do you have the real other usage cases?
In the future, based on the real usage case in UEFI, we can consider whether need to move that driver with the REST(EX) driver to NetworkPkg or not. What do you think?
Thanks,
Jiaxin
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Abner Chang
Sent: Tuesday, November 19, 2019 12:02 PM
To: Rabeda, Maciej <maciej.rabeda@intel.com>; devel@edk2.groups.io; Wu, Jiaxin <jiaxin.wu@intel.com>
Subject: Re: [edk2-devel] Which is the proper edk2 package the EFI REST Structure DXE driver should stay with?
Hi Maciej,
EFI REST Structure driver is designed as a generic and centralized driver for REST JSON payload to C structure convertors. Redfish payload in JSON format is one of the REST services which consumes EFI REST Structure driver for registering the convertor, others services could be AWS or Openstack. This driver is not really designed for Redfish only, although I believe Redfish is the only one to use this protocol. Actually, this driver mainly deals with the payload, less relationship to the specific REST service or underlying transports although HTTP is used for carrying REST payload in the most of cases.
In responding to your questions,
>>>Is REST in UEFI going to be HTTP-based or is it planned to be tied to drivers outside of NetworkPkg?
This driver doesn't depends on transport layer.
>>>Is REST currently consumed only by Redfish or is going to be extensively used outside that package?
Yes, this driver is current consumed by Redfish JSON to C structure drivers. But as mentioned above, this driver is not only for Redfish, could be extensively used by other REST services.
>>> I believe that, by default, REST driver build will be controlled by a separate flag and disabled by default...
Yes, this driver is not necessary to be built as default. this driver could be pulled into build with the convertors according to the demand of platform.
Actually, neither RedfishPkg nor NetworkPkg are ideal packages to own EFI REST Structure driver IMO. My thought to put this driver in NetworkPkg is just because "REST" related driver is mentioned in Network Protocols in UEFI spec. Which I feel more comfortable than put this driver in RedfishPkg.
However, I don't have preference on this. We can keep this driver in RedfishPkg if one or more people think we should let this driver goes to RedfishPkg :).
Yep, what's your opinion Jiaxin?
Thanks
Abner
From: Rabeda, Maciej [mailto:maciej.rabeda@intel.com]
Sent: Monday, November 18, 2019 5:52 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com<mailto:abner.chang@hpe.com>>; Wu, Jiaxin <jiaxin.wu@intel.com<mailto:jiaxin.wu@intel.com>>
Subject: RE: Which is the proper edk2 package the EFI REST Structure DXE driver should stay with?
Hi Abner,
REST as a more generic network API and could possibly be placed in NetworkPkg.
My concerns are:
Is REST in UEFI going to be HTTP-based or is it planned to be tied to drivers outside of NetworkPkg?
If it is going to be more generic, I do not think that it is a good idea to tie it with other network drivers within NetworkPkg
Is REST currently consumed only by Redfish or is going to be extensively used outside that package?
Even if it is HTTP-based, question of maintenance arises. If Redfish is the only consumer of REST API, I would leave it within RedfishPkg so that Redfish+REST could be treated as a whole solution by the package maintainer.
In case REST is planned to be used outside of RedfishPkg, it could be added to NetworkPkg with some extra work.
I believe that, by default, REST driver build will be controlled by a separate flag and disabled by default (no need for it in regular network stack use cases like PXE/iSCSI/HTTP boot).
Additionally, if REST DXE build is requested, one would have to ensure that dependant drivers like HttpDxe will be included and built within NetworkPkg and outside of it (by consumers like OvmfPkg).
For example: there is a preprocessor mechanism used in NetworkPkg/NetworkDefines.dsc.inc to throw a compiler error in case TLS is not included if HTTPS support is requested.
Jiaxin,
What do you think?
Thanks,
Maciej
<Please disregard the legal disclaimer below. I'm working on it.>
From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Abner Chang
Sent: Thursday, November 14, 2019 17:10
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [edk2-devel] Which is the proper edk2 package the EFI REST Structure DXE driver should stay with?
Hi all,
I would like to get your suggestion with regard to the suitable edk2 package for EFI REST Structure DXE driver. We have POC code for this protocol (refer to UEFI spec 2.8, section 29.7.3) and currently this driver is implemented in RedfishPkg. However, this driver is not for Redfish only. Either NetowrkPkg or MdeModulePkg is better than RedfishPkg. I prefer to put this driver in NetworkPkg, but it's fine to me if you have other opinions.
Thanks
Abner
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Słowackiego 173 | 80-298 Gdańsk | Sąd Rejonowy Gdańsk Północ | VII Wydział Gospodarczy Krajowego Rejestru Sądowego - KRS 101882 | NIP 957-07-52-316 | Kapitał zakładowy 200.000 PLN.
Ta wiadomość wraz z załącznikami jest przeznaczona dla określonego adresata i może zawierać informacje poufne. W razie przypadkowego otrzymania tej wiadomości, prosimy o powiadomienie nadawcy oraz trwałe jej usunięcie; jakiekolwiek przeglądanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
[-- Attachment #2: Type: text/html, Size: 14214 bytes --]
next prev parent reply other threads:[~2019-11-19 8:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 16:10 Which is the proper edk2 package the EFI REST Structure DXE driver should stay with? Abner Chang
2019-11-18 9:51 ` Rabeda, Maciej
2019-11-19 4:02 ` Abner Chang
2019-11-19 8:15 ` Wu, Jiaxin [this message]
2019-11-19 8:38 ` [edk2-devel] " Abner Chang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=895558F6EA4E3B41AC93A00D163B727416FA5A4B@SHSMSX107.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox