]> git.openfabrics.org - ~shefty/rdma-win.git/log
~shefty/rdma-win.git
16 years agoperftest: update prints
shefty [Fri, 20 Jun 2008 04:31:26 +0000 (04:31 +0000)]
perftest: update prints

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

16 years agowinverb/test: add test to query device attributes
shefty [Fri, 20 Jun 2008 04:27:54 +0000 (04:27 +0000)]
winverb/test: add test to query device attributes

Basic functionality test, only display port count for now.

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

16 years ago[HW, TOOLS] return system_image_guid
leonidk [Thu, 19 Jun 2008 17:52:36 +0000 (17:52 +0000)]
[HW, TOOLS] return system_image_guid

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

16 years ago[mlx4] Add support for Ethernet. (mlnx: 2561)
tzachid [Thu, 19 Jun 2008 15:04:36 +0000 (15:04 +0000)]
[mlx4] Add support for Ethernet. (mlnx: 2561)

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

16 years ago[ipoib] mac generation from hp GUID.
tzachid [Thu, 19 Jun 2008 14:11:17 +0000 (14:11 +0000)]
[ipoib] mac generation from hp GUID.
Signed by: Anatoly Greenblatt

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

16 years agowinverbs: fix deref to NULL pointer
shefty [Thu, 19 Jun 2008 05:52:38 +0000 (05:52 +0000)]
winverbs: fix deref to NULL pointer

If WdfCreateDevice is successful, then pinit is set to NULL.  No need to clean it up later on an error.

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

16 years ago[WinOF] added common exit path with time stamp info (start & end times); curently...
stansmith [Wed, 18 Jun 2008 21:54:54 +0000 (21:54 +0000)]
[WinOF] added common exit path with time stamp info (start & end times); curently takes about 15 minutes to compile, sign drivers and build installers on a 4P platform.

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

16 years ago[MTHCA] Ensure an Rx WQE is in memory before linking
leonidk [Wed, 18 Jun 2008 17:25:21 +0000 (17:25 +0000)]
[MTHCA] Ensure an Rx WQE is in memory before linking

Use a write memory barrier to ensure a WQE is written to memory
before linking it to the previous WQE.

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

16 years agowinverbs: rearm CQ if async operation returns IO pending
shefty [Wed, 18 Jun 2008 04:59:31 +0000 (04:59 +0000)]
winverbs: rearm CQ if async operation returns IO pending

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

16 years agogetopt: remove unneeded include files
shefty [Wed, 18 Jun 2008 04:58:03 +0000 (04:58 +0000)]
getopt: remove unneeded include files

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

16 years agolibibverbs: align work completion status with ib_wc_status
shefty [Wed, 18 Jun 2008 04:56:58 +0000 (04:56 +0000)]
libibverbs: align work completion status with ib_wc_status

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

16 years agowinverbs: port of perftest
shefty [Wed, 18 Jun 2008 04:55:52 +0000 (04:55 +0000)]
winverbs: port of perftest

Port of most perftests from linux over libibverbs.

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

16 years ago[WinOF]
stansmith [Wed, 18 Jun 2008 00:09:56 +0000 (00:09 +0000)]
[WinOF]
  buildrelease.bat - added WIX .msi creation only option; assumes drivers are signed
  etc\makebin.bat - don't copy Mx tools which have been removed from the build/svn
  etc\clean-build.bat - delete build generated files to ensure a clean build.

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

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 23:24:18 +0000 (23:24 +0000)]
[WinOF]
  missed x86\Command Window.lnk
  WIX\bin removed, as it's now an OS flavor {wlh,wnet,wxp} specific item
  wof.wxs - removed erroneous reference to mtcr.dll

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

16 years ago[MTHCA] Fix possible data corruption for Sinai chip upon fmr_unmap
leonidk [Tue, 17 Jun 2008 18:40:54 +0000 (18:40 +0000)]
[MTHCA] Fix possible data corruption for Sinai chip upon fmr_unmap

(In mthca_arbel_fmr_unmap(), the high bits of the key are masked off.
This gets rid of the effect of adjust_key(), which makes sure that
bits 3 and 23 of the key are equal when the Sinai throughput
optimization is enabled, and so it may happen that an FMR will end up
with bits 3 and 23 in the key being different.  This causes data
corruption, because when enabling the throughput optimization, the
driver promises the HCA firmware that bits 3 and 23 of all memory keys
will always be equal.

Fix by re-applying adjust_key() after masking the key.

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

16 years ago[IBAL] fixed a typo in __ib_qp_type_str
leonidk [Tue, 17 Jun 2008 18:39:33 +0000 (18:39 +0000)]
[IBAL] fixed a typo in __ib_qp_type_str

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

16 years ago[MLX4] improve the time of handling events like port state change
leonidk [Tue, 17 Jun 2008 18:38:29 +0000 (18:38 +0000)]
[MLX4] improve the time of handling events like port state change

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

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 17:09:24 +0000 (17:09 +0000)]
[WinOF]
  ib_srp.inf - updated DriverVer so signtool doesn't complain of being too old.
  ib_srp.cdf - driver signing file - defines ibsrp.cat contents for driver package signing.

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

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 17:02:17 +0000 (17:02 +0000)]
[WinOF]
    ipoib.inf - updated DriverVer in order that ipoib.sys could be signed; signtool.exe complained.
    ipoib.cdf - removed extraneous whitespace.

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

16 years ago[WinOF]
stansmith [Tue, 17 Jun 2008 17:01:12 +0000 (17:01 +0000)]
[WinOF]
    qlgcvnic.inf - added CatalogFile for Windows Server 2008 driver signing.
    netvnic.cdf  - new file for driver signing.

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

16 years ago[WinOF] multiple buildrelease options: all, compile, makebin, msi
stansmith [Tue, 17 Jun 2008 16:45:54 +0000 (16:45 +0000)]
[WinOF] multiple buildrelease options: all, compile, makebin, msi

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

16 years ago[WinOF] support or not, Time-stamping signed driver files.
stansmith [Tue, 17 Jun 2008 16:42:31 +0000 (16:42 +0000)]
[WinOF] support or not, Time-stamping signed driver files.

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

16 years agolibibverbs: add support for RC/UC/UD pingpong
shefty [Tue, 17 Jun 2008 02:25:18 +0000 (02:25 +0000)]
libibverbs: add support for RC/UC/UD pingpong

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

16 years agowinverbs: add io pending status definition
shefty [Tue, 17 Jun 2008 02:23:32 +0000 (02:23 +0000)]
winverbs: add io pending status definition

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

16 years agowinverbs: update align wc patch
shefty [Sat, 14 Jun 2008 04:45:41 +0000 (04:45 +0000)]
winverbs: update align wc patch

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

16 years agowinverbs: fixes to support ibv_rc_pingpong test.
shefty [Sat, 14 Jun 2008 04:18:37 +0000 (04:18 +0000)]
winverbs: fixes to support ibv_rc_pingpong test.

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

16 years agowinverbs: updated to trunk patches
shefty [Sat, 14 Jun 2008 04:17:20 +0000 (04:17 +0000)]
winverbs: updated to trunk patches

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

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