[ofw] [Patch 37/62] Reference implementation of NDv2

Fab Tillier ftillier at microsoft.com
Wed Feb 20 18:18:49 PST 2013


Set IRP status for IBAT path query IOCTL.

Signed-off-by: Fab Tillier <ftillier at microsoft.com>

diff -dwup3 -X excl.txt -r \dev\openib\ofw\gen1\branches\mlx4_30\trunk\core\al\kernel\al_ibat.cpp .\core\al\kernel\al_ibat.cpp
--- \dev\openib\ofw\gen1\branches\mlx4_30\trunk\core\al\kernel\al_ibat.cpp	Tue Aug 07 16:41:02 2012
+++ .\core\al\kernel\al_ibat.cpp	Thu Aug 09 20:09:51 2012
@@ -166,7 +166,6 @@ __ibat_query_path(
 {
     IOCTL_IBAT_QUERY_PATH_IN*      pIn;
     IOCTL_IBAT_QUERY_PATH_OUT*     pOut;
-    NTSTATUS                        status;
 
     if( pIoStack->Parameters.DeviceIoControl.InputBufferLength != sizeof(*pIn) )
     {
@@ -193,19 +192,19 @@ __ibat_query_path(
     }
 
     IoMarkIrpPending( pIrp );
-    status = IbatQueryPathByIpAddress(
+    pIrp->IoStatus.Status = IbatQueryPathByIpAddress(
         &pIn->LocalAddress,
         &pIn->RemoteAddress,
         __ibat_query_cb,
         pIrp,
         pOut
         );
-    if( status == STATUS_SUCCESS )
+    if( pIrp->IoStatus.Status == STATUS_SUCCESS )
     {
         pIrp->IoStatus.Information = sizeof(*pOut);
         IoCompleteRequest( pIrp, IO_NO_INCREMENT );
     }
-    else if( status != STATUS_PENDING )
+    else if( pIrp->IoStatus.Status != STATUS_PENDING )
     {
         pIrp->IoStatus.Information = 0;
         IoCompleteRequest( pIrp, IO_NO_INCREMENT );
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndv2.37.patch
Type: application/octet-stream
Size: 1287 bytes
Desc: ndv2.37.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20130221/b4e70be3/attachment.obj>


More information about the ofw mailing list