]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IPOIB_NDIS6_CM]
authorAlex Naslednikov <alex@mellanox.co.il>
Wed, 10 Nov 2010 09:39:41 +0000 (09:39 +0000)
committerAlex Naslednikov <alex@mellanox.co.il>
Wed, 10 Nov 2010 09:39:41 +0000 (09:39 +0000)
Bugfix:
In a case when SG num is greater than HW can support, IPoIB switches to 'send_copy' flow, but this situation is normal for UD flow
But send_gen(), when falling to 'send_copy' flow,  sets the status to NDIS_STATUS_RESOURCES both for CM and UD flow.
[MLNX 2.3.0.6796]

git-svn-id: svn://openib.tc.cornell.edu/gen1@2986 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp

index 3c6d22d483574fd64d9391137623c027aff47ccd..6c3e0b9d3653c3769427f38bd20ef73c82ee8c03 100644 (file)
@@ -4284,8 +4284,10 @@ __send_gen(
                        status = __send_copy( s_buf->p_port, s_buf, lso_header_size );\r
                        cl_perf_stop( &s_buf->p_port->p_adapter->perf, SendCopy );\r
                }\r
-\r
-               status = NDIS_STATUS_RESOURCES;\r
+               else \r
+               {\r
+                       status = NDIS_STATUS_RESOURCES;\r
+               }\r
                IPOIB_EXIT( IPOIB_DBG_SEND );\r
                return status;\r
        }\r