From 13a188f0ae33dc60cfc253731447097bf4d0f504 Mon Sep 17 00:00:00 2001 From: Alex Naslednikov Date: Wed, 10 Nov 2010 09:39:41 +0000 Subject: [PATCH] [IPOIB_NDIS6_CM] 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp b/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp index 3c6d22d4..6c3e0b9d 100644 --- a/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp +++ b/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp @@ -4284,8 +4284,10 @@ __send_gen( status = __send_copy( s_buf->p_port, s_buf, lso_header_size ); cl_perf_stop( &s_buf->p_port->p_adapter->perf, SendCopy ); } - - status = NDIS_STATUS_RESOURCES; + else + { + status = NDIS_STATUS_RESOURCES; + } IPOIB_EXIT( IPOIB_DBG_SEND ); return status; } -- 2.46.0