/** @file\r
\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+Copyright (c) 2005 - 2007, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
// yet ACKed.\r
//\r
FlightSize = TCP_SUB_SEQ (Tcb->SndNxt, Tcb->SndUna);\r
- Tcb->Ssthresh = NET_MAX ((UINT32) (2 * Tcb->SndMss), FlightSize / 2);\r
+ Tcb->Ssthresh = MAX ((UINT32) (2 * Tcb->SndMss), FlightSize / 2);\r
\r
Tcb->CWnd = Tcb->SndMss;\r
Tcb->LossRecover = Tcb->SndNxt;\r
/**\r
Heart beat timer handler.\r
\r
- @param Event Timer event signaled, ignored.\r
@param Context Context of the timer event, ignored.\r
\r
@return None.\r
**/\r
VOID\r
EFIAPI\r
-TcpTicking (\r
- IN EFI_EVENT Event,\r
+TcpTickingDpc (\r
IN VOID *Context\r
)\r
{\r
;\r
}\r
}\r
+\r
+/**\r
+ Heart beat timer handler, queues the DPC at TPL_CALLBACK.\r
+\r
+ @param Event Timer event signaled, ignored.\r
+ @param Context Context of the timer event, ignored.\r
+\r
+ @return None.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+TcpTicking (\r
+ IN EFI_EVENT Event,\r
+ IN VOID *Context\r
+ )\r
+{\r
+ NetLibQueueDpc (TPL_CALLBACK, TcpTickingDpc, Context);\r
+}\r
+\r