public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, vladimir.olovyannikov@broadcom.com
Cc: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>,
	Zhichao Gao <zhichao.gao@intel.com>,
	Maciej Rabeda <maciej.rabeda@linux.intel.com>,
	Jiaxin Wu <jiaxin.wu@intel.com>, Siyuan Fu <siyuan.fu@intel.com>,
	Ray Ni <ray.ni@intel.com>, Liming Gao <liming.gao@intel.com>,
	Nd <nd@arm.com>
Subject: Re: [edk2-devel] [PATCH v5 1/1] ShellPkg/DynamicCommand: add HttpDynamicCommand
Date: Tue, 28 Jul 2020 00:08:06 +0200	[thread overview]
Message-ID: <d4d8e6e5-a17e-03c5-e767-554dddb5ce12@redhat.com> (raw)
In-Reply-To: <20200727164830.25829-2-vladimir.olovyannikov@broadcom.com>

Just some quick remarks after a comparison with v3:

On 07/27/20 18:48, Vladimir Olovyannikov via groups.io wrote:
> Introduce an http client utilizing EDK2 HTTP protocol, to
> allow fast image downloading from http/https servers.
> HTTP download speed is usually faster than tftp.
> The client is based on the same approach as tftp dynamic command, and
> uses the same UEFI Shell command line parameters. This makes it easy
> integrating http into existing UEFI Shell scripts.
> Note that to enable HTTP download, feature Pcd
> gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections must
> be set to TRUE.
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2860
>
> Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
> CC: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
> CC: Laszlo Ersek <lersek@redhat.com>

(1) These "CC" lines are not formatted correctly -- they might do the
job as far as git-send-email is concerned, but they don't satisfy
"PatchCheck.py":

> ShellPkg/DynamicCommand: add HttpDynamicCommand
> The commit message format is not valid:
>  * 'CC' should be 'Cc'
>  * 'CC' should be 'Cc'
> https://github.com/tianocore/tianocore.github.io/wiki/Commit-Message-Format

The exit status is 255, so this would break the CI run again.

Please run "PatchCheck.py" locally before posting, and/or submit a
personal CI build.

[...]

> +    if (UserNicName != NULL) {
> +      if (StrCmp (NicName, UserNicName) != 0) {
> +        Status = EFI_NOT_FOUND;

Change is new since v4, but not documented in the v5 changelog.

(The code may be OK, but please help reviewers with the v(n) -> v(n+1)
changelogs.)

[...]

> +    if (ShellCommandLineGetFlag (CheckPackage, L"-m")) {
> +      Context.Flags |= DL_FLAG_TIME;
> +    }

(2) The "-m" flag has not been removed from here

[...]

> +// Download Flags
> +#define DL_FLAG_TIME     BIT0 // Show elapsed time.

(3) and here

> +".SH SYNOPSIS\r\n"
> +" \r\n"
> +"HTTP [-i interface] [-l port] [-t timeout] [-s size] [-m] [-k]\r\n"

(4) and here

[...]

> +"  -m                 Measure and report download time (in seconds). \r\n"

(5) and here.

I suggest waiting for ShellPkg owner feedback before posting v6.

Thanks!
Laszlo


  reply	other threads:[~2020-07-27 22:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27 16:48 [PATCH v5 0/1] ShellPkg/DynamicCommand: add HttpDynamicCommand Vladimir Olovyannikov
2020-07-27 16:48 ` [PATCH v5 1/1] " Vladimir Olovyannikov
2020-07-27 22:08   ` Laszlo Ersek [this message]
2020-08-04 17:43     ` [edk2-devel] " Vladimir Olovyannikov
2020-08-03  5:42   ` Liming Gao
2020-08-17  1:47   ` Gao, Zhichao
2020-08-17 15:46     ` Vladimir Olovyannikov
2020-08-17 17:15       ` Maciej Rabeda
2020-08-17 18:00         ` Laszlo Ersek
2020-08-17 18:29           ` Vladimir Olovyannikov
2020-08-17 20:44             ` Laszlo Ersek
2020-08-17 22:52               ` Vladimir Olovyannikov
2020-08-18 16:54                 ` Maciej Rabeda
2020-08-18 18:33                   ` Vladimir Olovyannikov
2020-08-19  9:47                     ` Laszlo Ersek
2020-08-19 17:43                       ` Maciej Rabeda
2020-08-19 18:06                         ` Vladimir Olovyannikov
2020-07-27 17:39 ` [PATCH v5 0/1] " Laszlo Ersek
2020-07-27 18:45   ` Vladimir Olovyannikov

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=d4d8e6e5-a17e-03c5-e767-554dddb5ce12@redhat.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