]> git.openfabrics.org - ~shefty/rdma-win.git/log
~shefty/rdma-win.git
13 years agond2: add SRQ support for 32-bit library
Sean Hefty [Tue, 27 Jul 2010 22:23:27 +0000 (22:23 +0000)]
nd2: add SRQ support for 32-bit library

The SRQ receive code assumes that ND_SGE can map
to a WV_SGE.  This is only true for 64-bit platforms.
A 32-bit library must convert ND_SGE to WV_SGE.  The
ND_SGE size varies based on the build; WV_SGE is a fixed
size for all platforms.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2857 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agond2: conver use of SGE to Sge
Sean Hefty [Tue, 27 Jul 2010 22:22:42 +0000 (22:22 +0000)]
nd2: conver use of SGE to Sge

The latest ND spec uses Sge instead of SGE.  Update the
internal use of SGE to match.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2856 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agond2: implement MR overlap calls
Sean Hefty [Tue, 27 Jul 2010 22:20:46 +0000 (22:20 +0000)]
nd2: implement MR overlap calls

Track overlapped registration requests and cancel them independently from the winverbs protection domain.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2855 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agond2: move up check against query length
Sean Hefty [Tue, 27 Jul 2010 22:19:37 +0000 (22:19 +0000)]
nd2: move up check against query length

Check that the length of pInfo is large enough before
dereferencing it.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2854 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agond2: set file completion notification mode
Sean Hefty [Tue, 27 Jul 2010 22:18:29 +0000 (22:18 +0000)]
nd2: set file completion notification mode

Add an Init() call to the NDProvider in order to report
failure during initialization.  Set the winverbs file handle
completion notification mode according to the latest ND spec.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2853 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agowinverbs: define cachable memory access flag
Sean Hefty [Tue, 27 Jul 2010 22:17:06 +0000 (22:17 +0000)]
winverbs: define cachable memory access flag

Define a flag that can indicate if memory registration is
allowed to be cachable.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2852 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agond2: use private heap
Sean Hefty [Tue, 27 Jul 2010 22:15:04 +0000 (22:15 +0000)]
nd2: use private heap

Replace the use of the application heap with a private heap.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2851 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agond2: update provider APIs to match latest spec
Sean Hefty [Tue, 27 Jul 2010 22:10:02 +0000 (22:10 +0000)]
nd2: update provider APIs to match latest spec

This updates the implementation to match the latest ndspi.h header file.  Changes include:

- Functions that return an interface take a REFIID as input and return VOID** rather than IND**
- Functions that take an interface as input use IUnknown* rather than IND*
- SGE became Sge
- A few acronyms are now spelled out.
- A couple new functions were defined, and parameters added in a couple places.

No significant functionality is added.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2850 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

13 years agolibibnetdisc: fix cast in unmarshall16
Sean Hefty [Mon, 26 Jul 2010 18:45:06 +0000 (18:45 +0000)]
libibnetdisc: fix cast in unmarshall16

Uri Habusha reported a build error on windows as a result of an incorrect cast to uint64_t.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2849 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agowinverbs: fix memory violation in SRQ code
Sean Hefty [Mon, 19 Jul 2010 18:03:59 +0000 (18:03 +0000)]
winverbs: fix memory violation in SRQ code

Problem reported by Shiqing Fan:

"I got a memory violation error in wv_srq.cpp Query() function around line 202. It seems using uninitialized verbsData.output_size for memcpy. The verbsData.input_size is initialized in WvPreQueryQp (wvuverbs.cpp), and it has a similar memcpy in this function too."

wv_uverbs.cpp should initialize the output_size to 0 in all
WvPre* calls.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2848 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agolibibverbs: remove _errno include from verbs.h
Sean Hefty [Tue, 13 Jul 2010 17:20:20 +0000 (17:20 +0000)]
libibverbs: remove _errno include from verbs.h

verbs.h is intended to be included directly by applications.  Since _errno.h is a linux header file abstraction, move its use internal to libibverbs.  This avoids issues if the user includes errno.h directly and matches the use on Linux.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2847 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agolibibverbs: remove duplicate wc status values
Sean Hefty [Tue, 13 Jul 2010 17:15:45 +0000 (17:15 +0000)]
libibverbs: remove duplicate wc status values

Several ibv_wc_status values map to the same winverbs wc status values.  This causes an error if the ibv_wc_status values are referenced in a switch statement.  Replace the duplicated values with constants, so every wc status value is unique.

Since the wc status values are mapped from the provider library, the duplicated values are not used anyway.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2846 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[WIX] added infiniband\sa.h as part of the IB SDK feature.
Stan Smith [Mon, 12 Jul 2010 20:58:23 +0000 (20:58 +0000)]
[WIX] added infiniband\sa.h as part of the IB SDK feature.

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

14 years agodapl/scm: fix debug build
Sean Hefty [Fri, 2 Jul 2010 17:11:56 +0000 (17:11 +0000)]
dapl/scm: fix debug build

sources file linkes to free version of winverbs, rather than the debug version.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2844 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agoFix memory leak of temprary CQ attribute buffer in CAdapter::Query.
Fab Tillier [Fri, 2 Jul 2010 01:59:33 +0000 (01:59 +0000)]
Fix memory leak of temprary CQ attribute buffer in CAdapter::Query.

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2843 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agodapl: update to commit 455e9d6d0aeb753a9ecb4a130b0b237e1ffd4146
Sean Hefty [Thu, 1 Jul 2010 04:07:23 +0000 (04:07 +0000)]
dapl: update to commit 455e9d6d0aeb753a9ecb4a130b0b237e1ffd4146

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2842 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agolibibverbs: update interfaces to 1.1.12
Sean Hefty [Wed, 30 Jun 2010 17:51:23 +0000 (17:51 +0000)]
libibverbs: update interfaces to 1.1.12

libibverbs interfaces are at 1.1.8.  Update to 1.1.12.

This converts some enum's in the API to int's, plus adds definitions for path record data to a new header file (for windows anyway), sa.h.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2841 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agocomplib/user: fix timer race conditions
Sean Hefty [Tue, 29 Jun 2010 19:33:05 +0000 (19:33 +0000)]
complib/user: fix timer race conditions

This serializes the callbacks for a timer and provides synchronization for multi-threaded timer usage.

cl_timer_stop is not allowed to be called from a timer callback, and will block until any callback has completed.  (Technically, this should work, but it is not supported.)

cl_timer_start simply calls cl_timer_trim

cl_timer_trim changes the timeout of a queued timer if the new timeout time is less than the last set timeout.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2840 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago complib/timer: fix race accessing timer fields
Sean Hefty [Tue, 29 Jun 2010 19:31:07 +0000 (19:31 +0000)]
 complib/timer: fix race accessing timer fields

The timeout_time field of cl_timer_t is modified in the timer callback function and also in calls to cl_timer_start, cl_timer_stop, and cl_timer_trim.  The user cannot protect against the changes made in the timer callback function, so the timer must provide this protection itself.

Provide serialization to prevent multiple timer callbacks to the user at once.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2839 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[OFED] correct comments.
Stan Smith [Fri, 25 Jun 2010 23:46:04 +0000 (23:46 +0000)]
[OFED] correct comments.

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

14 years ago[WIX] !x86 arch - Install 32-bit DAPL libraries directly into SysWOW64\ instead of...
Stan Smith [Fri, 25 Jun 2010 23:45:03 +0000 (23:45 +0000)]
[WIX] !x86 arch - Install 32-bit DAPL libraries directly into SysWOW64\ instead of %ProgramFiles%\OFED\.

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

14 years ago[WIX] use new name system_files.inc to setup system32 & syswow64
Stan Smith [Fri, 25 Jun 2010 23:43:01 +0000 (23:43 +0000)]
[WIX] use new name system_files.inc to setup system32 & syswow64

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

14 years ago[WIX] rename system32_files.inc --> system_files.inc to reflect both system32\ &...
Stan Smith [Fri, 25 Jun 2010 23:40:48 +0000 (23:40 +0000)]
[WIX] rename system32_files.inc --> system_files.inc to reflect both system32\ & sysWow64\ files.

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

14 years agoetc\pkgwo: add opensm and missing diags to winmad package
Sean Hefty [Fri, 25 Jun 2010 18:57:10 +0000 (18:57 +0000)]
etc\pkgwo: add opensm and missing diags to winmad package

Include opensm, osmtest, ibnetdiscover, saquery, and ibtrapgen in the winmad package.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2834 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[WIX] Incorporate WIX DirRef construct to simplify wix files (installed folder struct...
Stan Smith [Thu, 24 Jun 2010 16:20:07 +0000 (16:20 +0000)]
[WIX] Incorporate WIX DirRef construct to simplify wix files (installed folder structure defined in a single file; much easier to understand overall structure).
Additionally install .dlls in %SystemRoot%\system32 instead of %SystemRoot%.

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

14 years ago[CORE] Fix the race at IRP cancellation mechanism
Leonid Kelly [Thu, 24 Jun 2010 09:43:35 +0000 (09:43 +0000)]
[CORE] Fix the race at IRP cancellation mechanism

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

14 years agolibibumad: fix handling of receive timeouts
Sean Hefty [Wed, 23 Jun 2010 22:40:05 +0000 (22:40 +0000)]
libibumad: fix handling of receive timeouts

If the user calls receive with a timeout, the receive will
be posted, then the user will wait on an event until either
the receive completes or times out.  If the wait times out,
an attempt is made to cancel the pending receive.  However,
a MAD could be received between the wait timing out and
the completion of the cancel.  To handle this, we need to
check the return status after the cancel to see if the
cancel succeeded.

This fixes a problem with ibnetdiscover hanging.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2831 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[DOCS] updated OpenSM discussion to reflect OpenSM 3.3.6
Stan Smith [Wed, 23 Jun 2010 20:58:35 +0000 (20:58 +0000)]
[DOCS] updated OpenSM discussion to reflect OpenSM 3.3.6

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

14 years ago[OPENSM] OpenSM 3.3.6 - see changlog files for details.
Stan Smith [Wed, 23 Jun 2010 20:55:36 +0000 (20:55 +0000)]
[OPENSM] OpenSM 3.3.6 - see changlog files for details.

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

14 years ago[OFED] script to build a single .msi installer based on OS & arch qualifiers.
Stan Smith [Wed, 23 Jun 2010 20:41:41 +0000 (20:41 +0000)]
[OFED] script to build a single .msi installer based on OS & arch qualifiers.

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

14 years ago[OFED] add Arch qualifier to makebin.bat, adjust buildrelease.bat to use it.
Stan Smith [Wed, 23 Jun 2010 20:32:35 +0000 (20:32 +0000)]
[OFED] add Arch qualifier to makebin.bat, adjust buildrelease.bat to use it.

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

14 years ago[OFED] update build process to use latest WDK version 7600.16385.1
Stan Smith [Mon, 21 Jun 2010 19:26:59 +0000 (19:26 +0000)]
[OFED] update build process to use latest WDK version 7600.16385.1

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

14 years agolibibumad: fixes for opensm
Sean Hefty [Mon, 21 Jun 2010 18:42:58 +0000 (18:42 +0000)]
libibumad: fixes for opensm

Fix struct user_mad to align the grh_valid field with winmad.  Provide conversion functions to switch GRH data between umad and winmad when GRH data is in use.

Set errno correctly in case of failures.

Finally, cancel overlapped requests if receive or poll time out to prevent reusing those structures.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2825 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agoibal: set timeout and retry values for RMPP messages
Sean Hefty [Mon, 21 Jun 2010 18:35:04 +0000 (18:35 +0000)]
ibal: set timeout and retry values for RMPP messages

Define default timeout and retry values for RMPP response messages if none are provided by the user.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2824 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agowinmad: fixup return values and zero allocated mad master
Sean Hefty [Tue, 15 Jun 2010 17:04:28 +0000 (17:04 +0000)]
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

14 years agoupdate ib-mgmt_class_vers
Sean Hefty [Tue, 8 Jun 2010 23:50:01 +0000 (23:50 +0000)]
update ib-mgmt_class_vers

Update libibmad, libibnetdisc, and ib-diags to the management.git tree commit 4a55423059e76ccba95aed36dd256510082b1e27

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2822 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agolibibumad: add new link_layer field
Sean Hefty [Tue, 8 Jun 2010 21:29:50 +0000 (21:29 +0000)]
libibumad: add new link_layer field

Update libibumad to include a link_layer field as part of the port structure.  This updates the definition to match linux and is needed for the ib-diag port.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2821 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[OPENSM] commit 3.3.6 opensm for review/testing
Stan Smith [Wed, 2 Jun 2010 23:52:47 +0000 (23:52 +0000)]
[OPENSM] commit 3.3.6 opensm for review/testing

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

14 years ago[OPENSM] commit 3.3.6 opensm for review/testing
Stan Smith [Wed, 2 Jun 2010 23:51:29 +0000 (23:51 +0000)]
[OPENSM] commit 3.3.6 opensm for review/testing

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

14 years ago[OPENSM] rename man\opensm8.in --> opensm.8; use auto-tools processed version instead...
Stan Smith [Thu, 27 May 2010 19:42:50 +0000 (19:42 +0000)]
[OPENSM] rename man\opensm8.in --> opensm.8; use auto-tools processed version instead of raw.

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

14 years ago[OPENSM] remove Linux scripts; add Windows osmtest regression script.
Stan Smith [Thu, 27 May 2010 18:00:30 +0000 (18:00 +0000)]
[OPENSM] remove Linux scripts; add Windows osmtest regression script.

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

14 years ago[WIX] oops; correct commit #2815, remove opensm file from %windir%\temp
Stan Smith [Thu, 27 May 2010 17:57:47 +0000 (17:57 +0000)]
[WIX] oops; correct commit #2815, remove opensm file from %windir%\temp

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

14 years ago[WIX] remove opensm file from %windir%\temp
Stan Smith [Thu, 27 May 2010 16:58:18 +0000 (16:58 +0000)]
[WIX] remove opensm file from %windir%\temp

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

14 years agowinverbs/nd: ND 2.0 provider template
Sean Hefty [Thu, 27 May 2010 16:44:51 +0000 (16:44 +0000)]
winverbs/nd: ND 2.0 provider template

Initial port ND 1.0 provider to 2.0 APIs.  Only those functions which easily ported from 1.0 to 2.0 were implemented.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2814 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[INC] additions to support opensm 3.3.6
Stan Smith [Thu, 27 May 2010 16:39:07 +0000 (16:39 +0000)]
[INC] additions to support opensm 3.3.6

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

14 years ago[IBAL] Avoid the BSOD that can happen as a race consequence.
Leonid Kelly [Wed, 26 May 2010 09:25:49 +0000 (09:25 +0000)]
[IBAL] Avoid the BSOD that can happen as a race consequence.

signed-off-by: alex naslednikov <xalex@mellanox.co.il>

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

14 years ago[INC] Correct spelling, white-space alignment, remove trailing white-space, add comments.
Stan Smith [Tue, 25 May 2010 23:43:04 +0000 (23:43 +0000)]
[INC] Correct spelling, white-space alignment, remove trailing white-space, add comments.
Generally make ib_types.h more compatible with OFED for Linux version in order to make comparisions easier.

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

14 years ago[OPENSM] support standard windows cmd-line help request '/?'
Stan Smith [Sat, 22 May 2010 00:11:23 +0000 (00:11 +0000)]
[OPENSM] support standard windows cmd-line help request '/?'

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

14 years ago[OPENSM] use etc\user\getop.c parser instead of local version.
Stan Smith [Sat, 22 May 2010 00:07:13 +0000 (00:07 +0000)]
[OPENSM] use etc\user\getop.c parser instead of local version.

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

14 years ago[ETC] add getop/getopt_long rewind/reset parsing functionality (optind=0 resets).
Stan Smith [Fri, 21 May 2010 23:44:05 +0000 (23:44 +0000)]
[ETC] add getop/getopt_long rewind/reset parsing functionality (optind=0 resets).

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

14 years ago[OPENSM] comment correction.
Stan Smith [Fri, 21 May 2010 19:38:17 +0000 (19:38 +0000)]
[OPENSM] comment correction.

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

14 years ago[OPENSM] Reduce stack consumption by using a union of structs. Code borrowed from...
Stan Smith [Fri, 21 May 2010 19:36:06 +0000 (19:36 +0000)]
[OPENSM] Reduce stack consumption by using a union of structs. Code borrowed from osm_vendor_umad_sa.c

Support OSMV_QUERY_MULTIPATH_REC queries.

signed-off-by: stan smith <stan.smith@intel.com>

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

14 years ago[OPENSM] support IB_MAD_METHOD_GETMULTI and fix spelling errors.
Stan Smith [Fri, 21 May 2010 19:31:28 +0000 (19:31 +0000)]
[OPENSM] support IB_MAD_METHOD_GETMULTI and fix spelling errors.

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

14 years ago[OPENSM] Code cleanup by replacing 'cl_ntoh16((uint16_t) (attr_size >> 3))' expressio...
Stan Smith [Fri, 21 May 2010 19:28:04 +0000 (19:28 +0000)]
[OPENSM] Code cleanup by replacing 'cl_ntoh16((uint16_t) (attr_size >> 3))' expression with a call to the inline function  'ib_get_attr_offset(attr_size)'; takes advantage of (debug build) attr offset size checking.
Validates input attr_size is a multiple of 8 bytes per IB spec.
Function returns same value as the expression plus it isolates the implementation to a single point to ease future changes.

In function osmtest_stress_path_recs_by_lid()
Skip the destination lid byte-order swap as it's already in the correct order for vendor IBAL.
Permits 'osmtest -f f -s4' test to correctly complete.

signed-off-by: stan smith <stan.smith@intel.com>

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

14 years ago[OPENSM] Setup opensm\user\mad-vendor.inc as the single-point of OSM vendor definitio...
Stan Smith [Fri, 21 May 2010 19:20:09 +0000 (19:20 +0000)]
[OPENSM] Setup opensm\user\mad-vendor.inc as the single-point of OSM vendor definition[IBAL|UMAD].

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

14 years ago[OFED] use symstor from the WDK instead of debug tools.
Stan Smith [Fri, 21 May 2010 19:16:56 +0000 (19:16 +0000)]
[OFED] use symstor from the WDK instead of debug tools.

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

14 years ago[INC] complib; companion to commit #2799 - add: cl_fmap_match() & cl_fmap_get_next...
Stan Smith [Fri, 21 May 2010 19:14:26 +0000 (19:14 +0000)]
[INC] complib; companion to commit #2799 - add: cl_fmap_match() & cl_fmap_get_next() for opensm 3.3.5.

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

14 years ago[DOC] added osmtest examples
Stan Smith [Fri, 21 May 2010 19:11:48 +0000 (19:11 +0000)]
[DOC] added osmtest examples

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

14 years ago[COMPLIB] add cl_fmap_match() & cl_fmap_get_next() for opensm 3.3.5.
Stan Smith [Fri, 21 May 2010 19:10:08 +0000 (19:10 +0000)]
[COMPLIB] add cl_fmap_match() & cl_fmap_get_next() for opensm 3.3.5.

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

14 years ago[INC] In function 'ib_get_attr_offset()' replace attr_size adjustment code with an...
Stan Smith [Fri, 21 May 2010 19:05:50 +0000 (19:05 +0000)]
[INC] In function 'ib_get_attr_offset()' replace attr_size adjustment code with an ASSERT() as attr offset sizes are required to be a multiple of 8 bytes.

By removing antiquated structure padding, the sizeof(struct) values return to the correct size alignment.
Removal of padding allows osmtest to correctly generate and validate a fabric inventory file.

signed-off-by: stan smith <stan.smith@intel.com>

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

14 years ago[INC] Fix/add comments plus whitespace: alignment and trailing whitespace removal...
Stan Smith [Thu, 20 May 2010 17:44:35 +0000 (17:44 +0000)]
[INC] Fix/add comments plus whitespace: alignment and trailing whitespace removal for easier comparision with Linux version.

No functionality change!

signed-off-by: stan smith <stan.smith@intel.com>

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

14 years ago[DOC] added librdmacm & libibverbs documentation based on OFED for Linux man pages.
Stan Smith [Fri, 23 Apr 2010 17:53:37 +0000 (17:53 +0000)]
[DOC] added librdmacm & libibverbs documentation based on OFED for Linux man pages.

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

14 years ago[WINMAD] clear input structs prior to use.
Stan Smith [Fri, 16 Apr 2010 16:50:31 +0000 (16:50 +0000)]
[WINMAD] clear input structs prior to use.

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

14 years ago[WIX] rename CustomAction:DriverInstall to reflect how it's being called now as MS...
Stan Smith [Thu, 15 Apr 2010 22:14:38 +0000 (22:14 +0000)]
[WIX] rename CustomAction:DriverInstall to reflect how it's being called now as MS routines (DIFxApp) now perform the original CustomAction task. rename DriverInstall --> PostDriverInstall.

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

14 years ago[OPENSM] merge 78 file references from SOURCES into osm_files.c to reduce opensm...
Stan Smith [Thu, 15 Apr 2010 21:41:25 +0000 (21:41 +0000)]
[OPENSM] merge 78 file references from SOURCES into osm_files.c to reduce opensm.exe build time by 29 seconds.

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

14 years ago[OPENSM] remove duplicate files from SOURCES list; saves 10 seconds / build.
Stan Smith [Thu, 15 Apr 2010 21:37:46 +0000 (21:37 +0000)]
[OPENSM] remove duplicate files from SOURCES list; saves 10 seconds / build.

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

14 years ago[OFED\WIX] add new file '_errno.h' to enable correct, outside of src tree, ib_verbs...
Stan Smith [Thu, 15 Apr 2010 21:35:48 +0000 (21:35 +0000)]
[OFED\WIX] add new file '_errno.h' to enable correct, outside of src tree, ib_verbs application build.

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

14 years ago[OFED/WIX] add progress indicator messages during install (Installing Drivers & Insta...
Stan Smith [Thu, 15 Apr 2010 21:33:31 +0000 (21:33 +0000)]
[OFED/WIX] add progress indicator messages during install (Installing Drivers & Installing Network Providers).

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

14 years ago[OFED/WIX] replace numeric value indicating Window Style with a constant 'WindowStyle'.
Stan Smith [Thu, 15 Apr 2010 21:31:55 +0000 (21:31 +0000)]
[OFED/WIX] replace numeric value indicating Window Style with a constant 'WindowStyle'.

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

14 years ago[OFED] More name change: WinOF/WIX --> OFED
Stan Smith [Thu, 15 Apr 2010 21:29:23 +0000 (21:29 +0000)]
[OFED] More name change: WinOF/WIX --> OFED

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

14 years ago[PERFTEST/rdma_bw] make ibv_rdma_bw.exe buildable outside of OFED-W src tree.
Stan Smith [Thu, 15 Apr 2010 21:26:10 +0000 (21:26 +0000)]
[PERFTEST/rdma_bw] make ibv_rdma_bw.exe buildable outside of OFED-W src tree.

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

14 years agoOFED compat: convert return values to errno
Sean Hefty [Thu, 15 Apr 2010 17:05:21 +0000 (17:05 +0000)]
OFED compat: convert return values to errno

Convert libibverbs and librdmacm to use errno.  Return values
from winverbs and winsock are converted into errno values.

To handle values undefined in the current WDK version of errno.h,
add a new header file under the linux include directory with
missing values.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2786 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[WIX] remove Sample code files generated during compilation & link to allow successfu...
Stan Smith [Wed, 14 Apr 2010 23:55:02 +0000 (23:55 +0000)]
[WIX] remove Sample code files generated during compilation & link to allow successful uninstall of OFED_SDK\Samples folder.

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

14 years ago[WIX] set include search paths correctly. update README.
Stan Smith [Wed, 14 Apr 2010 23:52:45 +0000 (23:52 +0000)]
[WIX] set include search paths correctly. update README.

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

14 years ago[PERFTEST] faster compile + compile outside of OpenIB src tree; use ws2tcpip.h instea...
Stan Smith [Wed, 14 Apr 2010 17:01:27 +0000 (17:01 +0000)]
[PERFTEST] faster compile + compile outside of OpenIB src tree; use ws2tcpip.h instead of windows.h & winsock2.h.

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

14 years ago[OFED\WIX] some how the delete side of rename did not take. Make sure it takes here...
Stan Smith [Wed, 14 Apr 2010 00:34:26 +0000 (00:34 +0000)]
[OFED\WIX] some how the delete side of rename did not take. Make sure it takes here...

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

14 years ago[OFED\WIX] add winverbs+rdma_cm example to OFED SDK feature.
Stan Smith [Wed, 14 Apr 2010 00:25:03 +0000 (00:25 +0000)]
[OFED\WIX] add winverbs+rdma_cm example to OFED SDK feature.

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

14 years ago[OFED\WIX] rename OFED\WIX\SDK_Samples\ DDK --> WDK VS --> cmtest
Stan Smith [Wed, 14 Apr 2010 00:12:31 +0000 (00:12 +0000)]
[OFED\WIX] rename OFED\WIX\SDK_Samples\  DDK --> WDK   VS --> cmtest

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

14 years ago[PERFTEST] remove unused variables
Stan Smith [Wed, 14 Apr 2010 00:02:43 +0000 (00:02 +0000)]
[PERFTEST] remove unused variables

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

14 years ago[WINOF] Prep for the WinOF 2.2.1 point release.
Stan Smith [Tue, 13 Apr 2010 21:04:22 +0000 (21:04 +0000)]
[WINOF] Prep for the WinOF 2.2.1 point release.

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

14 years ago[ETC] copy missing IB SDK files to build dest.
Stan Smith [Fri, 9 Apr 2010 23:44:53 +0000 (23:44 +0000)]
[ETC] copy missing IB SDK files to build dest.

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

14 years ago[WIX] simplify \DAT & \OFED_SDK creation by moving to directory creation DAT_config...
Stan Smith [Fri, 9 Apr 2010 22:41:34 +0000 (22:41 +0000)]
[WIX] simplify \DAT & \OFED_SDK creation by moving to directory creation DAT_config.inc & ib_sdk.inc

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

14 years ago[WIX] IB SDK - create %SystemDrive%\OFED_SDK\ in a single place (moved from ofed...
Stan Smith [Fri, 9 Apr 2010 22:32:33 +0000 (22:32 +0000)]
[WIX] IB SDK - create %SystemDrive%\OFED_SDK\ in a single place (moved from ofed.wxs)
Include missing headers, libs and symbols.

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

14 years ago[WIX] IB SDK examples updated
Stan Smith [Fri, 9 Apr 2010 22:28:30 +0000 (22:28 +0000)]
[WIX] IB SDK examples updated

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

14 years ago[WIX] IB SDK - include missing header file components
Stan Smith [Fri, 9 Apr 2010 22:21:57 +0000 (22:21 +0000)]
[WIX] IB SDK - include missing header file components

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

14 years ago[WIX] simplify by creating %systemdrive%\DAT in a single place (moved from ofed.wxs...
Stan Smith [Fri, 9 Apr 2010 22:15:47 +0000 (22:15 +0000)]
[WIX] simplify by creating %systemdrive%\DAT in a single place (moved from ofed.wxs files).
Create DAT SDK include file to match uDAT ver 2 conventions (DAT --> DAT2)
Include missing DAT file dat_ib_extensions.h

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

14 years ago[ETC] update default WDK version and KMDF installer version
Stan Smith [Fri, 9 Apr 2010 22:07:18 +0000 (22:07 +0000)]
[ETC] update default WDK version and KMDF installer version

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

14 years ago[WINOF] Fix isolated installer crash. In CheckDriversOK() remove usage of Wsh.Sleep...
Stan Smith [Thu, 8 Apr 2010 20:35:13 +0000 (20:35 +0000)]
[WINOF] Fix isolated installer crash. In CheckDriversOK() remove usage of Wsh.Sleep() as it fails in the installer environment. Wait by invoking 'cmd.exe /C timeout /T 2'. Need to wait in a small # of isolated cases for the IPoIB driver (device IBA\IPOIB) to show up in the Window device database before installing ND/WSD. Generally IPoIB device is present prior to ND/WSD provider installation.
Waiting for the IPoIB device ensures NetworkDirect/IBAL & Winsock Direct providers install correctly. Wait 30 seconds max, output timed nastyGram about possible IPoIB driver initialization failure (no errors returned).

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

14 years ago[OFED] More WinOF --> OFED name changes. In CheckDriversOK() remove usage of Wsh...
Stan Smith [Thu, 8 Apr 2010 20:29:26 +0000 (20:29 +0000)]
[OFED] More WinOF --> OFED name changes. In CheckDriversOK() remove usage of Wsh.Sleep() as it fails in the installer environment. Wait by invoking 'cmd.exe /C timeout /T 2'. Need to wait in a small # of isolated cases for the IPoIB driver (device IBA\IPOIB) to show up in the Window device database. Waiting ensures NetworkDirect/IBAL & Winsock Direct providers install correctly. Wait 30 seconds max, output timed nastyGram about possible IPoIB driver initialization failure (no errors returned).

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

14 years ago[DOCS] Cleanup openSM node-name-map example formatting; added node-name-map format...
Stan Smith [Thu, 8 Apr 2010 20:20:58 +0000 (20:20 +0000)]
[DOCS] Cleanup openSM node-name-map example formatting; added node-name-map format links.

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

14 years ago[OPENSM] Identify which OSM vendor used in building OSM.
Stan Smith [Thu, 8 Apr 2010 20:17:45 +0000 (20:17 +0000)]
[OPENSM] Identify which OSM vendor used in building OSM.

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

14 years ago[OPENSM] white-space adjustments + comments.
Stan Smith [Thu, 8 Apr 2010 20:16:24 +0000 (20:16 +0000)]
[OPENSM] white-space adjustments + comments.

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

14 years ago[IPoIB] Mark NDIS version in ipoib.rc file so ipoib.sys file can be identified correctly.
Stan Smith [Thu, 8 Apr 2010 20:14:20 +0000 (20:14 +0000)]
[IPoIB] Mark NDIS version in ipoib.rc file so ipoib.sys file can be identified correctly.

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

14 years ago[DAPL2] catch up with DAPL mainline; output status in decimal.
Stan Smith [Thu, 8 Apr 2010 20:12:28 +0000 (20:12 +0000)]
[DAPL2] catch up with DAPL mainline; output status in decimal.

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

14 years agowinverbs/nd: do not convert timeout status value
Sean Hefty [Fri, 2 Apr 2010 23:32:39 +0000 (23:32 +0000)]
winverbs/nd: do not convert timeout status value

wv_io_timeout is an error value, but nd_timeout is a
success value.  This means that an overlapped request
can be completed in error, but GetOverlappedResult can
return a success value.  Instead, if a timeout is fatal,
report the status as wv_io_timeout, but if the timeout
can be retried, then report the status as wv_timeout.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2763 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agowinverbs/nd: allow retrying connect
Sean Hefty [Fri, 2 Apr 2010 23:32:04 +0000 (23:32 +0000)]
winverbs/nd: allow retrying connect

The ND documentation specifies that ND:Connect() should be retry-able.
Add this support to the winverbs ND provider.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2762 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agowinverbs/ep: allow failed connections to be retried
Sean Hefty [Fri, 2 Apr 2010 23:31:13 +0000 (23:31 +0000)]
winverbs/ep: allow failed connections to be retried

Allow a user to retry a connection request if it fails.  Report a
'success' timeout value, rather than an error timeout, reset the
EP state, and allow the request to be retried from user space.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2761 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[LIBIBUMAD] allow QP1 MAD traffic.
Stan Smith [Mon, 29 Mar 2010 19:02:03 +0000 (19:02 +0000)]
[LIBIBUMAD] allow QP1 MAD traffic.
Use correct management class version.

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

14 years ago[OPENSM] make formatting & whitespace use consistent in getopt_long_only().
Stan Smith [Mon, 29 Mar 2010 18:34:11 +0000 (18:34 +0000)]
[OPENSM] make formatting & whitespace use consistent in getopt_long_only().

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

14 years ago[OPENSM] correct setup to build using vendor umad or vendor ibal
Stan Smith [Mon, 29 Mar 2010 18:00:11 +0000 (18:00 +0000)]
[OPENSM] correct setup to build using vendor umad or vendor ibal

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