]> git.openfabrics.org - ~shefty/rdma-win.git/log
~shefty/rdma-win.git
14 years ago[DOC] timestamp update + opensm link to ibnetdiscover
Stan Smith [Fri, 12 Mar 2010 21:15:37 +0000 (21:15 +0000)]
[DOC] timestamp update + opensm link to ibnetdiscover

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

14 years ago[WINOF] RC6 prep
Stan Smith [Thu, 11 Mar 2010 20:19:09 +0000 (20:19 +0000)]
[WINOF] RC6 prep

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

14 years ago[ND/IBAL] ND provider INDAdaper::Query busted.
Stan Smith [Thu, 11 Mar 2010 20:15:30 +0000 (20:15 +0000)]
[ND/IBAL] ND provider INDAdaper::Query busted.
The INDAdapter::Query implementation doesn't set the maximum transfer lengths properly.
This patch fixes this, and allows MSMPI to chunk large transfers properly.

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

14 years ago[ibal] move transport type attribute.
Tzachi Dar [Thu, 11 Mar 2010 09:22:30 +0000 (09:22 +0000)]
[ibal] move transport type attribute.
Signed off by: sean.hefty@intel.com

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

14 years ago[WINOF] RC5 prep
Stan Smith [Wed, 10 Mar 2010 22:43:48 +0000 (22:43 +0000)]
[WINOF] RC5 prep

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

14 years ago[WINOF} Support SW only installs, if the HCA driver installed OK check fails, make...
Stan Smith [Wed, 10 Mar 2010 22:35:48 +0000 (22:35 +0000)]
[WINOF} Support SW only installs, if the HCA driver installed OK check fails, make sure there is an HCA device.

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

14 years ago[DAPL2] scm: CM linking to EP must be done before socket write in accept_user.
Stan Smith [Wed, 10 Mar 2010 22:32:22 +0000 (22:32 +0000)]
[DAPL2] scm: CM linking to EP must be done before socket write in accept_user.
scm accept RTU was processing the conn object in the cr_thread
before the user accept thread bound the EP to the CM object.
The linking must be done before the socket write to insure
proper linking and state during accept_rtu processing.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2732 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[ND] Don't use inline for RDMA reads
Stan Smith [Wed, 10 Mar 2010 22:30:17 +0000 (22:30 +0000)]
[ND] Don't use inline for RDMA reads
In order to allow the ndrping to work also with RDMA reads,
the following fix is needed.

Signed-off-by: Tzachi Dar [tzachid@mellanox.co.il]
git-svn-id: svn://openib.tc.cornell.edu/gen1@2731 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[WINVERBS/ND] do not convert wv_io_timeout to nd_timeout
Stan Smith [Wed, 10 Mar 2010 22:26:01 +0000 (22:26 +0000)]
[WINVERBS/ND] do not convert wv_io_timeout to nd_timeout
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@2730 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[WINVERBS/ND] allow retrying ND:Connect()
Stan Smith [Wed, 10 Mar 2010 22:24:02 +0000 (22:24 +0000)]
[WINVERBS/ND] allow retrying ND: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@2729 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[WINVERBS] winverbs/ep: allow failed connection requests to be retried
Stan Smith [Wed, 10 Mar 2010 22:19:37 +0000 (22:19 +0000)]
[WINVERBS] winverbs/ep: allow failed connection requests 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.

winverbs: allow WV:Disconnect() to be retried

ND for some odd reason wants a successful return code for
a failed disconnect call.  If a Disconnect() call fails,
allow it to be retried.  Return STATUS_TIMEOUT - a 'successful'
failure, rather than STATUS_IO_TIMEOUT, which is a 'failed' failure.
(I love Windows, really, I do.)  A subsequent call to EP:
Disconnect() after a timeout will force the QP into the error
state and force the EP into the disconnected state.

This change is needed to prevent ndping and other ND tests from
reporting a failure.  They only allow disconnect calls to fail
'successfully' with STATUS_TIMEOUT.  With the status mapping
removed from the user space WV ND library, we need to return the
desired value directly from the kernel.

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

14 years ago[nd] Don't use inline for RDMA reads. (mlnx 5666)
Tzachi Dar [Wed, 10 Mar 2010 10:04:03 +0000 (10:04 +0000)]
[nd] Don't use inline for RDMA reads. (mlnx 5666)

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

14 years ago[ibal] MAD completion callbacks are expected to be at DISPATCH_LEVEL. (mlnx 5654)
Tzachi Dar [Wed, 10 Mar 2010 09:45:19 +0000 (09:45 +0000)]
[ibal] MAD completion callbacks are expected to be at DISPATCH_LEVEL. (mlnx 5654)

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

14 years ago[AL] Replace spaces with tabs. (mlnx 5652)
Tzachi Dar [Mon, 8 Mar 2010 14:23:15 +0000 (14:23 +0000)]
[AL] Replace spaces with tabs. (mlnx 5652)

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

14 years ago[AL] Replace spaces with tabs. (mlnx 5650)
Tzachi Dar [Mon, 8 Mar 2010 14:01:46 +0000 (14:01 +0000)]
[AL] Replace spaces with tabs. (mlnx 5650)

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

14 years ago[DAPL2] recreate WinOF -->OFED mods which were recently overwritten.
Stan Smith [Fri, 5 Mar 2010 00:49:41 +0000 (00:49 +0000)]
[DAPL2] recreate WinOF -->OFED mods which were recently overwritten.

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

14 years agodapl2: update
Sean Hefty [Thu, 4 Mar 2010 22:13:53 +0000 (22:13 +0000)]
dapl2: update

Update to commit 4b939076aa32bb52957fcc6791e187c9433d4c24 + ibal provider fixes for WOF2-2 support.  This synchronizes the trunk with the WOF2-2 branch.

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

14 years agowinverbs branch: delete branch
Sean Hefty [Thu, 4 Mar 2010 21:41:57 +0000 (21:41 +0000)]
winverbs branch: delete branch

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

14 years ago[WinOF] RC4 prep
Stan Smith [Wed, 3 Mar 2010 23:49:35 +0000 (23:49 +0000)]
[WinOF] RC4 prep

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

14 years ago[DAPL] remove ibal_cm_handle handling as it's functionality is duplicated in CM descr...
Stan Smith [Wed, 3 Mar 2010 23:44:47 +0000 (23:44 +0000)]
[DAPL] remove ibal_cm_handle handling as it's functionality is duplicated in CM descriptors as a list.

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

14 years ago[DAPL] fix typos & whitespace alignment. Support ib CM descriptor as a list of descri...
Stan Smith [Wed, 3 Mar 2010 23:43:04 +0000 (23:43 +0000)]
[DAPL] fix typos & whitespace alignment. Support ib CM descriptor as a list of descriptors, align with common code.

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

14 years ago[TOOLS] make -h option work by adding h to getopt() options string.
Stan Smith [Wed, 3 Mar 2010 23:39:36 +0000 (23:39 +0000)]
[TOOLS] make -h option work by adding h to getopt() options string.

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

14 years ago[TOOLS] make -h option work by adding h to getopt() options string.
Stan Smith [Wed, 3 Mar 2010 23:37:59 +0000 (23:37 +0000)]
[TOOLS] make -h option work by adding h to getopt() options string.

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

14 years ago[WinOF] 2.2 RC4 prep
Stan Smith [Fri, 26 Feb 2010 21:56:19 +0000 (21:56 +0000)]
[WinOF] 2.2 RC4 prep

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

14 years ago[DAPL2] 2.0.27 updates + fixes to synchronize DAPL object destruction.
Stan Smith [Fri, 26 Feb 2010 21:51:59 +0000 (21:51 +0000)]
[DAPL2] 2.0.27 updates + fixes to synchronize DAPL object destruction.

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

14 years ago[WinOF] remove unused variables, do not wait for IPoIB device unless IPoIB and WSD...
Stan Smith [Tue, 23 Feb 2010 23:10:26 +0000 (23:10 +0000)]
[WinOF] remove unused variables, do not wait for IPoIB device unless IPoIB and WSD or ND installed.

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

14 years ago[WINOF] script cleanup, shorten Folder names for respective installers:
Stan Smith [Tue, 23 Feb 2010 23:07:53 +0000 (23:07 +0000)]
[WINOF] script cleanup, shorten Folder names for respective installers:
Windows 7 --> win7, add HPC_Edition to win7 folder name.

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

14 years ago[WINOF] update with trunk commits for 2.2 release
Stan Smith [Tue, 23 Feb 2010 23:03:33 +0000 (23:03 +0000)]
[WINOF] update with trunk commits for 2.2 release
2703 ibat/resolve: retry ibat resolution
2702 libibverbs: release wvprovider reference from ibvwv_acquire_windata
2701 dapl: locking cleanup and fixes
2689 libibverbs/device: destroy completion channel when closing device
2688 dapl: use private_data_len for mem copies
2687 dapl/cma: fix referencing freed address
2686 librdmacm: set private_data_len
2685 dapl: move close device after async thread is done using it
2683 [core] Improved error message.
2682 [core] Release the RDMA interface if ib_register_ca fails.

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

14 years ago[IPoIB_ndis6_cm] migrate IPoIB shutter code into the trunk - match 2.2 release.
Stan Smith [Fri, 19 Feb 2010 18:13:20 +0000 (18:13 +0000)]
[IPoIB_ndis6_cm] migrate IPoIB shutter code into the trunk - match 2.2 release.
shutter code stops IPoIB from receiving packets during device shutdown.

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

14 years ago[WINOF] delete orphaned files on uninstall
Stan Smith [Fri, 19 Feb 2010 17:46:36 +0000 (17:46 +0000)]
[WINOF] delete orphaned files on uninstall
Added new CustomAction to wait for IPoIB device to appear in order to ensure ND & WSD provider install success.

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

14 years ago[WINOF] install ND/winverbs provider as the default for IA64 systems.
Stan Smith [Fri, 19 Feb 2010 17:27:36 +0000 (17:27 +0000)]
[WINOF] install ND/winverbs provider as the default for IA64 systems.

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

14 years ago[IPOIB] Satisify MS MPI requirement - install 32-bit version of ND/winverbs in SysWOW64
Stan Smith [Fri, 19 Feb 2010 17:22:13 +0000 (17:22 +0000)]
[IPOIB] Satisify MS MPI requirement - install 32-bit version of ND/winverbs in SysWOW64

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

14 years ago[DAPL2] Cleanup CM object lock before freeing CM object memory
Stan Smith [Fri, 19 Feb 2010 17:13:41 +0000 (17:13 +0000)]
[DAPL2] Cleanup CM object lock before freeing CM object memory
Running windows application verifiier for uDAPL validation
for all 3 providers. Cleanup memory lock leaks found
by verifier.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2706 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[DAPL2] ucm, scm, cma: destroy verbs completion channels created via ia_open or ep_cr...
Stan Smith [Fri, 19 Feb 2010 17:09:58 +0000 (17:09 +0000)]
[DAPL2] ucm, scm, cma: destroy verbs completion channels created via ia_open or ep_create.
Completion channels are created with ia_open for CNO events and  with ep_create in cases where DAT allows EP(qp) to be created with no EVD(cq) and IB doesn't. These completion channels need to be destroyed at close along with a CQ for the "EP without EVD" case.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2705 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agoibat: replace MAXINT64 with value
Sean Hefty [Thu, 18 Feb 2010 23:02:12 +0000 (23:02 +0000)]
ibat: replace MAXINT64 with value

MAXINT64 is not defined for all windows platforms.  Use a hard-coded value instead.

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

14 years agoibat/resolve: retry ibat resolution
Sean Hefty [Thu, 18 Feb 2010 21:51:19 +0000 (21:51 +0000)]
ibat/resolve: retry ibat resolution

Winverbs ND scale out testing showed that IBAT::Resolve() can
return E_PENDING, which requires that the resolution be retried.
A similar issue to this was seen when testing with the librdmacm.
Rather than duplicating retry logic in the winverbs ND provider,
add new functionality to ibat, with retry capability.  To
avoid breaking the ibat.dll interface, extend the API with a
new call ResolvePath() that takes a timeout value.

ResolvePath() automatically retries Resolve() while the result
is E_PENDING, until the request times out.  Modify the winverbs
ND provider to call ResolvePath().  Also update other places
where Resolve() is called in a loop: the librdmacm and wsd.

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

14 years agolibibverbs: release WVProvider reference from ibvw_acquire_windata
Sean Hefty [Thu, 18 Feb 2010 21:50:12 +0000 (21:50 +0000)]
libibverbs: release WVProvider reference from ibvw_acquire_windata

ibvw_release_windata should release the WVProvider reference taken
in ibvw_acquire_windata.

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

14 years agodapl: locking cleanup and fixes
Sean Hefty [Thu, 18 Feb 2010 21:49:14 +0000 (21:49 +0000)]
dapl: locking cleanup and fixes

Cleanup allocated completion channels. Destroy cm_ptr locks before freeing the cm_ptr to avoid memory leaks.  And avoid accessing the cm_ptr after queuing it for destruction with the cr_thread to avoid use after free errors.

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

14 years ago[MLX4] shutter.h move to trunk\inc\kernel; seems you have to commit for both the...
Stan Smith [Thu, 4 Feb 2010 01:33:12 +0000 (01:33 +0000)]
[MLX4] shutter.h move to trunk\inc\kernel; seems you have to commit for both the src & dest.

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

14 years ago[INC\KERNEL] move shutter.h from hw\mlx4\kernel\inc --> trunk\inc\kernel
Stan Smith [Wed, 3 Feb 2010 23:45:16 +0000 (23:45 +0000)]
[INC\KERNEL] move shutter.h from hw\mlx4\kernel\inc --> trunk\inc\kernel

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

14 years ago[WinOF] RC3 prep.
Stan Smith [Wed, 3 Feb 2010 23:12:24 +0000 (23:12 +0000)]
[WinOF] RC3 prep.

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

14 years ago[IPOIB_NDIS6_CM] use SHUTTER data structure to eliminate the problem when IPoIB conti...
Stan Smith [Wed, 3 Feb 2010 23:04:54 +0000 (23:04 +0000)]
[IPOIB_NDIS6_CM] use SHUTTER data structure to eliminate the problem when IPoIB continue receive packets during shutdown/halt process.
signed-off-by: Alex Naslednikov [xalex@mellanox.co.il]

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

14 years ago[LIBIBVERBS] reorder sequence to be correct
Stan Smith [Wed, 3 Feb 2010 23:00:07 +0000 (23:00 +0000)]
[LIBIBVERBS] reorder sequence to be correct

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

14 years ago[OPENSM] OFED changes - rename %ProgramFiles%\WinOF --> %ProgramFiles%\OFED.
Stan Smith [Tue, 2 Feb 2010 01:12:41 +0000 (01:12 +0000)]
[OPENSM] OFED changes - rename %ProgramFiles%\WinOF --> %ProgramFiles%\OFED.

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

14 years ago[OFED] switch references to WinOF -- >OFED.
Stan Smith [Mon, 1 Feb 2010 18:13:47 +0000 (18:13 +0000)]
[OFED] switch references to WinOF -- >OFED.
Support target-OS & target-arch in build scripts & etc\clean-build.bat.
Migrate WIX package definitions from ofed.wxs files to new file common\Package.inc (easier maintenance).
DAT.conf,dt-cli.bat,dt-svr.bat: WinOF --> OFED as binaries are now installed into %ProgramFiles%\OFED\ .

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

14 years ago[OFED] OFED name change wof.wxs --> ofed.wxs, WinOF_cfg.inc --> Config.inc
Stan Smith [Mon, 1 Feb 2010 02:43:51 +0000 (02:43 +0000)]
[OFED] OFED name change wof.wxs --> ofed.wxs, WinOF_cfg.inc --> Config.inc

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

14 years ago[NDINSTALL] utilize getopt() changes to implement '/?' help request.
Stan Smith [Mon, 1 Feb 2010 02:31:33 +0000 (02:31 +0000)]
[NDINSTALL] utilize getopt() changes to implement '/?' help request.

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

14 years ago[OPENSM] whitespace cleanup
Stan Smith [Mon, 1 Feb 2010 02:29:19 +0000 (02:29 +0000)]
[OPENSM] whitespace cleanup

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

14 years ago[OFED] rename trunk\WinOF trunk\OFED
Stan Smith [Mon, 1 Feb 2010 02:25:09 +0000 (02:25 +0000)]
[OFED] rename trunk\WinOF trunk\OFED

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

14 years agolibibverbs/device: destroy completion channel when closing device
Sean Hefty [Fri, 29 Jan 2010 05:07:01 +0000 (05:07 +0000)]
libibverbs/device: destroy completion channel when closing device

From: Sean Hefty <sean.hefty@intel.com>

ibv_close_device should destroy the completion channel
when closing the device and freeing the memory.

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

14 years agodapl: use private_data_len for mem copies
Sean Hefty [Fri, 29 Jan 2010 05:06:11 +0000 (05:06 +0000)]
dapl: use private_data_len for mem copies

From: Sean Hefty <sean.hefty@intel.com>

When copying private_data out of rdma_cm events, use the
reported private_data_len for the size, and not IB maximums.
This fixes a bug running over the librdmacm on windows, where
DAPL accessed invalid memory.

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

14 years agodapl/cma: fix referencing freed address
Sean Hefty [Fri, 29 Jan 2010 05:05:03 +0000 (05:05 +0000)]
dapl/cma: fix referencing freed address

From: Sean Hefty <sean.hefty@intel.com>

DAPL uses a pointer to reference the local and remote addresses
of an endpoint.  It expects that those addresses are located
in memory that is always accessible.  Typically, for the local
address, the pointer references the address stored with the DAPL
HCA device.  However, for the cma provider, it changes this pointer
to reference the address stored with the rdma_cm_id.

This causes a problem when that endpoint is connected on the
passive side of a connection.  When connect requests are given
to DAPL, a new rdma_cm_id is associated with the request.  The
DAPL code replaces the current rdma_cm_id associated with a
user's endpoint with the new rdma_cm_id.  The old rdma_cm_id is
then deleted.  But the endpoint's local address pointer still
references the address stored with the old rdma_cm_id.  The
result is that any reference to the address will access freed
memory.

Fix this by keeping the local address pointer always pointing
to the address associated with the DAPL HCA device.  This is about
the best that can be done given the DAPL interface design.

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

14 years agolibrdmacm: set private_data_len
Sean Hefty [Fri, 29 Jan 2010 05:04:08 +0000 (05:04 +0000)]
librdmacm: set private_data_len

From: Sean Hefty <sean.hefty@intel.com>

Set the private_data_len for reported events.  This allows
DAPL to use the value when copying private data.

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

14 years agodapl: move close device after async thread is done using it
Sean Hefty [Fri, 29 Jan 2010 04:58:32 +0000 (04:58 +0000)]
dapl: move close device after async thread is done using it

Before calling ibv_close_device, wait for the asynchronous
processing thread to finish using the device.  This prevents
a use after free error.

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

14 years ago[DAPL2]
Stan Smith [Tue, 26 Jan 2010 20:31:36 +0000 (20:31 +0000)]
[DAPL2]
libibverbs/device: destroy completion channel when closing device
ibv_close_device should destroy the completion channel
when closing the device and freeing the memory.
 trunk/ulp/libibverbs/src/device.cpp

dapl: move close device after async thread is done using it
Before calling ibv_close_device, wait for the asynchronous
processing thread to finish using the device.  This prevents a use after free error.
 trunk/ulp/dapl2/dapl/openib_cma/device.c
 trunk/ulp/dapl2/dapl/openib_scm/device.c

librdmacm: set private_data_len
Set the private_data_len for reported events.  This allows DAPL to use the value when copying private data.
 trunk/ulp/librdmacm/include/rdma/rdma_cma.h
 trunk/ulp/librdmacm/src/cma.cpp

dapl: quick fix for wrong private data size
DAPL expects the private data size to be up to 256 bytes, but
on windows the private data size is limited to 56 bytes.  As
a result, DAPL can access memory beyond the end of what's
allocated.
A more 'correct' fix is being submitted upstream to dapl.  This
is a simpler fix for the Windows 2.2 release only.
 trunk/ulp/dapl2/dapl/openib_cma/cm.c

dapl/cma: fix referencing freed address
DAPL uses a pointer to reference the local and remote addresses
of an endpoint.  It expects that those addresses are located
in memory that is always accessible.  Typically, for the local
address, the pointer references the address stored with the DAPL
HCA device.  However, for the cma provider, it changes this pointer
to reference the address stored with the rdma_cm_id.

This causes a problem when that endpoint is connected on the
passive side of a connection.  When connect requests are given
to DAPL, a new rdma_cm_id is associated with the request.  The
DAPL code replaces the current rdma_cm_id associated with a
user's endpoint with the new rdma_cm_id.  The old rdma_cm_id is
then deleted.  But the endpoint's local address pointer still
references the address stored with the old rdma_cm_id.  The
result is that any reference to the address will access freed
memory.
Fix this by keeping the local address pointer always pointing
to the address associated with the DAPL HCA device.  This is about
the best that can be done given the DAPL interface design.
 trunk/ulp/dapl2/dapl/openib_common/qp.c

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

14 years ago[core] Improved error message. (mlnx 5511)
Tzachi Dar [Tue, 26 Jan 2010 10:09:53 +0000 (10:09 +0000)]
[core] Improved error message. (mlnx 5511)

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

14 years ago[core] Release the RDMA interface if ib_register_ca fails. (mlnx 5510)
Tzachi Dar [Tue, 26 Jan 2010 10:01:33 +0000 (10:01 +0000)]
[core] Release the RDMA interface if ib_register_ca fails. (mlnx 5510)

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

14 years ago[WINOF] RC3 prep
Stan Smith [Fri, 22 Jan 2010 23:19:06 +0000 (23:19 +0000)]
[WINOF] RC3 prep

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

14 years ago[WINVERBS] winverbs/lib: cache pkey table.
Stan Smith [Fri, 22 Jan 2010 23:11:37 +0000 (23:11 +0000)]
[WINVERBS] winverbs/lib: cache pkey table.
Connection establishment rates take a huge performance hit
as a result of using FindPkey, which results in querying the
HCA to lookup current pkey information.  Add a cache to the
userspace library for pkey information.

The cache is updated using the CWVDevice:Notify() routine.
Before any access is made to the cache, the caller checks
for changes to the partition tables.  If a change is found,
then the cache is updated.  Otherwise, the cache is accessed
to map pkey values to indices.

This results in the connection rate over winverbs almost doubling.

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

14 years ago[WINVERBS} winverbs/ep: handle receiving REQ then DREQ.
Stan Smith [Fri, 22 Jan 2010 23:08:40 +0000 (23:08 +0000)]
[WINVERBS} winverbs/ep: handle receiving REQ then DREQ.
For fast connections, it's possible to receive a DREQ immediately
after receiving a REQ, without an RTU coming in between.  If we've
sent a REP to the REQ, then the DREQ should be treated as if the
connection had been fully established.  (The RTU could be delayed,
and the communication established event is processed asynchronously,
so there's no way to tell for certain.)

This fixes an issue where the passive side Accept() call fails
waiting for the RTU, but receives a DREQ instead.

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

14 years ago[CORE] ib/mad: fix routing of vendor mads.
Stan Smith [Fri, 22 Jan 2010 23:05:49 +0000 (23:05 +0000)]
[CORE] ib/mad: fix routing of vendor mads.
SVN commit 2174 introduced an error that resulted in all
vendor MADs being routed to the local HCA driver.

This results in the ib-diag vendstat failing to receive
a response when trying to gather statistics about a remote
device.

We should only route vendor mads to the local HCA if the
mad is one of the mellanox vendor classes, the mad is not
a response, and the local HCA is the destination for the
mad.  Simplify both the send and receive processing to
be consistent in vendor mad handling.

Problem reported by Mohammad Sawalha.

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

14 years ago[LIBIBUMAD] libibumad: fix freeing wrong memory on failure
Stan Smith [Fri, 22 Jan 2010 23:02:38 +0000 (23:02 +0000)]
[LIBIBUMAD] libibumad: fix freeing wrong memory on failure
umad_get_ca() should free the allocated 'ports' memory on failure,
not the ca structure, which is provided by the user.

Bug reported by Leonid Keller.

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

14 years agowinverbs branch: test author fix
Sean Hefty [Thu, 21 Jan 2010 06:25:34 +0000 (06:25 +0000)]
winverbs branch: test author fix

From: Sean Hefty <sean.hefty@intel.com>

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

14 years agoib/mad: fix routing of vendor mads
Sean Hefty [Thu, 21 Jan 2010 06:09:33 +0000 (06:09 +0000)]
ib/mad: fix routing of vendor mads

SVN commit 2174 introduced an error that resulted in all
vendor MADs being routed to the local HCA driver.

This results in the ib-diag vendstat failing to receive
a response when trying to gather statistics about a remote
device.

We should only route vendor mads to the local HCA if the
mad is one of the mellanox vendor classes, the mad is not
a response, and the local HCA is the destination for the
mad.

Problem reported by Mohammad Sawalha.

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

14 years agowinverbs/ep: handle receiving REQ then DREQ
Sean Hefty [Thu, 21 Jan 2010 06:09:19 +0000 (06:09 +0000)]
winverbs/ep: handle receiving REQ then DREQ

For fast connections, it's possible to receive a DREQ immediately
after receiving a REQ, without an RTU coming in between.  If we've
sent a REP to the REQ, then the DREQ should be treated as if the
connection had been fully established.  (The RTU could be delayed,
and the communication established event is processed asynchronously,
so there's no way to tell for certain.)

This fixes an issue where the passive side Accept() call fails
waiting for the RTU, but receives a DREQ instead.

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

14 years agodocs/interfaces.txt: add documentation to describe interface differences
Sean Hefty [Thu, 21 Jan 2010 06:09:06 +0000 (06:09 +0000)]
docs/interfaces.txt: add documentation to describe interface differences

Provide a simple documentation that defines the main userspace
verbs interfaces and the differences between them.

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

14 years agowinverbs/lib: cache pkey table
Sean Hefty [Thu, 21 Jan 2010 06:08:53 +0000 (06:08 +0000)]
winverbs/lib: cache pkey table

Connection establishment rates take a huge performance hit
as a result of using FindPkey, which results in querying the
HCA to lookup current pkey information.  Add a cache to the
userspace library for pkey information.

The cache is updated using the CWVDevice:Notify() routine.
Before any access is made to the cache, the caller checks
for changes to the partition tables.  If a change is found,
then the cache is updated.  Otherwise, the cache is accessed
to map pkey values to indices.

This results in the connection rate over winverbs almost
doubling.

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

14 years agolibibumad: fix freeing wrong memory on failure
Sean Hefty [Thu, 21 Jan 2010 06:08:38 +0000 (06:08 +0000)]
libibumad: fix freeing wrong memory on failure

umad_get_ca() should free the allocated 'ports' memory on failure,
not the ca structure, which is provided by the user.

Bug reported by Leonid Keller.

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

14 years ago[WINVERBS,ND,WINMAD,MAD] delete critical sections when no longer needed.
Stan Smith [Fri, 15 Jan 2010 23:13:42 +0000 (23:13 +0000)]
[WINVERBS,ND,WINMAD,MAD] delete critical sections when no longer needed.
To avoid leaking memory, we need to call DeleteCriticalSection
for all critical sections once they are no longer needed.

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

14 years agowinverbs: delete critical sections when no longer needed
Sean Hefty [Fri, 15 Jan 2010 17:14:46 +0000 (17:14 +0000)]
winverbs: delete critical sections when no longer needed

To avoid leaking memory, we need to call DeleteCriticalSection
for all critical sections once they are no longer needed.

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

14 years agoetc/getopt: allow use of '/' for command line args
Sean Hefty [Fri, 15 Jan 2010 17:14:20 +0000 (17:14 +0000)]
etc/getopt: allow use of '/' for command line args

Windows uses '/' to specify command line arguments.  Change
getopt to allow using '-' or '/'.

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

14 years ago[WINOF] RC2 prep.
Stan Smith [Wed, 13 Jan 2010 22:18:46 +0000 (22:18 +0000)]
[WINOF] RC2 prep.

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

14 years ago[ND/WINVERBS] winverbs/nd: map completion status to ND value convert flushed completi...
Stan Smith [Wed, 13 Jan 2010 22:12:21 +0000 (22:12 +0000)]
[ND/WINVERBS] winverbs/nd: map completion status to ND value convert flushed completion status values
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2666 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years agowinverbs/nd: map completion status to ND values
Sean Hefty [Wed, 13 Jan 2010 19:34:38 +0000 (19:34 +0000)]
winverbs/nd: map completion status to ND values

Convert flushed completion status values

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

14 years agowinverbs/netdirect: add support for inline sends
Sean Hefty [Wed, 13 Jan 2010 19:34:27 +0000 (19:34 +0000)]
winverbs/netdirect: add support for inline sends

By default, use inline sends, and allow user to limit
inline send size through an environment variable.

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

14 years agoib/cm: poll for CM REQ events
Sean Hefty [Wed, 13 Jan 2010 19:34:17 +0000 (19:34 +0000)]
ib/cm: poll for CM REQ events

Replace the callback mechanism for reporting connection
requests with one that requires the user to poll for the
events.  This allows queuing REQs in the CM until the user
is ready to process the events.

Still provide a callback mechanism to notify the user that
REQ events are ready to be retrieved.

This change improves the connection rate for winverbs when
the user retrieves only a small number of requests at a time.

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

14 years agoib/cm: separate listen callback into own handler
Sean Hefty [Wed, 13 Jan 2010 19:34:07 +0000 (19:34 +0000)]
ib/cm: separate listen callback into own handler

Extract listen handling in cm_cep_handler into a separate
handler.  This will simplify changes to support queuing
connection requests and allow connection requests to move
to a fetch model, rather than a callback model.

Since connection requests require allocating new resources,
connection rates can be improved by queuing the requests
until the user has allocated the resources, then fetches
the request.

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

14 years agoib/cm: fix handling of REJ in REQ_RCVD state
Sean Hefty [Wed, 13 Jan 2010 19:33:56 +0000 (19:33 +0000)]
ib/cm: fix handling of REJ in REQ_RCVD state

If a REJ is received immediately after receiving a REQ,
then a callback can be queued to the user for the REJ before
the user has had a chance to see or process the REQ.  The
result is that the user will not have had a chance to set
any context associated with the REQ, which can lead to a
crash processing the REJ.

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

14 years ago[NETDIRECT] [PATCH 4/4] winverbs/netdirect: add support for inline sends
Stan Smith [Wed, 13 Jan 2010 19:04:32 +0000 (19:04 +0000)]
[NETDIRECT] [PATCH 4/4] winverbs/netdirect: add support for inline sends
By default, use inline sends, and allow user to limit
inline send size through an environment variable.

To support existing deployments, winverbs make use of the same
environment setting as the ibal ND provider.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
---
Note: The kernel HCA drivers report 0 for the max inline send
value for user space QPs, even if inline sends are enabled.  I didn't
understand how to fix the kernel drivers, so they could report the
correct value.  The winverbs ND code simply returns the value that it
uses when creating the QP.

 trunk/ulp/netdirect/user/nd_ep.cpp
 trunk/ulp/netdirect/user/nd_ep.h

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

14 years ago[CORE,INC] [PATCH 1/4] ib/cm: fix handling of REJ in REQ_RCVD state
Stan Smith [Wed, 13 Jan 2010 18:59:42 +0000 (18:59 +0000)]
[CORE,INC] [PATCH 1/4] ib/cm: fix handling of REJ in REQ_RCVD state
If a REJ is received immediately after receiving a REQ,
then a callback can be queued to the user for the REJ before
the user has had a chance to see or process the REQ.  The
result is that the user will not have had a chance to set
any context associated with the REQ, which can lead to a
crash processing the REJ.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
 trunk/core/al/kernel/al_cm_cep.c

[PATCH 2/4] ib/cm: separate listen callback into own handler
Extract listen handling in cm_cep_handler into a separate
handler.  This will simplify changes to support queuing
connection requests and allow connection requests to move
to a fetch model, rather than a callback model.

Since connection requests require allocating new resources,
connection rates can be improved by queuing the requests
until the user has allocated the resources, then fetches
the request.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/core/al/kernel/al_cm.c

[PATCH 3/4] ib/cm: poll for CM REQ events
Replace the callback mechanism for reporting connection
requests with one that requires the user to poll for the
events.  This allows queuing REQs in the CM until the user
is ready to process the events.

Still provide a callback mechanism to notify the user that
REQ events are ready to be retrieved.

This change improves the connection rate for winverbs when
the user retrieves only a small number of requests at a time.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/core/al/kernel/al_cm.c
 trunk/core/al/kernel/al_cm_cep.c
 trunk/core/winverbs/kernel/wv_ep.c
 trunk/inc/kernel/iba/ib_cm_ifc.h

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

14 years ago[IPOIB_NDIS6_CM] fix the improper reporting of IPoIB port rate and removes obsolete...
Stan Smith [Wed, 13 Jan 2010 18:40:25 +0000 (18:40 +0000)]
[IPOIB_NDIS6_CM] fix the improper reporting of IPoIB port rate and removes obsolete OID_GEN_LINK_SPEED
signed-off by: Alexander Naslednikov (xalex at mellanox.co.il)

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

14 years ago[IPOIB/IPOIB_NDIS6_CM] fix the problem when IPoIB increments the receive statistics...
Stan Smith [Wed, 13 Jan 2010 17:39:56 +0000 (17:39 +0000)]
[IPOIB/IPOIB_NDIS6_CM] fix the problem when IPoIB increments the receive statistics twice.
Signed-off by: Tzachi Dar (tzachid at mellanox.co.il)
Signed-off by: Alex Naslednikov (xalex@mellanox.co.il)

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

14 years ago[IPOIB] install the ND/winverbs (wvndprov.dll) provider along with the ND/ibal provider.
Stan Smith [Wed, 13 Jan 2010 00:39:37 +0000 (00:39 +0000)]
[IPOIB] install the ND/winverbs (wvndprov.dll) provider along with the ND/ibal provider.

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

14 years ago[WINOF] 2.2 RC1 prep.
Stan Smith [Thu, 7 Jan 2010 22:41:27 +0000 (22:41 +0000)]
[WINOF] 2.2 RC1 prep.

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

14 years ago[WINOF] whitespace cleanup & remove unused SM startup code.
Stan Smith [Thu, 7 Jan 2010 22:36:45 +0000 (22:36 +0000)]
[WINOF] whitespace cleanup & remove unused SM startup code.

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

14 years ago[WINVERBS] winverbs: use separate structure to queue async work
Stan Smith [Tue, 5 Jan 2010 19:05:28 +0000 (19:05 +0000)]
[WINVERBS] winverbs: use separate structure to queue async work
KMDF tracks all requests that pass through an IO queue.  Even after a
request has been removed from the queue, the request still maintains a
reference on the queue.  Any attempt to delete the queue will block
until all requests holding references on the queue have completed.

To avoid deadlock conditions during cleanup, we need to ensure that
all requests can complete during cleanup.  Modify the asynchronous
handling code to queue a separate data structure, so that all requests
can remain on the IO queues.

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

14 years ago[IBAL] ib/cm: fix handling failed send completions
Stan Smith [Tue, 5 Jan 2010 18:59:21 +0000 (18:59 +0000)]
[IBAL] ib/cm: fix handling failed send completions
__cep_mad_send_cb() assumes that the mad being processed is
associated with the current state of the CEP.  This may not be
the case.
For example, for a short lived connection, it was observed that
a REP mad completed with status canceled.  This is normal.  However,
the user already attempted to disconnect the connection by sending
a DREQ.  This left the cep in the DREQ_SENT state by the time that
the REP mad completed.  Since the REP status was not success, but the
state was DREQ_SENT, the code assumed that the DREQ had failed and
transitioned the cep into TIMEWAIT.  The result is that the DREQ is never
>matched with a DREP or canceled, but holds a reference on the CEP.
Until the DREQ times out (time depends on connection, but easily
up to a minute), attempts to destroy the CEP are blocked.
Fix this by simply discarding any completed sends that were not
sent from the current state of the cep when the completion handler
is invoked.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2652 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

14 years ago[IPoIB_NDIS6_CM] fix the wrong length calculation of
Stan Smith [Tue, 5 Jan 2010 18:51:23 +0000 (18:51 +0000)]
[IPoIB_NDIS6_CM] fix the wrong length calculation of
first MDL within Net Buffer object.
The actual length of first MDL should be incremented by it's offset
signed-off by: Alexander Naslednikov (xalex at mellanox.co.il)

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

14 years agoib/cm: fix handling failed send completions
Sean Hefty [Mon, 4 Jan 2010 19:01:09 +0000 (19:01 +0000)]
ib/cm: fix handling failed send completions

__cep_mad_send_cb() assumes that the mad being processed is
associated with the current state of the CEP.  This may not be
the case.

For example, for a short lived connection, it was observed that
a REP mad completed with status canceled.  This is normal.  However,
the user already attempted to disconnect the connection by sending
a DREQ.  This left the cep in the DREQ_SENT state by the time that
the REP mad completed.  Since the REP failed, but the state was
DREQ_SENT, the code assumed that the DREQ had failed and transitioned
the cep into TIMEWAIT.  The result is that the DREQ is never
matched with a DREP or canceled, but holds a reference on the CEP.

Until the DREQ times out (time depends on connection, but easily
up to a minute), attempts to destroy the CEP are blocked.

Fix this by simply discarding any completed sends that were not
sent from the current state of the cep when the completion handler
is invoked.

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

14 years agoKMDF tracks all requests that pass through an IO queue. Even after a
Sean Hefty [Mon, 4 Jan 2010 19:00:54 +0000 (19:00 +0000)]
KMDF tracks all requests that pass through an IO queue.  Even after a
request has been removed from the queue, the request still maintains a
reference on the queue.  Any attempt to delete the queue will block
until all requests holding references on the queue have completed.

To avoid deadlock conditions during cleanup, we need to ensure that
all requests can complete during cleanup.  Modify the asynchronous
handling code to queue a separate data structure, so that all requests
can remain on the IO queues.

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

14 years agoetc/bld: allow specifying x32 for x86 builds
shefty [Mon, 4 Jan 2010 19:00:38 +0000 (19:00 +0000)]
etc/bld: allow specifying x32 for x86 builds

To make it easier on the user, allow specifying a 32-bit build
using x32 or x86.  x32 is more natural with x64 being the
64-bit build.

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

14 years ago[mlx4_bus] Add support for RoCEE to the low level driver.
tzachid [Mon, 4 Jan 2010 17:34:19 +0000 (17:34 +0000)]
[mlx4_bus] Add support for RoCEE to the low level driver.

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

14 years ago[DOCS] manual.htm - Corrected uDAT/uDAPL discussion as uDAPL v1.1 provider is no...
stansmith [Tue, 29 Dec 2009 21:31:52 +0000 (21:31 +0000)]
[DOCS] manual.htm - Corrected uDAT/uDAPL discussion as uDAPL v1.1 provider is no longer supported. Fixed lingering %ProgramFiles(x86)% install path problems; removed (x86) as WinOF is installed as %ProgramFIles%\ on all systems. Updated SRP discussion to include a how to configure a Linx/OFED SRP target (vdisk+BLOCKIO) accessible from Windows.

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

14 years ago[OPENSM] Temp fix for broken SRP operation; revert back to working code. Real fix...
stansmith [Thu, 24 Dec 2009 00:40:46 +0000 (00:40 +0000)]
[OPENSM] Temp fix for broken SRP operation; revert back to working code. Real fix touches numerous files, will be delayed until after 2.2 release.

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

14 years ago[OPENSM] added syslog() call to record Windows Service control calls (128,129) [clear...
stansmith [Thu, 24 Dec 2009 00:36:08 +0000 (00:36 +0000)]
[OPENSM] added syslog() call to record Windows Service control calls (128,129) [clear log file & start heavy sweep].

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

14 years ago[DAPL2] tolerate a disconnect callback racing ahead during EP disconnect(), do not...
stansmith [Thu, 24 Dec 2009 00:26:19 +0000 (00:26 +0000)]
[DAPL2] tolerate a disconnect callback racing ahead during EP disconnect(), do not return an error on invalid handle.
update .rc file to reflect IBAL provider.

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

14 years ago[WINOF] Install previous OpenSM version 3.0.0 as an emergency SM backup; 2-2 only...
stansmith [Tue, 15 Dec 2009 20:53:37 +0000 (20:53 +0000)]
[WINOF] Install previous OpenSM version 3.0.0 as an emergency SM backup; 2-2 only. Reference/install OpenSM related files from a single file instead of OpenSM_service.inc & tools.inc.

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

14 years ago[WINOF] reference/install OpenSM related files from a single file instead of OpenSM_s...
stansmith [Tue, 15 Dec 2009 20:48:55 +0000 (20:48 +0000)]
[WINOF] reference/install OpenSM related files from a single file instead of OpenSM_service.inc & tools.inc.

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

14 years ago[OPENSM] added OpenSM version to osmtest.rc file description string for easy ID....
stansmith [Tue, 15 Dec 2009 20:39:53 +0000 (20:39 +0000)]
[OPENSM] added OpenSM version to osmtest.rc file description string for easy ID. osmtest.rc was not being compiled in, added osmtest.rc file to SOURCES file.

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

14 years ago[WINOF] version update
stansmith [Mon, 14 Dec 2009 19:46:03 +0000 (19:46 +0000)]
[WINOF] version update

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