Remove Unnecessary Outstanding Send Counter
@@ -330,11 +330,6 @@ typedef struct CXPLAT_SOCKET {
//
void *ClientContext;
- //
- // The number of outstanding sends.
- //
- long volatile SendOutstanding;
-
//
// IRP used for socket functions.
//
@@ -2799,8 +2794,6 @@ CxPlatDataPathSendComplete(
IoCleanupIrp(&SendContext->Irp);
CxPlatSendDataFree(SendContext);
- InterlockedDecrement(&Binding->SendOutstanding);
-
return STATUS_MORE_PROCESSING_REQUIRED;
}
@@ -2911,8 +2904,6 @@ CxPlatSocketSend(
*SegmentSize = SendContext->SegmentSize;
}
- InterlockedIncrement(&Binding->SendOutstanding);
-
Status =
Binding->DgrmSocket->Dispatch->
WskSendMessages(
