public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>,
	"ruiyu.ni@intel.com" <ruiyu.ni@intel.com>,
	"jaben.carsey@intel.com" <jaben.carsey@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [PATCH] RFC : Ping : Fix for loss of first ping packet
Date: Thu, 15 Feb 2018 13:28:46 +0100	[thread overview]
Message-ID: <87796a79-a092-4280-2e5d-11f0c87cfde3@redhat.com> (raw)
In-Reply-To: <DB5PR04MB09982B77E4430F5678D3EA2E8EF40@DB5PR04MB0998.eurprd04.prod.outlook.com>

Hi Meenakshi,

On 02/15/18 13:08, Meenakshi Aggarwal wrote:
> Hi,
> 
> Any comment?

I don't see your original patch email on the list, either in my personal
folder, or in the archive at
<https://lists.01.org/pipermail/edk2-devel/2018-February/thread.html>.
Can you resend?

Also, I suggest a subject line like:

  [RFC] ShellPkg/Ping: fix loss of first packet

In other words, "RFC" should only be in the bracketed part (= the
subject prefix). You can change the [PATCH] prefix into [RFC] by adding

  --subject-prefix=RFC

to the git-format-patch command line.

Thanks
Laszlo

>> -----Original Message-----
>> From: Meenakshi Aggarwal [mailto:meenakshi.aggarwal@nxp.com]
>> Sent: Tuesday, February 13, 2018 8:52 PM
>> To: ruiyu.ni@intel.com; jaben.carsey@intel.com; edk2-devel@lists.01.org
>> Cc: Udit Kumar <udit.kumar@nxp.com>; Varun Sethi <V.Sethi@nxp.com>;
>> Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
>> Subject: [PATCH] RFC : Ping : Fix for loss of first ping packet
>>
>> Issue:
>> Reply for first ping packet was getting dropped.
>>
>> Cause:
>> Sometimes reply message comes even before trasmit
>> function returns, hence missing 1st reply
>>
>> Fix:
>> Prepare the TxList before calling Transmit function.
>>
>> Contributed-under: TianoCore Contribution Agreement 1.1
>> Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
>> ---
>>  ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c | 5 ++++-
>>  1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
>> b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
>> index bec9535..46ba701 100644
>> --- a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
>> +++ b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
>> @@ -784,14 +784,17 @@ PingSendEchoRequest (
>>    }
>>
>>    ASSERT(Private->ProtocolPointers.Transmit != NULL);
>> +
>> +  InsertTailList (&Private->TxList, &TxInfo->Link);
>> +
>>    Status = Private->ProtocolPointers.Transmit (Private->IpProtocol, TxInfo-
>>> Token);
>>
>>    if (EFI_ERROR (Status)) {
>> +    RemoveEntryList (&TxInfo->Link);
>>      PingDestroyTxInfo (TxInfo, Private->IpChoice);
>>      return Status;
>>    }
>>
>> -  InsertTailList (&Private->TxList, &TxInfo->Link);
>>    Private->TxCount++;
>>
>>    return EFI_SUCCESS;
>> --
>> 1.9.1
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
> 



  reply	other threads:[~2018-02-15 12:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1518535345-3327-1-git-send-email-meenakshi.aggarwal@nxp.com>
2018-02-15 12:08 ` [PATCH] RFC : Ping : Fix for loss of first ping packet Meenakshi Aggarwal
2018-02-15 12:28   ` Laszlo Ersek [this message]
2018-02-16  5:45     ` Meenakshi Aggarwal
2018-02-16  9:32       ` Laszlo Ersek

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=87796a79-a092-4280-2e5d-11f0c87cfde3@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