From 2e4c2a049be0cfebb2caa79884f22e80ee96eca7 Mon Sep 17 00:00:00 2001 From: hhuan13 Date: Thu, 9 Sep 2010 09:30:19 +0000 Subject: Improve PXE Over IPv4 performance: 1. Stop UdpWrite instance upon return from EfiPxeBcUdpWrite() to avoid mass pkgs enqueue to this useless instance in Udp layer. 2. Enhance Udp timeout logic to prevent the worst case happen, and set PxeUdp instance to 50ms to avoid enqueue mass pkgs in background. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10861 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg/Universal/Network/Udp4Dxe') diff --git a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c index bc07c185d9..ffcbfed2c5 100644 --- a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c +++ b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c @@ -431,7 +431,7 @@ Udp4CheckTimeout ( // // TimeoutTick unit is microsecond, MNP_TIMEOUT_CHECK_INTERVAL unit is 100ns. // - if (Wrap->TimeoutTick <= (UDP4_TIMEOUT_INTERVAL / 10)) { + if (Wrap->TimeoutTick < (UDP4_TIMEOUT_INTERVAL / 10)) { // // Remove this RxData if it timeouts. // -- cgit v1.2.3