Arlin Davis [Wed, 9 Apr 2008 23:45:53 +0000 (16:45 -0700)]
dat/dapl: add support for logging errors in non-debug build.
Add debug logging (stdout, syslog) for error cases during
device open, cm, async, and dto operations. Default settings
are ERR for DAPL_DBG_TYPE, and stdout for DAPL_DBG_DEST.
Add logging by default if library load fails.
Signed-off by: Arlin Davis ardavis@ichips.intel.com
Arlin Davis [Tue, 18 Mar 2008 23:11:07 +0000 (15:11 -0800)]
remove unnecessary assert from dapl_ep_free.
dat_ep_free must handle the case where a consumer calls
free in CONNECTED or DISCONNECT_PENDING states. After
free calls disconnect, there may be a pending event,
in which case the providers dapls_ib_qp_free will block
accordingly and handle pending events.
Signed-off by: Arlin Davis ardavis@ichips.intel.com
Arlin Davis [Mon, 11 Feb 2008 22:50:51 +0000 (14:50 -0800)]
The OFA dapl provider is checking for incorrect return code
from rdma_bind_addr and rdma_listen calls. This causes an error
to be returned back to the consumer instead of correctly
incrementing the seed port and re-calling the OFA provider
until a valid port is issued. The seed value (1000) is also
incorrect and should start a non-privledged port (1024) to
avoid EPERM errors when seeding the starting port value.
Signed-off by: Arlin Davis <ardavis@ichips.intel.com>
Arlin Davis [Tue, 16 Oct 2007 21:10:52 +0000 (14:10 -0700)]
Use inet_ntoa instead of open coding it. IP addresses were being
reversed on PowerPC.
On PowerPC the timebase ticks at a different frequency to the CPU.
dapltest currently assumes a 1:1 relationship, and gives bogus values
when scaling timebase to real time.
To fix this, look at the timebase field in /proc/cpuinfo instead. To
keep things consistent with x86, scale that value to MHz.
Arlin Davis [Tue, 7 Nov 2006 20:22:05 +0000 (20:22 +0000)]
r10074: Added support for new ib verbs client register event. No extra processing required at the uDAPL
level.
Fix some issues supporting create qp without recv cq handle or recv qp resources. IB verbs assume a
recv_cq handle and uDAPL dapl_ep_create assumes there is always recv_sge resources specified.
Fix some timeout and long disconnect delay issues discovered during scale-out testing. Added support
to retry rdma_cm address and route resolution with configuration options. Provide a disconnect call
when receiving the disconnect request to guarantee a disconnect reply and event on the remote side.
The rdma_disconnect was not being called from dat_ep_disconnect() as a result of the state changing
to DISCONNECTED in the event callback.
Here are the new options (environment variables) with the default setting:
Steve Wise [Tue, 12 Sep 2006 18:15:39 +0000 (18:15 +0000)]
r9442: Update obsolete CLK_TCK to CLOCKS_PER_SEC Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Anton Blanchard [Mon, 17 Jul 2006 21:26:03 +0000 (21:26 +0000)]
r8562: Fix some suspicious inline assembly:
- EIEIO_ON_SMP and ISYNC_ON_SMP are in kernel UP build optimisations, we
shouldnt export them to userspace. Replace it with lwsync and isync.
- The comment says its implemenenting cmpxchg64 but in fact its
implementing cmpxchg32. Fix the comment.
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Thu, 22 Jun 2006 22:02:56 +0000 (22:02 +0000)]
r8182: Lower the reject debug message level so we don't see warnings
when consumers reject. Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Thu, 22 Jun 2006 21:13:37 +0000 (21:13 +0000)]
r8181: Added support for active side TIMED_OUT event from a provider. Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Thu, 22 Jun 2006 20:58:06 +0000 (20:58 +0000)]
r8180: Fix bug in dapls_ib_get_dat_event() call after adding new unreachable event. Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Mon, 12 Jun 2006 15:42:50 +0000 (15:42 +0000)]
r7931: Report the proper error and timeout events. Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Mon, 12 Jun 2006 14:51:14 +0000 (14:51 +0000)]
r7928: Socket CM fix to guard against using a loopback address
as the local device address. Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Tue, 6 Jun 2006 21:46:44 +0000 (21:46 +0000)]
r7755: Use the uCM set_option feature to adjust connect request timeout
and retry values. Also, a fix to disallow any event after a disconnect
event. Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
James Lentini [Thu, 18 May 2006 21:50:27 +0000 (21:50 +0000)]
r7346: Fix for uCMA provider to return the correct event as a result of
rejects. Also, ran into a segv bug with dapl_ep_create when
creating without a conn_evd.
Signed-off by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Fri, 12 May 2006 19:50:19 +0000 (19:50 +0000)]
r7141: Update the uDAPL openib_cma provider to work with the new
uCMA event channel interface. Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Steve Wise [Tue, 2 May 2006 21:33:35 +0000 (21:33 +0000)]
r6873: Transaction test change to comply with the iWARP MPA protocol's
"Connection Startup Rules". Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Steve Wise [Wed, 19 Apr 2006 16:32:01 +0000 (16:32 +0000)]
r6518: Do not always generate an event for an abrupt disconnect. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: James Lentini <jlentini@netapp.com>
James Lentini [Mon, 10 Apr 2006 20:16:44 +0000 (20:16 +0000)]
r6392: Fix for RDMA cm id destruction and debug builds.
Signed-off by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Steve Wise [Thu, 6 Apr 2006 15:16:10 +0000 (15:16 +0000)]
r6286: Set the IA attribute max_iov_segments_per_rdma_read and the EP attribute
max_rdma_read_iov based on the openib max_sge_rd device attribute. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: James Lentini <jlentini@netapp.com>
Arlin Davis [Fri, 17 Mar 2006 22:02:18 +0000 (22:02 +0000)]
r5879: Add GNU Autotools support and an RPM spec file Signed-off-by: Arlin Davis <ardavis@ichips.intel.com> Signed-off-by: James Lentini <jlentini@netapp.com>