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...@intel.com>; Fu, Siyuan <siyuan...@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.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#47075): https://edk2.groups.io/g/devel/message/47075
Mute This Topic: https://groups.io/mt/34091513/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to