public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Rabeda, Maciej" <maciej.rabeda@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"rameshr@ami.com" <rameshr@ami.com>
Cc: "Wu, Jiaxin" <jiaxin.wu@intel.com>, "Fu, Siyuan" <siyuan.fu@intel.com>
Subject: Re: Polling Interval in MNP
Date: Tue, 10 Sep 2019 12:50:14 +0000	[thread overview]
Message-ID: <40FBBD5C52E8B4429773266A45BDCC174C65909A@IRSMSX104.ger.corp.intel.com> (raw)
In-Reply-To: <FCB618580B279147A99F061E09CFF06D02592156D2@VENUS1.in.megatrends.com>

Hi Ramesh,

I cannot see the 10ms comparison you have mentioned in MnpCheckPacketTimeout().
Quick code analysis suggests that received packets enqueued in the specific MNP instance queue have timeout value assigned to them.
See MnpQueueRcvdPacket() line:

RxDataWrap->TimeoutTick = Instance->ConfigData.ReceivedQueueTimeoutValue;

I believe that you can prevent packet timeout timer event from dropping those packets by setting ReceivedQueueTimeoutValue to 0 upon calling MnpInstance->Configure() function.

Thanks!
Maciej Rabeda

-----Original Message-----
From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Ramesh R.
Sent: Tuesday, September 10, 2019 12:34
To: 'devel@edk2.groups.io' <devel@edk2.groups.io>
Cc: Wu, Jiaxin <jiaxin.wu@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>
Subject: [edk2-devel] reg: Polling Interval in MNP

Hi all:

In the Network Package, MNPDxe Driver has the timeout check in MnpCheckPacketTimeout() for the interval of 10 ms. This interval is OK when we have the On board / Add on network controllers. 

In the cases of Network devices exposed via Inband (Virtual USB exposing network interfaces) when there is a packet read given to USB interfaces and it processed in lower level which could not provide the data within the 10 ms interval and it failed with timeout and communication failed when we perform the HTTP request.

Do we have any specific reason to have this as 10 ms? Do we have any max limit for this interval value?

Thanks,
Ramesh



--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie 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.


  reply	other threads:[~2019-09-10 12:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-10 10:34 reg: Polling Interval in MNP Ramesh R.
2019-09-10 12:50 ` Rabeda, Maciej [this message]
     [not found] <B4DE137BDB63634BAC03BD9DE765F197028B28FD17@VENUS1.in.megatrends.com>
2019-09-14  2:54 ` Siyuan, Fu

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=40FBBD5C52E8B4429773266A45BDCC174C65909A@IRSMSX104.ger.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