]> git.openfabrics.org - ~shefty/libibverbs.git/log
~shefty/libibverbs.git
17 years agoFix up configure test for <valgrind/memcheck.h>
Roland Dreier [Thu, 5 Oct 2006 18:52:20 +0000 (18:52 +0000)]
Fix up configure test for <valgrind/memcheck.h>

Print a warning if Valgrind annotations are requested but
<valgrind/memcheck.h> is not found.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd Valgrind annotations
Roland Dreier [Wed, 4 Oct 2006 23:57:10 +0000 (23:57 +0000)]
Add Valgrind annotations

Add basic Valgrind annotations to libibverbs (disabled by default, can
be enabled by configuring with --with-valgrind).  These reduce false
positive warnings from the Valgrind memcheck module.

Based on work and suggestions from Rainer Keller <keller@hlrs.de> and
Jeff Squyres <jsquyres@cisco.com>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd node_type and transport_type members to struct ibv_device
Roland Dreier [Tue, 3 Oct 2006 21:07:31 +0000 (21:07 +0000)]
Add node_type and transport_type members to struct ibv_device

This helps apps work with both iWARP and IB devices.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate libibverbs man pages so they don't refer to "OpenIB"
Roland Dreier [Fri, 22 Sep 2006 15:24:45 +0000 (15:24 +0000)]
Update libibverbs man pages so they don't refer to "OpenIB"

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix alignment of work request structures
Roland Dreier [Tue, 12 Sep 2006 22:46:58 +0000 (22:46 +0000)]
Fix alignment of work request structures

Swap next and wr_id members of struct ibv_send_wr and ibv_recv_wr to
allow wr_id to be naturally aligned on 32-bit architectures without
padding.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDebian packaging improvements
Roland Dreier [Wed, 6 Sep 2006 21:33:03 +0000 (21:33 +0000)]
Debian packaging improvements

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd response handling to ibv_cmd_resize_cq()
Ralph Campbell [Wed, 23 Aug 2006 22:01:20 +0000 (22:01 +0000)]
Add response handling to ibv_cmd_resize_cq()

Add resp and resp_size parameters to ibv_cmd_resize_cq() so that the
low-level driver in the kernel can return device-specific information
from the resize CQ operation.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix formatting of pingpong man pages slightly
Roland Dreier [Wed, 23 Aug 2006 21:44:29 +0000 (21:44 +0000)]
Fix formatting of pingpong man pages slightly

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoSimplify Debian package version
Roland Dreier [Wed, 9 Aug 2006 17:20:30 +0000 (17:20 +0000)]
Simplify Debian package version

Use ~ in Debian package version to get sort order of -pre packages
correct in a better way.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMake fork() work for verbs consumers
Roland Dreier [Thu, 3 Aug 2006 16:45:03 +0000 (16:45 +0000)]
Make fork() work for verbs consumers

Add code to libibvers that uses madvise(..., MADV_DONTFORK) to make
fork() work for verbs consumers.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix libibverbs definition of mb() for sparc
Roland Dreier [Tue, 4 Jul 2006 20:38:54 +0000 (20:38 +0000)]
Fix libibverbs definition of mb() for sparc

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd some helper functions to simplify using UD QPs
Sean Hefty [Fri, 16 Jun 2006 18:26:34 +0000 (18:26 +0000)]
Add some helper functions to simplify using UD QPs

Add new routines: ibv_init_ah_from_wc() and ibv_create_ah_from_wc() to
simplify UD QP communication.

Expose ibv_copy_ah_attr_from_kern to retrieve ibv_ah_attr from kernel
for a UD QP.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoFix ibv_get_device_list() to really NULL-terminate the array
Roland Dreier [Thu, 1 Jun 2006 23:16:18 +0000 (23:16 +0000)]
Fix ibv_get_device_list() to really NULL-terminate the array

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix minor memory leaks
Roland Dreier [Thu, 1 Jun 2006 05:41:41 +0000 (05:41 +0000)]
Fix minor memory leaks

The result of asprintf needs to be free when no longer needed.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd IBV_EVENT_CLIENT_REREGISTER to libibverbs
Leonid Arsh [Wed, 31 May 2006 23:06:39 +0000 (23:06 +0000)]
Add IBV_EVENT_CLIENT_REREGISTER to libibverbs

Signed-off-by: Leonid Arsh <leonida@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix update to Debian policy 3.7.2
Roland Dreier [Wed, 31 May 2006 16:02:09 +0000 (16:02 +0000)]
Fix update to Debian policy 3.7.2

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBranch a libibverbs-1.0 tree for maintenance
Roland Dreier [Wed, 24 May 2006 21:12:21 +0000 (21:12 +0000)]
Branch a libibverbs-1.0 tree for maintenance

Start 1.1 development in main libibverbs tree:
 - Remove libsysfs use
 - Remove deprecated symbols

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd a request for ChangeLog entries to the README
Roland Dreier [Mon, 22 May 2006 17:01:59 +0000 (17:01 +0000)]
Add a request for ChangeLog entries to the README

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoGet rid of commas at end of enum lists
Michael S. Tsirkin [Mon, 22 May 2006 16:53:29 +0000 (16:53 +0000)]
Get rid of commas at end of enum lists

While comma at end of enumerator list is legal since 1999, some tools
(notably gcc versions pre-4.0) seem to default to 1989 mode when
running with -pedantic flag, and warn about this usage.

Since most of our enums in header files do not have comma at end, its
probably easier to fix the remaining two cases than educate all users
of libibverbs on virtues of C99.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump version number
Roland Dreier [Thu, 4 May 2006 20:59:59 +0000 (20:59 +0000)]
Bump version number

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate to debian policy 3.7.0
Roland Dreier [Tue, 2 May 2006 22:44:50 +0000 (22:44 +0000)]
Update to debian policy 3.7.0

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUse correct email address in Debian changelog
Roland Dreier [Tue, 2 May 2006 22:36:49 +0000 (22:36 +0000)]
Use correct email address in Debian changelog

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0.3 release
Roland Dreier [Tue, 2 May 2006 22:07:06 +0000 (22:07 +0000)]
Roll libibverbs 1.0.3 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix Debian sparc build failure
Roland Dreier [Mon, 1 May 2006 23:10:33 +0000 (23:10 +0000)]
Fix Debian sparc build failure

Fix build failure with Debian sparc compiler: membar is only supported
under V9 ISA.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix memory leak in ibv_read_sysfs_file()
Roland Dreier [Wed, 12 Apr 2006 04:41:36 +0000 (04:41 +0000)]
Fix memory leak in ibv_read_sysfs_file()

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoReduce dependency on libsysfs
Roland Dreier [Tue, 11 Apr 2006 23:27:38 +0000 (23:27 +0000)]
Reduce dependency on libsysfs

Reduce libibverbs dependency on libsysfs by using local functions for
internal sysfs access.  libsysfs is still required because of the ABI,
which passes a struct sysfs_class_device * to low-level driver init
functions.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDeprecate "ib_XXX" names
Roland Dreier [Tue, 11 Apr 2006 21:41:11 +0000 (21:41 +0000)]
Deprecate "ib_XXX" names

Deprecate various "ib_XXX" names (introduced as part of SA and
marshalling code).  Preferred versions like "ibv_XXX" are now
available.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd ibv_rate_to_mult() and mult_to_ibv_rate() functions
Hoang-Nam Nguyen [Tue, 11 Apr 2006 20:40:26 +0000 (20:40 +0000)]
Add ibv_rate_to_mult() and mult_to_ibv_rate() functions

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd __attribute_const macro for gcc >= 3
Roland Dreier [Tue, 11 Apr 2006 20:33:33 +0000 (20:33 +0000)]
Add __attribute_const macro for gcc >= 3

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMinor Debian packaging tweaks
Roland Dreier [Mon, 10 Apr 2006 04:58:39 +0000 (04:58 +0000)]
Minor Debian packaging tweaks

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMake libsysfs dependency more robust in spec file
Roland Dreier [Mon, 10 Apr 2006 04:57:58 +0000 (04:57 +0000)]
Make libsysfs dependency more robust in spec file

Depend on %{_includedir}/sysfs/libsysfs.h instead of sysfs-devel to be
friendlier to building on SuSE distros.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRevert unreviewed changes made without maintainer approval
Roland Dreier [Sat, 8 Apr 2006 19:45:41 +0000 (19:45 +0000)]
Revert unreviewed changes made without maintainer approval

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate spec file from 1.0 branch
Bryan O'Sullivan [Thu, 6 Apr 2006 16:42:22 +0000 (16:42 +0000)]
Update spec file from 1.0 branch

17 years agoPrint a warning if dlopen() of a driver fails
Roland Dreier [Tue, 28 Mar 2006 17:41:29 +0000 (17:41 +0000)]
Print a warning if dlopen() of a driver fails

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoChange Priority field of Debian packages to "extra"
Roland Dreier [Mon, 27 Mar 2006 21:22:39 +0000 (21:22 +0000)]
Change Priority field of Debian packages to "extra"

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdded a print of the event name in string format
Dotan Barak [Thu, 23 Mar 2006 00:48:03 +0000 (00:48 +0000)]
Added a print of the event name in string format

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoImprove documentation of ibv_req_notify_cq()
Roland Dreier [Wed, 22 Mar 2006 18:58:00 +0000 (18:58 +0000)]
Improve documentation of ibv_req_notify_cq()

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd include of <stdlib.h>
Roland Dreier [Fri, 17 Mar 2006 23:55:09 +0000 (23:55 +0000)]
Add include of <stdlib.h>

This fixes warnings about implicit declaration of free().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd some missing dependencies in Debian control files
Roland Dreier [Fri, 17 Mar 2006 23:54:31 +0000 (23:54 +0000)]
Add some missing dependencies in Debian control files

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoExpand debian/copyright
Roland Dreier [Thu, 16 Mar 2006 17:33:04 +0000 (17:33 +0000)]
Expand debian/copyright

Put more detail about copyright holders and licenses in debian/copyright.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBuild-Depend on debhelper (>= 5)
Roland Dreier [Wed, 15 Mar 2006 18:10:50 +0000 (18:10 +0000)]
Build-Depend on debhelper (>= 5)

Debian packaging sets compat to 5, so packages also need to
Build-Depend on debhelper (>= 5).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump libibverbs version
Roland Dreier [Wed, 15 Mar 2006 00:51:29 +0000 (00:51 +0000)]
Bump libibverbs version

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0.2 release
Roland Dreier [Wed, 15 Mar 2006 00:49:20 +0000 (00:49 +0000)]
Roll libibverbs 1.0.2 release

Debian packaging fixes only.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDebian packaging fixes based on feedback from debian-mentors mailing list
Roland Dreier [Wed, 15 Mar 2006 00:45:55 +0000 (00:45 +0000)]
Debian packaging fixes based on feedback from debian-mentors mailing list

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump version in svn, and switch to non-native Debian packaging
Roland Dreier [Tue, 14 Mar 2006 07:33:42 +0000 (07:33 +0000)]
Bump version in svn, and switch to non-native Debian packaging

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0.1 release
Roland Dreier [Tue, 14 Mar 2006 05:59:16 +0000 (05:59 +0000)]
Roll libibverbs 1.0.1 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUse sysfs_open_attribute() and sysfs_read_attribute()
Roland Dreier [Tue, 14 Mar 2006 00:24:55 +0000 (00:24 +0000)]
Use sysfs_open_attribute() and sysfs_read_attribute()

Use sysfs_open_attribute() and sysfs_read_attribute() instead of the
deprecated function sysfs_read_attribute_value(), which is no longer
present in libsysfs2 (which is already in Debian and Ubuntu).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump libibverbs version to 1.0.1
Roland Dreier [Tue, 14 Mar 2006 00:06:30 +0000 (00:06 +0000)]
Bump libibverbs version to 1.0.1

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0 release
Roland Dreier [Mon, 13 Mar 2006 23:07:02 +0000 (23:07 +0000)]
Roll libibverbs 1.0 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd enum ibv_rate
Jack Morgenstein [Mon, 6 Mar 2006 22:28:21 +0000 (22:28 +0000)]
Add enum ibv_rate

Add enum ibv_rate to define encoding of static_rate field (based on a
patch from Jack Morgenstein <jackm@mellanox.co.il>).

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix memory leak in find_drivers()
Ralph Campbell [Mon, 6 Mar 2006 21:17:48 +0000 (21:17 +0000)]
Fix memory leak in find_drivers()

I was browsing through the libibverbs code and found a minor memory
leak.  Here is the fix.

Signed-off-by: Ralph Campbell <ralphc@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRemove copyright notices without license text
Roland Dreier [Fri, 24 Feb 2006 23:05:14 +0000 (23:05 +0000)]
Remove copyright notices without license text

They bugged some silly people.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd support for kernel ABI version 6
Dotan Barak [Thu, 23 Feb 2006 20:41:50 +0000 (20:41 +0000)]
Add support for kernel ABI version 6

Add support for kernel ABI 6: take SRQ capacity from kernel response
to create SRQ.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump libibverbs version
Roland Dreier [Thu, 16 Feb 2006 18:41:56 +0000 (18:41 +0000)]
Bump libibverbs version

Be optimistic and assume that the next release will be 1.0.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0-rc7 release
Roland Dreier [Thu, 16 Feb 2006 18:21:58 +0000 (18:21 +0000)]
Roll libibverbs 1.0-rc7 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd support for kernel ABI version 5
Roland Dreier [Thu, 16 Feb 2006 17:32:50 +0000 (17:32 +0000)]
Add support for kernel ABI version 5

Add support for kernel ABI 5, which properly aligns struct ibv_create_qp_resp.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd response handling to ibv_cmd_create_qp()
Roland Dreier [Wed, 15 Feb 2006 22:48:01 +0000 (22:48 +0000)]
Add response handling to ibv_cmd_create_qp()

Add resp and resp_size parameters to libibverbs's ibv_cmd_create_qp()
function so that kernel low-level drivers can return private data to
userspace device drivers.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump libibverbs version number to 1.0-rc7
Roland Dreier [Wed, 15 Feb 2006 22:36:17 +0000 (22:36 +0000)]
Bump libibverbs version number to 1.0-rc7

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0-rc6 release
Roland Dreier [Wed, 15 Feb 2006 06:42:48 +0000 (06:42 +0000)]
Roll libibverbs 1.0-rc6 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd lots more TODO information to the libibverbs README
Roland Dreier [Wed, 15 Feb 2006 06:08:15 +0000 (06:08 +0000)]
Add lots more TODO information to the libibverbs README

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoReport board_id from ibv_devinfo, if present
Dotan Barak [Tue, 14 Feb 2006 05:43:28 +0000 (05:43 +0000)]
Report board_id from ibv_devinfo, if present

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRemove cpu_to_be64/be64_to_cpu
Roland Dreier [Tue, 14 Feb 2006 03:38:30 +0000 (03:38 +0000)]
Remove cpu_to_be64/be64_to_cpu

Remove duplicated cpu_to_be64/be64_to_cpu functions in favor of
htonll/ntohll from <infiniband/arch.h>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agolibibverbs changes for query QP and query SRQ verbs
Dotan Barak [Tue, 14 Feb 2006 01:12:59 +0000 (01:12 +0000)]
libibverbs changes for query QP and query SRQ verbs

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix pingpong examples' handling of specifying device by name
Roland Dreier [Wed, 1 Feb 2006 16:56:45 +0000 (16:56 +0000)]
Fix pingpong examples' handling of specifying device by name

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRemove useless "extern" from function declarations
Roland Dreier [Wed, 1 Feb 2006 05:27:43 +0000 (05:27 +0000)]
Remove useless "extern" from function declarations

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agolibibverbs changes to handle resizing CQs
Roland Dreier [Mon, 30 Jan 2006 22:32:03 +0000 (22:32 +0000)]
libibverbs changes to handle resizing CQs

Essentially just adding API and support for passing the call through
to provider plug-ins.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd "extern" to declarations for consistency
Roland Dreier [Thu, 26 Jan 2006 19:06:49 +0000 (19:06 +0000)]
Add "extern" to declarations for consistency

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix Source: line in spec files to point to new tarball name
Roland Dreier [Thu, 26 Jan 2006 17:30:05 +0000 (17:30 +0000)]
Fix Source: line in spec files to point to new tarball name

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMove pp_get_local_lid() to common file
Roland Dreier [Wed, 25 Jan 2006 22:43:27 +0000 (22:43 +0000)]
Move pp_get_local_lid() to common file

Factor out more common pingpong code.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump libibverbs version number to 1.0-rc6
Roland Dreier [Mon, 23 Jan 2006 05:38:26 +0000 (05:38 +0000)]
Bump libibverbs version number to 1.0-rc6

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0-rc5 release
Roland Dreier [Mon, 23 Jan 2006 05:32:11 +0000 (05:32 +0000)]
Roll libibverbs 1.0-rc5 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate TODO section in README
Roland Dreier [Mon, 23 Jan 2006 05:08:09 +0000 (05:08 +0000)]
Update TODO section in README

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoList all devices in ibv_devinfo
Dotan Barak [Mon, 23 Jan 2006 05:07:09 +0000 (05:07 +0000)]
List all devices in ibv_devinfo

Make ibv_devinfo list all IB devices by default, rather than the first
device only.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFactor out some common code in pingpong examples
Roland Dreier [Sat, 21 Jan 2006 00:53:08 +0000 (00:53 +0000)]
Factor out some common code in pingpong examples

- Create pingpong.c/pingpong.h to hold common code for pingpong examples.
- Add option to set path MTU for connected transport pingpong examples.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoArm CQ early enough in pingpong examples
Ralph Campbell [Tue, 17 Jan 2006 17:20:37 +0000 (17:20 +0000)]
Arm CQ early enough in pingpong examples

The example pingpong programs have a race when using events where the
client sends the first packet but the server hasn't yet armed the CQ
by calling ibv_req_notify_cq() thus waiting forever in
ibv_get_cq_event().  The fix is to move the call to
ibv_req_notify_cq() before signaling the client to "start".

Signed-off-by: Ralph Campbell <ralphc@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix ibv_srq_pingpong bug with many QPs when using CQ events
Roland Dreier [Sat, 7 Jan 2006 01:06:03 +0000 (01:06 +0000)]
Fix ibv_srq_pingpong bug with many QPs when using CQ events

Fix SRQ example to avoid problems with many QPs and events.  Based on
a patch from Dotan Barak (who also found the problem).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix test of return value of ibv_poll_cq() in pingpong examples
Ralph Campbell [Sat, 7 Jan 2006 01:00:16 +0000 (01:00 +0000)]
Fix test of return value of ibv_poll_cq() in pingpong examples

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoTypo fix in the description of ibv_modify_srq()
Dotan Barak [Wed, 4 Jan 2006 21:26:32 +0000 (21:26 +0000)]
Typo fix in the description of ibv_modify_srq()

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix ibverbs_init for multiple adapters
Michael S. Tsirkin [Wed, 4 Jan 2006 21:20:02 +0000 (21:20 +0000)]
Fix ibverbs_init for multiple adapters

Noted by Christoph Raisch.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agostruct ibv_send_wr.imm_data is in network byte order
Michael S. Tsirkin [Fri, 16 Dec 2005 20:41:36 +0000 (20:41 +0000)]
struct ibv_send_wr.imm_data is in network byte order

verbs.h documents ordering for immediate data in completion, but not
in send work request.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoImprove ibv_free_device_list() documentation
Roland Dreier [Thu, 15 Dec 2005 21:46:47 +0000 (21:46 +0000)]
Improve ibv_free_device_list() documentation

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoHandle devices that don't support SRQ
Shirley Ma [Thu, 15 Dec 2005 21:25:33 +0000 (21:25 +0000)]
Handle devices that don't support SRQ

create_srq is not a mandatory device function, therefore in
userspace/libibverbs/src/verbs.c ibv_create_srq should check
create_srq() first before calling it, otherwise the caller will cause
the segmentation fault on device which doesn't support SRQs.

Signed-off-by: Shirley Ma <xma@us.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoChange from ibv_get_devices() to ibv_get_device_list()
Roland Dreier [Wed, 14 Dec 2005 20:44:36 +0000 (20:44 +0000)]
Change from ibv_get_devices() to ibv_get_device_list()

Change libibverbs API for listing all known devices from
ibv_get_devices() to ibv_get_device_list(), and update all in-tree
uses of this API.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix EXTRA_DIST: sa-kern-abi.h path is wrong
Michael S. Tsirkin [Tue, 29 Nov 2005 17:01:28 +0000 (17:01 +0000)]
Fix EXTRA_DIST: sa-kern-abi.h path is wrong

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoVarious trivial picayune libibverbs changes
Roland Dreier [Sun, 13 Nov 2005 04:36:49 +0000 (04:36 +0000)]
Various trivial picayune libibverbs changes

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd support for userspace RDMA connection management abstraction (CMA)
Sean Hefty [Fri, 11 Nov 2005 00:33:09 +0000 (00:33 +0000)]
Add support for userspace RDMA connection management abstraction (CMA)

Add common user/kernel data structures and copy routines in libibverbs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoAdd changelog entry for previous checkin
Roland Dreier [Wed, 9 Nov 2005 23:36:20 +0000 (23:36 +0000)]
Add changelog entry for previous checkin

17 years agoMake ibv_get_devices reentrant
Michael S. Tsirkin [Wed, 9 Nov 2005 23:35:13 +0000 (23:35 +0000)]
Make ibv_get_devices reentrant

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoHandle kernel uverbs ABI version 4
Jack Morgenstein [Wed, 9 Nov 2005 18:25:08 +0000 (18:25 +0000)]
Handle kernel uverbs ABI version 4

Update libibverbs and libmthca to handle new kernel ABI 4, which has
the kernel compute exact capabilities for QPs.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix CQ overrun in SRQ pingpong example
Roland Dreier [Sun, 30 Oct 2005 17:45:12 +0000 (17:45 +0000)]
Fix CQ overrun in SRQ pingpong example

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump debian package version to -rc5 as well
Roland Dreier [Sun, 30 Oct 2005 17:43:18 +0000 (17:43 +0000)]
Bump debian package version to -rc5 as well

17 years agoBump libibverbs version number to 1.0-rc5
Roland Dreier [Wed, 26 Oct 2005 04:53:27 +0000 (04:53 +0000)]
Bump libibverbs version number to 1.0-rc5

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoReally roll releases
Roland Dreier [Wed, 26 Oct 2005 04:22:07 +0000 (04:22 +0000)]
Really roll releases

Fix version in spec file changelog.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.0-rc4 release
Roland Dreier [Wed, 26 Oct 2005 04:16:00 +0000 (04:16 +0000)]
Roll libibverbs 1.0-rc4 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix QP attr masks in ibv_uc_pingpong
Roland Dreier [Tue, 25 Oct 2005 23:00:45 +0000 (23:00 +0000)]
Fix QP attr masks in ibv_uc_pingpong

Fix QP attribute masks used in ibv_uc_pingpong -- now that mthca
correctly fails if we try to set RDMA/atomic capabilities for UC QPs,
the examples need to be fixed as well.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoHandle out-of-order completions in pingpong examples
Roland Dreier [Tue, 25 Oct 2005 22:40:13 +0000 (22:40 +0000)]
Handle out-of-order completions in pingpong examples

Keep track of whether send and/or receive is pending in libibverbs
pingpong examples.  This avoids failures when the remote side receives
data and posts a send very quickly, and the local side completes the
receive before the previous send.  With the old code, this could
result in posting a send before the previous send completed, and
therefore overrun the send queue.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix "Source:" line in RPM spec files to be a valid URL
Roland Dreier [Tue, 25 Oct 2005 04:44:29 +0000 (04:44 +0000)]
Fix "Source:" line in RPM spec files to be a valid URL

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix buffer size computation in ibv_cmd_get_context_v2()
Roland Dreier [Sun, 23 Oct 2005 22:32:47 +0000 (22:32 +0000)]
Fix buffer size computation in ibv_cmd_get_context_v2()

Correct silly mistake in ibv_cmd_get_context_v2() computation of size
of buffer for old ABI command: we need to use sizeof *cmd instead of
sizeof cmd, since cmd is a pointer.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMove where we set qp->qp_type from cmd.c to verbs.c
Roland Dreier [Sun, 23 Oct 2005 22:19:25 +0000 (22:19 +0000)]
Move where we set qp->qp_type from cmd.c to verbs.c

Just to be really anal.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoCheck write() return value against size we tried to write
Roland Dreier [Fri, 21 Oct 2005 21:29:07 +0000 (21:29 +0000)]
Check write() return value against size we tried to write

In libibverbs post send, post recv and post SRQ recv marshalling code,
correct value that we check write() return value against so that we
check against the size we actually try to write, instead of just
sizeof cmd.

Signed-off-by: Roland Dreier <rolandd@cisco.com>