Author: cgutman
Date: Mon Sep 15 07:54:53 2008
New Revision: 36256
URL:
http://svn.reactos.org/svn/reactos?rev=36256&view=rev
Log:
- Add the spin locks back that I removed
Modified:
branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c
branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c
Modified: branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Mon Sep
15 07:54:53 2008
@@ -596,6 +596,7 @@
PCHAR Data;
UINT Size;
PLAN_ADAPTER Adapter = (PLAN_ADAPTER)Context;
+ KIRQL OldIrql;
TI_DbgPrint(DEBUG_DATALINK,
("Called( NdisPacket %x, Offset %d, Adapter %x )\n",
@@ -672,11 +673,13 @@
((PCHAR)LinkAddress)[5] & 0xff));
}
+ TcpipAcquireSpinLock( &Adapter->Lock, &OldIrql );
TI_DbgPrint(MID_TRACE, ("NdisSend\n"));
- NdisSend(&NdisStatus, Adapter->NdisHandle, NdisPacket);
+ NdisSend(&NdisStatus, Adapter->NdisHandle, NdisPacket);
TI_DbgPrint(MID_TRACE, ("NdisSend %s\n",
NdisStatus == NDIS_STATUS_PENDING ?
"Pending" : "Complete"));
+ TcpipReleaseSpinLock( &Adapter->Lock, OldIrql );
/* I had a talk with vizzini: these really ought to be here.
* we're supposed to see these completed by ndis *only* when
Modified: branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers…
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/lib/drivers/ip/network/neighbor.c [iso-8859-1] Mon Sep 15
07:54:53 2008
@@ -157,9 +157,7 @@
NCE->EventTimer--;
if (NCE->EventTimer == 0) {
/* Call timeout handler for NCE */
- TcpipReleaseSpinLock(&NeighborCache[i].Lock, OldIrql);
NCETimeout(NCE);
- TcpipAcquireSpinLock(&NeighborCache[i].Lock, &OldIrql);
}
}
}