- Add the spin locks back that I removed

svn path=/branches/aicom-network-fixes/; revision=36256
This commit is contained in:
Cameron Gutman
2008-09-15 12:54:53 +00:00
parent cfcc5a1f53
commit 340fdfa3ff
2 changed files with 4 additions and 3 deletions

View File

@@ -596,6 +596,7 @@ VOID LANTransmit(
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 @@ VOID LANTransmit(
((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

View File

@@ -157,9 +157,7 @@ VOID NBTimeout(VOID)
NCE->EventTimer--;
if (NCE->EventTimer == 0) {
/* Call timeout handler for NCE */
TcpipReleaseSpinLock(&NeighborCache[i].Lock, OldIrql);
NCETimeout(NCE);
TcpipAcquireSpinLock(&NeighborCache[i].Lock, &OldIrql);
}
}
}