]> git.openfabrics.org - ~shefty/rdma-win.git/commit
winmad: fixup return values and zero allocated mad master
authorSean Hefty <sean.hefty@intel.com>
Tue, 15 Jun 2010 17:04:28 +0000 (17:04 +0000)
committerSean Hefty <sean.hefty@intel.com>
Tue, 15 Jun 2010 17:04:28 +0000 (17:04 +0000)
commit04b8ea3669a44e1c0cc8ca562d4fcaebb3ef6ea2
treeae012808464ea9bb457205f559fb8944e1e4f435
parentbdf691de5150108dccb3c2a49273257f03949095
winmad: fixup return values and zero allocated mad

Winmad simply returns the status values defined by IBAL.  Convert those values into winmad define status values and align those values with errno.  This matches the expectations of libibumad.

As part of the cleanup, convert the check for success from IB_SUCCESS to IB_WCS_SUCCESS.  Both are defined as 0, so there's no functional change,but the mad status is a 'work completion status' value, not an API status value.

Finally, return the correct status value when canceling a read request.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2823 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/core/winmad/kernel/wm_provider.c
trunk/core/winmad/wm_ioctl.h
trunk/inc/user/iba/winmad.h
trunk/ulp/libibumad/src/umad.cpp