]> git.openfabrics.org - ~shefty/libibverbs.git/log
~shefty/libibverbs.git
17 years agoFix ibv_srq_pingpong option handling
Roland Dreier [Fri, 6 Apr 2007 14:44:39 +0000 (07:44 -0700)]
Fix ibv_srq_pingpong option handling

Add missing break statement in command line option handling switch.
Without the break statement, setting the 'm' (mtu) command line option
fell through to the next case and the same value was used for the 'q'
(num-qp) option.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd missing newline to rlimit(MEMLOCK) warning
Roland Dreier [Fri, 6 Apr 2007 14:28:02 +0000 (07:28 -0700)]
Add missing newline to rlimit(MEMLOCK) warning

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.1-rc2 release
Roland Dreier [Wed, 4 Apr 2007 23:17:27 +0000 (16:17 -0700)]
Roll libibverbs 1.1-rc2 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoClean up spec file
Roland Dreier [Wed, 4 Apr 2007 22:33:02 +0000 (15:33 -0700)]
Clean up spec file

Modernize spec file to better match Fedora guidelines:
 - remove unused %ver macro
 - fix Release to avoid '-' character
 - switch to newer recommendation for BuildRoot
 - add Requires(post): /sbin/ldconfig and Requires(postun): /sbin/ldconfig
 - split static libraries into new -devel-static package
 - don't use %makeinstall

Based on a patch from Doug Ledford <dledford@redhat.com>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoPrint warning if memlock limit is low
Roland Dreier [Thu, 29 Mar 2007 17:48:54 +0000 (10:48 -0700)]
Print warning if memlock limit is low

Check RLIMIT_MEMLOCK, and if it is 32 KB or less, print a warning.
This should help with support requests for systems that set this limit
too low.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate README now that 1.1 ABI is (semi-)frozen
Roland Dreier [Thu, 29 Mar 2007 17:05:56 +0000 (10:05 -0700)]
Update README now that 1.1 ABI is (semi-)frozen

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump version number to 1.1-rc2-pre1
Roland Dreier [Wed, 28 Mar 2007 22:08:59 +0000 (15:08 -0700)]
Bump version number to 1.1-rc2-pre1

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRoll libibverbs 1.1-rc1 release
Roland Dreier [Tue, 27 Mar 2007 20:15:31 +0000 (13:15 -0700)]
Roll libibverbs 1.1-rc1 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMan page updates
Dotan Barak [Tue, 27 Mar 2007 17:22:43 +0000 (10:22 -0700)]
Man page updates

- Fix spelling mistakes
- Convert "PKey"/"QKey" to "P_Key"/"Q_Key"
- Fix variable names in ibv_get_cq_event() example
- Add non-blocking examples for ibv_get_cq_event() and ibv_get_async_event()

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoReference count completion channels
Roland Dreier [Tue, 27 Mar 2007 17:04:46 +0000 (10:04 -0700)]
Reference count completion channels

Keep a reference count in completion channel structure, so that
ibv_destroy_comp_channel() can return EBUSY if a consumer tries to
destroy a channel that still has CQs attached.

Suggested by Dotan Barak <dotanb@mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix memory leak on ibv_fork_init() error path
Dotan Barak [Mon, 19 Mar 2007 20:01:26 +0000 (13:01 -0700)]
Fix memory leak on ibv_fork_init() error path

Free test buffer so we don't leak memory when madvise() fails.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd low-level driver hooks for reregister MR and memory windows
Roland Dreier [Thu, 8 Mar 2007 18:05:24 +0000 (10:05 -0800)]
Add low-level driver hooks for reregister MR and memory windows

Add methods to struct ibv_context_ops to make it possible to implement
reregister memory region and alloc/bind/dealloc memory window
operations in the future without breaking the libibverbs ABI.

Assuming these methods and data structures are designed properly
(which is hard to say, absent any real implementation) then it will
only be necessary to add new libibverbs functions to call the hooks,
which will be source and binary compatible with existing applications
and low-level drivers.  Applications that want to use the new
functions can easily check for their existence at compile time.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDelete man3 symbolic links before creating them during install
Jack Morgenstein [Thu, 22 Feb 2007 18:16:43 +0000 (20:16 +0200)]
Delete man3 symbolic links before creating them during install

The following patch removes manpage symbolic links so that they may be
relinked in the install.  Otherwise a second install will fail, since
the links already exist.

Suggested by Michael Tsirkin.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd remaining libibverbs manpages
Roland Dreier [Wed, 21 Feb 2007 00:05:27 +0000 (16:05 -0800)]
Add remaining libibverbs manpages

Add the rest of the manpages for libibverbs functions in section 3.
These manpages were written by Dotan Barak <dotanb@mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoStart adding libibverbs manpages
Roland Dreier [Tue, 20 Feb 2007 06:34:58 +0000 (22:34 -0800)]
Start adding libibverbs manpages

Add the first few manpages for libibverbs functions in section 3.
Also, add them into the build and add rules to the Makefile to link
shared manpages together (since eg ibv_get_device_list and
ibv_free_device_list have the same manpage).  Update Debian and Fedora
packaging to include section 3 manpages in the development package.

These manpages were written by Dotan Barak <dotanb@mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate Debian changelog
Roland Dreier [Wed, 31 Jan 2007 18:44:14 +0000 (10:44 -0800)]
Update Debian changelog

Remove item about bumping soname, since it's no longer true.  Merge in
1.0.4-1 info from stable branch, since it's been uploaded to Debian
archive already.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix unset context breakage when a low-level driver does kernel bypass
Roland Dreier [Wed, 31 Jan 2007 18:38:50 +0000 (10:38 -0800)]
Fix unset context breakage when a low-level driver does kernel bypass

Commit 8b3d2254 ("The ibv_cmd_* create functions need to set context")
breaks things when a low-level driver does not actually use an
ibv_cmd_* function to create an object, since then the context member
of that object never gets set.  For example, libmthca does not nee to
call into the kernel to create an AH, and hence ibv_destroy_ah() will
crash because it tries to call a function pointer from the AH's
context member, which never gets set.

Fix this by adding back all the setting of context to the main verbs
functions like ibv_create_ah() (but still leave the setting in the
ibv_cmd_* create functions too).  This means context gets set twice,
but that doesn't really hurt anything.  Once we branch off libibverbs
1.1 as stable, we can change the signatures of the ibv_cmd_* destroy
functions to take an explicit context parameter, and get rid of
setting context in the ibv_cmd_* create functions.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRename Debian package back to libibverbs1
Roland Dreier [Mon, 29 Jan 2007 17:30:30 +0000 (09:30 -0800)]
Rename Debian package back to libibverbs1

Since commit fd448acc ("Add ABI compatibility for apps linked against
libibverbs 1.0") makes libibverbs 1.1 binary compatible with
applications linked against libibverbs 1.0 and the soname of the
library remains at 1, change the Debian package back to libibverbs1
instead of bumping it to libibverbs2.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd ABI compatibility for apps linked against libibverbs 1.0
Roland Dreier [Mon, 29 Jan 2007 17:22:18 +0000 (09:22 -0800)]
Add ABI compatibility for apps linked against libibverbs 1.0

Add a compatibility layer that allows applications (but not low-level
drivers) linked against libibverbs 1.0 to work with libibverbs 1.1.
This is done by using Linux's versioned symbol linking support: the
native libibverbs entry points are given IBVERBS_1.1 versions, and
compatibility wrappers for entry points from libibverbs 1.0 are
created with an IBVERBS_1.0 version (to match what libibverbs 1.0
exported).

In essense these wrappers create compatible proxies for every
structure returned to the application (struct ibv_device, ibv_context,
ibv_pd, etc), and map between the proxy and the real object when the
application calls into libibverbs.  This code is mostly
straightforward, with a few complications in handling async events,
because the pointers in event structures must be translated back to
proxy structures when they are returned to the application.

There are a few further wrinkles because the calls to data path
functions (poll CQ, post send, etc) are actually inline functions that
call directly into the context ops, so the context ops proxy structure
must actually contain pointers to compatibility wrappers for these
functions as well.  This may have some performance impact but it seems
the overhead is unavoidable, and tests with NetPIPE on top of Open MPI
shows that the latency and throughput differences seem to be lost in
the noise anyway.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoThe ibv_cmd_* create functions need to set context
Steve Wise [Fri, 19 Jan 2007 21:16:59 +0000 (15:16 -0600)]
The ibv_cmd_* create functions need to set context

If the ibv_cmd_* create function succeeds, then the object context
pointer must be set by that function so that the corresponding destroy
function will work.  This avoids problems in the error cleanup path of
a low-level driver's create function that fails after calling an
ibv_cmd_* create function.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix caching of --version-script check
Roland Dreier [Fri, 26 Jan 2007 21:42:04 +0000 (13:42 -0800)]
Fix caching of --version-script check

The shell code in AC_CACHE_CHECK() should set the variable that we say
is being cached.  So set ac_cv_version_script when testing whether ld
accepts --version-script, and then set LIBIBVERBS_VERSION_SCRIPT based
on the (possibly cached) value of ac_cv_version_script outside of the
AC_CACHE_CHECK().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd resource cleanup at end of pingpong tests
Dotan Barak [Wed, 17 Jan 2007 09:39:01 +0000 (11:39 +0200)]
Add resource cleanup at end of pingpong tests

Clean up all IB resources at the end of pingpong examples.  Ack CQ
events when using events to all CQ to be destroyed.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix checks of asprintf() return value
Michael S. Tsirkin [Thu, 18 Jan 2007 15:13:02 +0000 (07:13 -0800)]
Fix checks of asprintf() return value

asprintf() returns the number of bytes printed, so the way to check
for failure is to test if the return value is < 0.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoCheck asprintf() return in pingpong examples
Dotan Barak [Wed, 17 Jan 2007 21:59:21 +0000 (13:59 -0800)]
Check asprintf() return in pingpong examples

Handle asprintf() allocation failures in pingpong examples.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoCheck return of calloc() in ibv_get_device_list()
Roland Dreier [Wed, 17 Jan 2007 21:41:33 +0000 (13:41 -0800)]
Check return of calloc() in ibv_get_device_list()

Don't blindly copy device pointers if calloc() returns NULL.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix some memory leaks in read_config() error path
Dotan Barak [Tue, 16 Jan 2007 20:26:39 +0000 (12:26 -0800)]
Fix some memory leaks in read_config() error path

Don't leak path if stat() fails or file isn't a regular file.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoHandle asprintf memory allocation failures
Dotan Barak [Tue, 16 Jan 2007 20:21:25 +0000 (12:21 -0800)]
Handle asprintf memory allocation failures

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDon't lose devices when multiple RDMA devices are present
Steve Wise [Thu, 11 Jan 2007 21:30:33 +0000 (13:30 -0800)]
Don't lose devices when multiple RDMA devices are present

When scanning through /sys/class/infiniband_verbs, link structs into
the list of found devices properly so that older devices aren't lost.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDon't use d_type member of struct dirent
Roland Dreier [Thu, 11 Jan 2007 21:19:01 +0000 (13:19 -0800)]
Don't use d_type member of struct dirent

On some filesystems (notably reiserfs), dent->d_type is always
DT_UNKNOWN.  Therefore libibverbs should use stat() to check file
types when scanning through directories rather than relying on the
d_type returned from readdir().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRevert "Pass driver data through ibv_cmd_req_notify_cq()"
Roland Dreier [Thu, 11 Jan 2007 15:19:49 +0000 (07:19 -0800)]
Revert "Pass driver data through ibv_cmd_req_notify_cq()"

This reverts commit d5b9ab3d7009b77ee45e98827e803205d322ce7d, since
the Chelsio cxgb3 driver no longer needs it and the kernel side of
req_notify_cq() doesn't handle user data anyway.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoImplement new method for finding and loading device-specific drivers
Roland Dreier [Mon, 11 Dec 2006 01:34:18 +0000 (17:34 -0800)]
Implement new method for finding and loading device-specific drivers

Export an ibv_register_driver() entry point, and expect plugins to
call it from __attribute__((constructor)) code.  This will allow
multiple drivers to be statically linked in.

Also read config files and then use dlopen() with a relative path to
find drivers (rather than searching a specific lib/infiniband/
directory for .so files).  This allows multiple versions of a driver
to be installed in parallel, and also allows for optimized drivers in
places like /lib/i686.

Drivers should no longer export an ibv_driver_init() function any
more.  Instead, they should add a function (which can be static) with
__attribute__((constructor)) that calls ibv_register_driver() to
register the driver's probe function.  Also, drivers should install a
file with a line "driver <driver name>" under ${sysconfdir}/libibverbs.d.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoPass driver data through ibv_cmd_req_notify_cq()
Steve Wise [Fri, 6 Oct 2006 22:29:34 +0000 (17:29 -0500)]
Pass driver data through ibv_cmd_req_notify_cq()

The Chelsio iWARP driver library needs to pass information to the
kernel device-specific driver for re-arming the CQ.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix rewritten test for linker script support
Roland Dreier [Thu, 16 Nov 2006 23:39:43 +0000 (15:39 -0800)]
Fix rewritten test for linker script support

Remove extra parameter to AC_SUBST left by mistake.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoSupport provider response data in reg_mr command
Steve Wise [Thu, 5 Oct 2006 17:37:35 +0000 (12:37 -0500)]
Support provider response data in reg_mr command

Allow kernel register MR command to pass back driver-specific data to
the userspace driver.  The code is there to do this in the kernel, but
not in the libibverbs cmd interface.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd async_event callback function to struct ibv_context_ops
Steve Wise [Thu, 16 Nov 2006 20:06:14 +0000 (14:06 -0600)]
Add async_event callback function to struct ibv_context_ops

Add a callback function so low-level driver libraries can get a
callback with each async event retrieved by the user.  It allows the
bypass library to do WQ or CQ processing that needs to happen when a
fatal async event happens.  This async callback is similar to the
cq_event callback that already exists in libibverbs.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRemove svn keywords
Roland Dreier [Tue, 14 Nov 2006 05:19:34 +0000 (21:19 -0800)]
Remove svn keywords

Now that we're in git, there's no reason to have $Id in files.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRewrite test for linker script to get rid of Makefile conditionals
Roland Dreier [Thu, 2 Nov 2006 22:19:07 +0000 (22:19 +0000)]
Rewrite test for linker script to get rid of Makefile conditionals

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix previous sq_draining change so it actually builds
Roland Dreier [Tue, 31 Oct 2006 15:52:42 +0000 (15:52 +0000)]
Fix previous sq_draining change so it actually builds

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoReturn sq_draining properly from query_qp
Jack Morgenstein [Tue, 31 Oct 2006 05:30:54 +0000 (05:30 +0000)]
Return sq_draining properly from query_qp

Return the sq_draining value back to user space for query_qp instead
of the en_sqd_async notify value.  This last is valid only for
modify_qp. For query_qp (according to the IB Spec V1.2), the draining
status should returned.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMinor cleanups
Roland Dreier [Tue, 31 Oct 2006 05:29:26 +0000 (05:29 +0000)]
Minor cleanups

Remove unused driver structure member, constify a few things, etc.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd rmb() and wmb() to <infiniband/arch.h>
Roland Dreier [Tue, 17 Oct 2006 23:07:44 +0000 (23:07 +0000)]
Add rmb() and wmb() to <infiniband/arch.h>

Update i386/x86_64 versions to use "lock; addl $0"/"lfence" instead of
just a compiler barrier, to guard against out-of-order speculative
reads.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd README notes about Valgrind memcheck support
Jeff Squyres [Tue, 17 Oct 2006 22:33:15 +0000 (22:33 +0000)]
Add README notes about Valgrind memcheck support

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd handling of --with-valgrind=<valgrind dir>
Roland Dreier [Tue, 17 Oct 2006 22:23:33 +0000 (22:23 +0000)]
Add handling of --with-valgrind=<valgrind dir>

Change libibverbs Valgrind support so that --with-valgrind can take an
installation directory to look in for Valgrind headers.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate ChangeLogs to give credit for Valgrind annotations
Roland Dreier [Sun, 8 Oct 2006 21:42:23 +0000 (21:42 +0000)]
Update ChangeLogs to give credit for Valgrind annotations

Signed-off-by: Roland Dreier <rolandd@cisco.com>
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>