]> git.openfabrics.org - ~shefty/rdma-win.git/log
~shefty/rdma-win.git
16 years ago[DAPL2] Request extensions didn't allocate a cookie if the completion was suppressed...
stansmith [Fri, 13 Jun 2008 00:00:03 +0000 (00:00 +0000)]
[DAPL2] Request extensions didn't allocate a cookie if the completion was suppressed, which resulted in segfault during provider post call. Provider's expect a *cookie in wr_id, even with surpressed completions, needed to handle events during errors.

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

16 years ago[WinOF] v2.0 prep - WDK build env structure for multiple OS flavors: WLH, WNET &...
stansmith [Thu, 12 Jun 2008 23:54:39 +0000 (23:54 +0000)]
[WinOF] v2.0 prep - WDK build env structure for multiple OS flavors: WLH, WNET & WXP.
scripts to build .cat files and Digitally sign drivers, given a certificate (.cer) file.

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

16 years ago[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW...
leonidk [Thu, 12 Jun 2008 17:35:37 +0000 (17:35 +0000)]
[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW by its vendor.

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

16 years ago[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW...
leonidk [Wed, 11 Jun 2008 10:25:31 +0000 (10:25 +0000)]
[TOOLS] remove Mellanox burning tools. They are to be provided for each kind of HW by its vendor.

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

16 years ago[MTHCA] added returning max_avs for Tavor
leonidk [Tue, 10 Jun 2008 16:21:02 +0000 (16:21 +0000)]
[MTHCA] added returning max_avs for Tavor

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

16 years ago[ALL] fix drivers to return PKEY in BE order as IBAL requires [MLNX: 2551]
leonidk [Tue, 10 Jun 2008 16:16:44 +0000 (16:16 +0000)]
[ALL] fix drivers to return PKEY in BE order as IBAL requires [MLNX: 2551]

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

16 years ago[HW] remove GPL comments from windows-reimplemented bit macros
leonidk [Tue, 10 Jun 2008 16:10:02 +0000 (16:10 +0000)]
[HW] remove GPL comments from windows-reimplemented bit macros

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

16 years ago[HW] replace GPL-protected Linux implementation of lists by Windows one
leonidk [Tue, 10 Jun 2008 16:09:13 +0000 (16:09 +0000)]
[HW] replace GPL-protected Linux implementation of lists by Windows one

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

16 years ago[TOOLS] fixed a bug in setting parameters on x64 platform [MLNX: 2558]
leonidk [Tue, 10 Jun 2008 15:09:27 +0000 (15:09 +0000)]
[TOOLS] fixed a bug in setting parameters on x64 platform [MLNX: 2558]

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

16 years agowinverbs: fix retrieving library name
shefty [Sun, 8 Jun 2008 06:49:56 +0000 (06:49 +0000)]
winverbs: fix retrieving library name

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

16 years agowinverbs/pd: avoid referencing freed memory
shefty [Sun, 8 Jun 2008 06:49:09 +0000 (06:49 +0000)]
winverbs/pd: avoid referencing freed memory

We need to walk the MR map starting at the head each time.  Using the 'next' entry results in accessing freed memory.

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

16 years agowinverbs/qp: set max inline qp creation attribute value
shefty [Sun, 8 Jun 2008 06:47:44 +0000 (06:47 +0000)]
winverbs/qp: set max inline qp creation attribute value

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

16 years agolibibverbs: set device attributes correctly
shefty [Sun, 8 Jun 2008 06:46:55 +0000 (06:46 +0000)]
libibverbs: set device attributes correctly

A few device attributes were set incorrectly.  Fix that.

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

16 years agownverbs/device: fix crashes
shefty [Sun, 8 Jun 2008 06:44:51 +0000 (06:44 +0000)]
wnverbs/device: fix crashes

Fix accessing variable before it's set, and references to invalid port numbers.

Also, the HCA driver does not support querying on usermode device handles, so use the kernel handle when querying for attributes.

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

16 years agowinverbs/cq: initialize cq device pointer
shefty [Sun, 8 Jun 2008 06:41:48 +0000 (06:41 +0000)]
winverbs/cq: initialize cq device pointer

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

16 years agowinverbs/qp_context: set qp handle in pre_create call
shefty [Sun, 8 Jun 2008 06:40:15 +0000 (06:40 +0000)]
winverbs/qp_context: set qp handle in pre_create call

We need the qp handle in the pre_create call in order to save the qp context.

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

16 years agolibibverbs/rc_pingpong: initialize variables
shefty [Sun, 8 Jun 2008 06:38:37 +0000 (06:38 +0000)]
libibverbs/rc_pingpong: initialize variables

We need to add explicit initialization to ported code that was changed as a result of compiler differences.

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

16 years agolibibverbs: ibv_get_device_list allows *num as optional parameter
shefty [Sun, 8 Jun 2008 06:36:36 +0000 (06:36 +0000)]
libibverbs: ibv_get_device_list allows *num as optional parameter

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

16 years agogetopt: add support for long options
shefty [Sun, 8 Jun 2008 06:35:02 +0000 (06:35 +0000)]
getopt: add support for long options

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

16 years ago[MLX4] return a more specific return code (in the bad flow of create_cq) [MLNX: 2554]
leonidk [Thu, 5 Jun 2008 12:04:45 +0000 (12:04 +0000)]
[MLX4] return a more specific return code (in the bad flow of create_cq) [MLNX: 2554]

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

16 years agowinverbs: move reference counting back to WvBase and use virtual Delete call
shefty [Thu, 5 Jun 2008 06:23:08 +0000 (06:23 +0000)]
winverbs: move reference counting back to WvBase and use virtual Delete call

Move AddRef and Release back into WvBase.  Add a virtual function Delete() to WvBase that derived classes set to delete 'this'.  This avoids the heap corruption issues without classes re-implementing Release.

This fixes an issue with the previous fix where heap corruption still would have occurred if a user released the QP interface after releasing the derived interface (such as the connected QP interface).

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

16 years agowinverbs: rename member variable to include 'm_'
shefty [Thu, 5 Jun 2008 03:04:43 +0000 (03:04 +0000)]
winverbs: rename member variable to include 'm_'

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

16 years agowinverbs: do not inherit Release() calls
shefty [Thu, 5 Jun 2008 03:03:58 +0000 (03:03 +0000)]
winverbs: do not inherit Release() calls

Release() tries to delete an object when its reference count reaches 0.  Inheriting Release() from WvBase ends up corrupting the heap when WvBase tries to delete 'this'.

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

16 years agowinverbs: wait to create device on PnP power up (D0)
shefty [Thu, 5 Jun 2008 03:00:58 +0000 (03:00 +0000)]
winverbs: wait to create device on PnP power up (D0)

The hca drivers are not ready to handle query interface and function calls until the device enters the D0 power state.  Delay initializing the RDMA device until winverbs sees the D0 power state for that device.  This is only done the first time that the device enters the power state to avoid losing user context information just because the device enters a lower powered state.

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

16 years ago[TOOLS] fix license
leonidk [Wed, 4 Jun 2008 15:32:28 +0000 (15:32 +0000)]
[TOOLS] fix license

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

16 years agowinverbs: track changes against trunk using patch files
shefty [Wed, 4 Jun 2008 04:59:06 +0000 (04:59 +0000)]
winverbs: track changes against trunk using patch files

Add patch directory with patches that can be applied.  This simplifies tracking changes against the trunk, and makes it easier to update only affected patches with changes.

This will help when merging the changes into the trunk.

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

16 years agowinverbs: undo changes to files tracked in trunk
shefty [Wed, 4 Jun 2008 04:12:02 +0000 (04:12 +0000)]
winverbs: undo changes to files tracked in trunk

Undo any changes to files that exist in the trunk.  All changes will be added as patches to make synchronizing changes in the winverb branch with the trunk easier.  The patches will then be applied directly to the trunk when merging.

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

16 years agodocs/dontdiff.txt: add .bin, .rej, and .orig files to the skip list
shefty [Wed, 4 Jun 2008 03:48:05 +0000 (03:48 +0000)]
docs/dontdiff.txt: add .bin, .rej, and .orig files to the skip list

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

16 years agoMerge with trunk rev 1231.
shefty [Tue, 3 Jun 2008 22:41:24 +0000 (22:41 +0000)]
Merge with trunk rev 1231.

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

16 years agolibibverbs: add port of sample programs
shefty [Tue, 3 Jun 2008 22:24:59 +0000 (22:24 +0000)]
libibverbs: add port of sample programs

Add port of example ibv_devinfo and ibv_rc_pingpong programs.

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

16 years agowinverbs: fix including header file from .c sources
shefty [Tue, 3 Jun 2008 22:23:43 +0000 (22:23 +0000)]
winverbs: fix including header file from .c sources

Fix build error when including winverbs.h from a .c file.

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

16 years agowinverbs: use common getopt sources
shefty [Tue, 3 Jun 2008 22:22:22 +0000 (22:22 +0000)]
winverbs: use common getopt sources

getopt was moved from internal to winverbs to a public location.  Use the new common files.

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

16 years agoetc: add generic getopt functionality
shefty [Tue, 3 Jun 2008 22:21:01 +0000 (22:21 +0000)]
etc: add generic getopt functionality

Add a common getopt implementation available to any app/library.  Source file is located in etc\user, and header file is located in inc\user.

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

16 years ago[WinOF] WDK build env; good to go.
stansmith [Tue, 3 Jun 2008 19:38:02 +0000 (19:38 +0000)]
[WinOF] WDK build env; good to go.

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

16 years ago[DAPL] match winof 1.1
stansmith [Tue, 3 Jun 2008 19:36:03 +0000 (19:36 +0000)]
[DAPL] match winof 1.1

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

16 years ago[WinOF] WDK build env updates
stansmith [Tue, 3 Jun 2008 19:32:39 +0000 (19:32 +0000)]
[WinOF] WDK build env updates

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

16 years ago[MLX4] return a more specific return code (in the bad flow of create_cq) [MLNX: 2537]
leonidk [Mon, 2 Jun 2008 16:36:08 +0000 (16:36 +0000)]
[MLX4] return a more specific return code (in the bad flow of create_cq) [MLNX: 2537]

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

16 years ago[MLX4] bugfix: fill alt_port_num field in qp_modify
leonidk [Sun, 1 Jun 2008 17:29:33 +0000 (17:29 +0000)]
[MLX4] bugfix: fill alt_port_num field in qp_modify

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

16 years ago[MLX4] fixed warnings in DBG environment
leonidk [Sun, 1 Jun 2008 17:26:52 +0000 (17:26 +0000)]
[MLX4] fixed warnings in DBG environment

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

16 years ago[MLX4] fixed a PREFast warning
leonidk [Sun, 1 Jun 2008 17:24:15 +0000 (17:24 +0000)]
[MLX4] fixed a PREFast warning

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

16 years ago[MLX4] fixed bug: send WQE buffer initialization was skipped in case of NDI provider...
leonidk [Sun, 1 Jun 2008 17:10:11 +0000 (17:10 +0000)]
[MLX4] fixed bug: send WQE buffer initialization was skipped in case of NDI provider [MLNX: 2531]

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

16 years ago[SRP] fixes the BSOD when SRPT disconnects.
leonidk [Sun, 1 Jun 2008 14:19:59 +0000 (14:19 +0000)]
[SRP] fixes the BSOD when SRPT disconnects.

Suggested by: Eleanor Witiak [eleanor.witiak@qlogic.com]

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

16 years agolibibverbs: complete initial implementation
shefty [Sat, 31 May 2008 07:31:01 +0000 (07:31 +0000)]
libibverbs: complete initial implementation

The implementation lacks complete support for all potential threading usage models, but it should support current usage models.  The library is about 90% complete, and should be usable by most applications.  Missing functionality and complete multi-threading support will be deferred until an application requires it, or a later time.

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

16 years agowinverbs: modify how device events are reported
shefty [Sat, 31 May 2008 07:24:22 +0000 (07:24 +0000)]
winverbs: modify how device events are reported

Change reporting device events to simplify interface and avoid missing events.  Device events are now set using flags, allowing multiple events to occur in the kernel before userspace retrieves them.  This will avoid losing events or userspace needing to call into the kernel to retrieve one event at a time.  Events are also associated with a device port, rather than with the device itself.

The new types of events are kept more generic for transport neutral independence.

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

16 years agowinverbs: remove debug print messages
shefty [Sat, 31 May 2008 07:20:19 +0000 (07:20 +0000)]
winverbs: remove debug print messages

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

16 years agolibibverbs: initial implementation
shefty [Thu, 29 May 2008 19:59:59 +0000 (19:59 +0000)]
libibverbs: initial implementation

Most function coded, except for those dealing with event handling.

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

16 years agowinverbs: update driver and library to support libibverbs interfaces
shefty [Thu, 29 May 2008 19:52:12 +0000 (19:52 +0000)]
winverbs: update driver and library to support libibverbs interfaces

Updates based on adding support for libibverbs interfaces.

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

16 years agoibal: modify layout work request structure
shefty [Thu, 29 May 2008 19:50:24 +0000 (19:50 +0000)]
ibal: modify layout work request structure

Modify layout of ib_send_wr_t to eliminate internal padding and reduce the structure size.  Using the new layout, users can cast between the IBAL ib_send_wr_t and the OFED struct ibv_send_wr.

Also modify the wr type enums to allow quick checks for receive completions.

ULPs are unaffected by this change, except for a re-compile.

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

16 years ago[WinOF] WDK build env, support multiple OS flavors; use more common arch files
stansmith [Wed, 28 May 2008 01:14:18 +0000 (01:14 +0000)]
[WinOF] WDK build env, support multiple OS flavors; use more common arch files

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

16 years ago[WinOF] WDK build env, support multiple OS flavors; use common arch files
stansmith [Wed, 28 May 2008 00:26:34 +0000 (00:26 +0000)]
[WinOF] WDK build env, support multiple OS flavors; use common arch files

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

16 years ago[WinOF] WDK build env, support multiple OS flavors; separate by OS/arch
stansmith [Wed, 28 May 2008 00:20:13 +0000 (00:20 +0000)]
[WinOF] WDK build env, support multiple OS flavors; separate by OS/arch

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

16 years ago[WinOF] adding WDK/OS specific installer build folders.
stansmith [Tue, 27 May 2008 23:01:06 +0000 (23:01 +0000)]
[WinOF] adding WDK/OS specific installer build folders.

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

16 years ago[DAPL2] incorporate WinOF 1.1 DAPL fixes for rnr handling.
stansmith [Tue, 27 May 2008 22:52:49 +0000 (22:52 +0000)]
[DAPL2] incorporate WinOF 1.1 DAPL fixes for rnr handling.

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

16 years ago[WinOF] WDK build env - say goodbye to DDK builds.
stansmith [Tue, 27 May 2008 22:47:16 +0000 (22:47 +0000)]
[WinOF] WDK build env - say goodbye to DDK builds.

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

16 years ago[TOOLS] support the work on Server 2008, where there are both IPv4 and IPv6. [MLNX...
leonidk [Mon, 26 May 2008 09:50:20 +0000 (09:50 +0000)]
[TOOLS] support the work on Server 2008, where there are both IPv4 and IPv6. [MLNX: 2505]

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

16 years ago[TOOLS] support the work on Server 2008, where there are both IPv4 and IPv6. [MLNX...
leonidk [Mon, 26 May 2008 09:46:46 +0000 (09:46 +0000)]
[TOOLS] support the work on Server 2008, where there are both IPv4 and IPv6. [MLNX: 2505]

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

16 years ago[MLX4] fixed incorrect return code in bad flow, which caused kernel crash. [MLNX...
leonidk [Sun, 25 May 2008 15:56:26 +0000 (15:56 +0000)]
[MLX4] fixed incorrect return code in bad flow, which caused kernel crash. [MLNX: 2500]

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

16 years agowinverbs: fix 64-bit build warnings
shefty [Fri, 23 May 2008 07:54:19 +0000 (07:54 +0000)]
winverbs: fix 64-bit build warnings

Also use default build warnings, which work now with WDK.

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

16 years agowinverbs: check HRESULT not memory window pointer
shefty [Fri, 23 May 2008 07:04:43 +0000 (07:04 +0000)]
winverbs: check HRESULT not memory window pointer

64-bit build flagged this incorrect check.

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

16 years agowinverbs: move include for winioctl from wv_memory.h to wv_base.h
shefty [Fri, 23 May 2008 06:52:16 +0000 (06:52 +0000)]
winverbs: move include for winioctl from wv_memory.h to wv_base.h

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

16 years agowinverbs: allow synchronous operations
shefty [Fri, 23 May 2008 06:40:07 +0000 (06:40 +0000)]
winverbs: allow synchronous operations

The winverbs library incorrectly calls DeviceIoControl with a NULL overlapped structure.  Since the file was opened with overlapped I/O, the results of any DeviceIoControl calls are indetermined, according to the documentation.

The intent of using NULL was to convert from an asynchronous operation to a synchronous call.  To fix this, provide a wrapper around DeviceIoControl that can accept a NULL overlapped parameter.  If a NULL parameter is used, the call converts to a synchronous operation.

The wrapper is implemeted by adding a base class, CWVBase, that the other classes will derive from.  Common functionality and data are moved out of the existing classes and into CWVBase.

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

16 years agowinverbs.h: allow user to specify synchronous operation
shefty [Fri, 23 May 2008 06:31:39 +0000 (06:31 +0000)]
winverbs.h: allow user to specify synchronous operation

Make overlapped optional to all calls.  If the user passes in NULL, the operation will revert to a synchronous call.

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

16 years agowinverb/test: fix inconsistent Windows/Unix line endings
shefty [Fri, 23 May 2008 06:28:23 +0000 (06:28 +0000)]
winverb/test: fix inconsistent Windows/Unix line endings

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

16 years agowinverbs: fix inf file to install driver as upper class filter to InfiniBandHca
shefty [Thu, 22 May 2008 02:01:16 +0000 (02:01 +0000)]
winverbs: fix inf file to install driver as upper class filter to InfiniBandHca

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

16 years agoindexlist: fix dereferencing NULL pointer
shefty [Thu, 22 May 2008 01:59:21 +0000 (01:59 +0000)]
indexlist: fix dereferencing NULL pointer

If the indexlist has not grown, then pArray is NULL.  Calls to the IndexList API will end up accessing a NULL pointer.  To avoid adding checks (pArray != NULL) in the API, allocate an 'EmptyList' index entry that pArray can reference until the first allocation is done.

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

16 years agowinverbs: add kernel driver to the build
shefty [Thu, 22 May 2008 01:55:18 +0000 (01:55 +0000)]
winverbs: add kernel driver to the build

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

16 years ago[MLX4] fixed incorrect return code in bad flow, which caused kernel crash. [MLNX...
leonidk [Wed, 21 May 2008 14:13:22 +0000 (14:13 +0000)]
[MLX4] fixed incorrect return code in bad flow, which caused kernel crash. [MLNX: 2491]

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

16 years ago[WinOF] Final WinOF 1.1, skip SRP on 32-bit XP, svn # updates.
stansmith [Tue, 20 May 2008 19:03:27 +0000 (19:03 +0000)]
[WinOF] Final WinOF 1.1, skip SRP on 32-bit XP, svn # updates.

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

16 years ago[HW] add support for defing max_inline_data size upon QP creation
leonidk [Tue, 20 May 2008 10:17:00 +0000 (10:17 +0000)]
[HW] add support for defing max_inline_data size upon QP creation

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

16 years agoChange line endings from UNIX (LF only) to Windows (LF-CR) format. Files are otherwi...
shefty [Tue, 20 May 2008 07:43:32 +0000 (07:43 +0000)]
Change line endings from UNIX (LF only) to Windows (LF-CR) format.  Files are otherwise unchanged.

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

16 years ago[mlx4] Fix a build break and allow non-clean builds. (winib 2457/8)
tzachid [Tue, 20 May 2008 07:40:50 +0000 (07:40 +0000)]
[mlx4] Fix a build break and allow non-clean builds. (winib 2457/8)

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

16 years ago[mlx4] Create a device for the Ethernet driver if needed. (winib 2456) (3 lost files)
tzachid [Tue, 20 May 2008 07:37:50 +0000 (07:37 +0000)]
[mlx4] Create a device for the Ethernet driver if needed. (winib 2456) (3 lost files)

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

16 years agoGoofy script to copy .sys, .lib, .dll, .exe, .inf, and .whatever else
shefty [Tue, 20 May 2008 07:28:23 +0000 (07:28 +0000)]
Goofy script to copy .sys, .lib, .dll, .exe, .inf, and .whatever else
into an install directory.  Not sophisticated at all, but I am able to
use it to fairly quickly update drivers when testing.

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

16 years agoLame build script that can be used to build 2003/2008 winof platforms. Be
shefty [Tue, 20 May 2008 07:27:45 +0000 (07:27 +0000)]
Lame build script that can be used to build 2003/2008 winof platforms.  Be
sure that you have something else to do for the next hour before
invoking.

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

16 years agoThe following build script allows building the winof stack for any
shefty [Tue, 20 May 2008 07:26:48 +0000 (07:26 +0000)]
The following build script allows building the winof stack for any
platform (OS and processor architecture) from a single command prompt
window.  Guaranteed to save your sanity, versus having a dozen build
windows opened to build the various winof flavors.

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

16 years agoProvide simple build instructions for developers who check out the
shefty [Tue, 20 May 2008 07:25:52 +0000 (07:25 +0000)]
Provide simple build instructions for developers who check out the
source tree and want to try building the drivers.  It's more intuitive
to provide build details with the source code itself, than separately
on a web site.

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

16 years agoThe SVN diff program cannot handle generating diffs between two different
shefty [Tue, 20 May 2008 07:24:58 +0000 (07:24 +0000)]
The SVN diff program cannot handle generating diffs between two different
directories.  This file describes how to use an external diff program
to generate patches between two directories that can then be applied.

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

16 years agoWhen using a diff utility to find differences between two subdirectories,
shefty [Tue, 20 May 2008 07:24:21 +0000 (07:24 +0000)]
When using a diff utility to find differences between two subdirectories,
for example, an svn branch and the trunk, you can have the diff program
ignore files.  This is useful to avoid diffs caused by object files,
executables, or svn tracking files.

The following file can be fed into diff to have it ignore files that
match any of the patterns listed.

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

16 years agoProvide an updated list of the various maintainers for the WinOF stack
shefty [Tue, 20 May 2008 07:23:43 +0000 (07:23 +0000)]
Provide an updated list of the various maintainers for the WinOF stack
under the source tree trunk\docs directory.

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

16 years ago[mlx4] Create a device for the Ethernet driver if needed. (winib 2456)
tzachid [Tue, 20 May 2008 07:16:08 +0000 (07:16 +0000)]
[mlx4] Create a device for the Ethernet driver if needed. (winib 2456)

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

16 years ago[mthca] Remove dead code. (winib 2455)
tzachid [Mon, 19 May 2008 06:49:00 +0000 (06:49 +0000)]
[mthca] Remove dead code. (winib 2455)

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

16 years ago[IPOIB ]Fix a bugcheck when NdisMResetComplete called without previous reset request...
tzachid [Mon, 19 May 2008 06:46:18 +0000 (06:46 +0000)]
[IPOIB ]Fix a bugcheck when NdisMResetComplete called without previous reset request completed with STATUS_PENDING. (winib 2454)
Signed by: Slava Strebkov

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

16 years ago[MLX4] prevent constant comparison to please PREfast (winib 2461)
leonidk [Sun, 18 May 2008 14:27:22 +0000 (14:27 +0000)]
[MLX4] prevent constant comparison to please PREfast (winib 2461)

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

16 years ago[MLX4] Reverted the previous patch. Has been done to the wrong project.
leonidk [Sun, 18 May 2008 14:17:38 +0000 (14:17 +0000)]
[MLX4] Reverted the previous patch. Has been done to the wrong project.

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

16 years ago[MLX4] buxfix in WCHAR buffer length in RtlStringCchPrintfW function (wibib 2459)
leonidk [Sun, 18 May 2008 14:12:30 +0000 (14:12 +0000)]
[MLX4] buxfix in WCHAR buffer length in RtlStringCchPrintfW function (wibib 2459)

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

16 years ago[MLX4] buxfix in WCHAR buffer length in RtlStringCchPrintfW function (winib 2459)
leonidk [Sun, 18 May 2008 14:05:45 +0000 (14:05 +0000)]
[MLX4] buxfix in WCHAR buffer length in RtlStringCchPrintfW function (winib 2459)

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

16 years ago[MLX4] fixed a bug, that caused "Completion event for bogus CQ " message and the...
leonidk [Sun, 18 May 2008 13:44:34 +0000 (13:44 +0000)]
[MLX4] fixed a bug, that caused "Completion event for bogus CQ " message and the miss of CQ completion event after that. (winib 2439)

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

16 years ago[WinOF] typo repair.
stansmith [Thu, 15 May 2008 21:03:05 +0000 (21:03 +0000)]
[WinOF] typo repair.

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

16 years ago[WinOF] 1.1 synchronize .inf files with svn #
stansmith [Thu, 15 May 2008 20:58:41 +0000 (20:58 +0000)]
[WinOF] 1.1 synchronize .inf files with svn #

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

16 years ago[WinOF] 1.1 multiple HCA installer fixes, whitespace correction in wof.wxs
stansmith [Thu, 15 May 2008 20:37:15 +0000 (20:37 +0000)]
[WinOF] 1.1 multiple HCA installer fixes, whitespace correction in wof.wxs

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

16 years ago[MLX4] add casting to please PREfast (winib 2431)
tzachid [Thu, 15 May 2008 07:59:30 +0000 (07:59 +0000)]
[MLX4] add casting to please PREfast (winib 2431)

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

16 years ago[mlx4] Apply mlx4_0290_mcast_loopback.patch
tzachid [Thu, 15 May 2008 07:28:01 +0000 (07:28 +0000)]
[mlx4] Apply mlx4_0290_mcast_loopback.patch
(Make sure that loop-back packets are droped by hw/fw). Off by default.

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

16 years ago[mlx4] Apply mlx4_0300_bogus_qp.patch (change printing) (winib 2397)
tzachid [Thu, 15 May 2008 07:24:33 +0000 (07:24 +0000)]
[mlx4] Apply mlx4_0300_bogus_qp.patch (change printing) (winib 2397)

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

16 years ago[mlx4] Fix for FMR. (mlx4_0270_fmr_enable.patch) (winib 2392, 2394)
tzachid [Thu, 15 May 2008 07:22:44 +0000 (07:22 +0000)]
[mlx4] Fix for FMR. (mlx4_0270_fmr_enable.patch) (winib 2392, 2394)
mlx4_table_find (for fmr mpt's) requires that ICM memory already
be mapped.  Before this fix, fmr allocation depended on ICM memory
already being mapped for the mpt entry.  If all currently mapped
entries are taken, the find operation fails (even if the ICM mpt
table still had more entries, which were as yet unmapped).

This fix moves the mpt find operation to fmr_enable, to guarantee
that any required ICM memory mapping has already occurred.

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

16 years ago[WinOF] added mthca & connectX device_ID specific devcon installs to cover mthca...
stansmith [Thu, 15 May 2008 00:33:24 +0000 (00:33 +0000)]
[WinOF] added mthca & connectX device_ID specific devcon installs to cover mthca & connectX both in the same system. Iterate over list of DEV_IDs.

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

16 years agodapl: remove TO_LONG_PTR macro
shefty [Thu, 15 May 2008 00:13:43 +0000 (00:13 +0000)]
dapl: remove TO_LONG_PTR macro

The TO_LONG_PTR macro is unnecessary and makes it difficult to keep the Windows and Linux DAPL versions in sync.  (Updated from rev 1164 to include missing 'i' in 'ib'.)

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

16 years agodapl: revert commit 1164
shefty [Thu, 15 May 2008 00:04:58 +0000 (00:04 +0000)]
dapl: revert commit 1164

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

16 years ago[MLX4] (WinIb 2439) fixed a bug, that caused "Completion event for bogus CQ " message...
leonidk [Wed, 14 May 2008 09:53:08 +0000 (09:53 +0000)]
[MLX4] (WinIb 2439) fixed a bug, that caused "Completion event for bogus CQ " message and the miss of CQ completion event after that.

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

16 years agoscripts: batch file to build any OS/architecture from a single command window
shefty [Wed, 14 May 2008 02:41:28 +0000 (02:41 +0000)]
scripts: batch file to build any OS/architecture from a single command window

This batch file must be modified for personal use, but it allows building multiple OS/processor architectures using a single command window.  No more needing a dozen windows open to run all of the builds!  And there was much rejoicing.

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

16 years agoThe current uvp_get_interface() routine takes a structure as input. Included in...
shefty [Wed, 14 May 2008 02:39:14 +0000 (02:39 +0000)]
The current uvp_get_interface() routine takes a structure as input.  Included in the structure is a version number.  In the winverb branch, I added a new API to take the version as a separate parameter, along with the size of the structure.

A better solution to supporting multiple interfaces is to define interfaces using GUIDs.  This not only allows different versions of the same interface (for example the UVP interface), but also provides a mechanism that can be used to add new interfaces without affecting existing ABIs or APIs.

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