]> git.openfabrics.org - ~shefty/libibverbs.git/log
~shefty/libibverbs.git
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>
17 years agoCorrect sense of solicited_only parameter to ibv_cm_req_notify_cq()
Roland Dreier [Wed, 19 Oct 2005 21:25:34 +0000 (21:25 +0000)]
Correct sense of solicited_only parameter to ibv_cm_req_notify_cq()

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoImprove comments for ibv_ack_async_event and ibv_ack_async_events
Roland Dreier [Mon, 17 Oct 2005 22:40:49 +0000 (22:40 +0000)]
Improve comments for ibv_ack_async_event and ibv_ack_async_events

Pointed out by Michael S. Tsirkin.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd support for new datapath kernel commands
Roland Dreier [Fri, 14 Oct 2005 22:48:54 +0000 (22:48 +0000)]
Add support for new datapath kernel commands

Add handling for calling into kernel for datapath operations, so that
we can handle the PathScale userspace driver.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAvoid potential buffer overrun in ibv_srq_pingpong
Roland Dreier [Wed, 12 Oct 2005 21:56:46 +0000 (21:56 +0000)]
Avoid potential buffer overrun in ibv_srq_pingpong

Fix overrun in ibv_srq_pingpong (detected by Fedora Core 4
"FORTIFY_SOURCE").

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRemove unnecessary Debian postrm script, and simplify postinst script
Roland Dreier [Tue, 11 Oct 2005 17:09:39 +0000 (17:09 +0000)]
Remove unnecessary Debian postrm script, and simplify postinst script

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd Debian postinst/postrm scripts to add/remove "rdma" group
Roland Dreier [Tue, 11 Oct 2005 00:13:36 +0000 (00:13 +0000)]
Add Debian postinst/postrm scripts to add/remove "rdma" group

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBe a little less verbose if verbose flag is not set
Roland Dreier [Tue, 11 Oct 2005 00:13:13 +0000 (00:13 +0000)]
Be a little less verbose if verbose flag is not set

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoBump libibverbs version
Roland Dreier [Wed, 5 Oct 2005 19:51:57 +0000 (19:51 +0000)]
Bump libibverbs version

Also finish support for modify SRQ verb.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMove formatting of device's firmware version into device-specific code
Roland Dreier [Thu, 29 Sep 2005 19:31:34 +0000 (19:31 +0000)]
Move formatting of device's firmware version into device-specific code

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMinor libibverbs packaging cleanups
Roland Dreier [Thu, 29 Sep 2005 17:43:11 +0000 (17:43 +0000)]
Minor libibverbs packaging cleanups

Add dist to release and require sysfsutils-devel to for -devel package.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoInitial attempt at Fedora Extras spec files for libibverbs and libmthca
Roland Dreier [Thu, 29 Sep 2005 00:50:26 +0000 (00:50 +0000)]
Initial attempt at Fedora Extras spec files for libibverbs and libmthca

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate libibverbs and libmthca to handle uverbs ABI version 3
Roland Dreier [Mon, 26 Sep 2005 21:07:33 +0000 (21:07 +0000)]
Update libibverbs and libmthca to handle uverbs ABI version 3

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDebian packaging changes suggested by debian-mentors review
Roland Dreier [Fri, 16 Sep 2005 00:37:59 +0000 (00:37 +0000)]
Debian packaging changes suggested by debian-mentors review

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoPrint components of firmware version in hex
Roland Dreier [Tue, 13 Sep 2005 18:10:14 +0000 (18:10 +0000)]
Print components of firmware version in hex

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMake command structure sizes the same on 32-bit and 64-bit
Roland Dreier [Fri, 9 Sep 2005 20:04:21 +0000 (20:04 +0000)]
Make command structure sizes the same on 32-bit and 64-bit

Add 4-byte reserved members to the new destroy CQ, destroy QP and
destroy SRQ command structures so that they become a multiple of 8
bytes in size.  This fixes the structures so they have the same size
on both 32-bit and 64-bit architectures (which is required so that
32-bit userspace on a 64-bit kernel works correctly).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMake sure __BYTE_ORDER is defined
Roland Dreier [Wed, 7 Sep 2005 22:17:35 +0000 (22:17 +0000)]
Make sure __BYTE_ORDER is defined

Fail compilation if __BYTE_ORDER is neither __LITTLE_ENDIAN nor __BIG_ENDIAN.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoInclude htonll() and nothll() in <infiniband/arch.h>
Roland Dreier [Wed, 7 Sep 2005 20:01:31 +0000 (20:01 +0000)]
Include htonll() and nothll() in <infiniband/arch.h>

Move htonll() and ntohll() from libmthca into libibverb's
<infiniband/arch.h>, and use them in ibv_get_device_guid() to
avoid pointer aliasing (which some versions of gcc miscompile).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate libibverbs for stale completion event handling
Roland Dreier [Wed, 7 Sep 2005 18:16:14 +0000 (18:16 +0000)]
Update libibverbs for stale completion event handling

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd missing half of change log entry
Roland Dreier [Wed, 31 Aug 2005 23:01:55 +0000 (23:01 +0000)]
Add missing half of change log entry

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd -dbg packages with debugging symbols to Debian packages
Roland Dreier [Wed, 31 Aug 2005 22:51:36 +0000 (22:51 +0000)]
Add -dbg packages with debugging symbols to Debian packages

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUpdate for new kernel ABI (stale event handling)
Roland Dreier [Wed, 31 Aug 2005 18:39:26 +0000 (18:39 +0000)]
Update for new kernel ABI (stale event handling)

Update to handle new kernel ABI for avoiding stale asynchronous
events.  When a CQ, QP or SRQ is destroyed, the kernel reports the
number of events it has given to userspace, and we wait until we've
handled the same number of events.

This does introduce a library API change: consumers are now required
to call ibv_put_async_event() to release every asynchronous event that
they retrieve via ibv_get_async_event().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd man pages for libibverbs example programs
Roland Dreier [Wed, 31 Aug 2005 03:38:44 +0000 (03:38 +0000)]
Add man pages for libibverbs example programs

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix warnings on platforms where uint64_t != unsigned long long
Roland Dreier [Tue, 30 Aug 2005 21:34:01 +0000 (21:34 +0000)]
Fix warnings on platforms where uint64_t != unsigned long long

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix up Debian packaging
Roland Dreier [Tue, 30 Aug 2005 18:44:49 +0000 (18:44 +0000)]
Fix up Debian packaging

 - Add bug #s for ITP bugs
 - Change @topspin.com addresses to @cisco.com
 - Add Debian-specific package minor version

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMerge Dotan Barak's vstat tool into ibv_devinfo
Roland Dreier [Tue, 30 Aug 2005 17:38:18 +0000 (17:38 +0000)]
Merge Dotan Barak's vstat tool into ibv_devinfo

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAvoid segv when no IB devices are found
Pete Wyckoff [Fri, 26 Aug 2005 17:09:17 +0000 (17:09 +0000)]
Avoid segv when no IB devices are found

Signed-off-by: Pete Wyckoff <pw@osc.edu>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd support for SRQs
Roland Dreier [Wed, 10 Aug 2005 03:53:17 +0000 (03:53 +0000)]
Add support for SRQs

Add libibverbs support for SRQs, including ibv_srq_pingpong example.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMake --rx-depth work in pingpong examples
Roland Dreier [Tue, 9 Aug 2005 19:44:51 +0000 (19:44 +0000)]
Make --rx-depth work in pingpong examples

Fix option handling in pinpgong examples so that --rx-depth long
option actually works.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoLazy initialization of libibverbs on ibv_get_devices
Michael S. Tsirkin [Mon, 25 Jul 2005 22:25:59 +0000 (22:25 +0000)]
Lazy initialization of libibverbs on ibv_get_devices

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd port info dump to devinfo program
Roland Dreier [Fri, 1 Jul 2005 23:35:35 +0000 (23:35 +0000)]
Add port info dump to devinfo program

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMove ud-pingpong.c to ud_pingpong.c
Roland Dreier [Fri, 1 Jul 2005 20:55:49 +0000 (20:55 +0000)]
Move ud-pingpong.c to ud_pingpong.c

Be consistent with uc_pingpong.c and rc_pingpong.c.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoGet ready to receive before other side starts to send
Roland Dreier [Fri, 1 Jul 2005 20:54:33 +0000 (20:54 +0000)]
Get ready to receive before other side starts to send

Have server side of pingpong get ready to receive before client side
starts sending, to close a race condition.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFree context before closing associated file descriptors
Roland Dreier [Tue, 28 Jun 2005 16:11:49 +0000 (16:11 +0000)]
Free context before closing associated file descriptors

Free context before closing associated file descriptors.  This can
avoid some problems acquiring mmap_sem when there is still memory to
be released by the kernel.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAlways pass 0 for CQ event handler
Roland Dreier [Fri, 24 Jun 2005 17:28:32 +0000 (17:28 +0000)]
Always pass 0 for CQ event handler

Always pass 0 to the kernel for CQ event handler until multiple
handlers are implemented and added to the API.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDon't follow driver path in user's environment if we're running SUID
Roland Dreier [Fri, 24 Jun 2005 16:06:01 +0000 (16:06 +0000)]
Don't follow driver path in user's environment if we're running SUID

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoExpand libibverbs README
Roland Dreier [Thu, 23 Jun 2005 17:29:10 +0000 (17:29 +0000)]
Expand libibverbs README

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoUpdate for kernel ABI changes
Roland Dreier [Tue, 21 Jun 2005 21:27:34 +0000 (21:27 +0000)]
Update for kernel ABI changes

Update userspace verbs libraries to match kernel ABI changes (required
for using "struct ib_udata *" interface).

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoInclude debian/ directory in distribution tarballs
Roland Dreier [Wed, 15 Jun 2005 17:49:35 +0000 (17:49 +0000)]
Include debian/ directory in distribution tarballs

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoCreate new ibv_uc_pinpong example
Roland Dreier [Wed, 15 Jun 2005 17:20:59 +0000 (17:20 +0000)]
Create new ibv_uc_pinpong example

Create new ibv_uc_pinpong example for using UC transport.  Move
original RC pingpong to ibv_rc_pingpong for consistency.

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoWrite up some basics in libibverbs/README
Roland Dreier [Mon, 6 Jun 2005 20:05:14 +0000 (20:05 +0000)]
Write up some basics in libibverbs/README

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoImplement userspace side of query_device verb
Roland Dreier [Mon, 6 Jun 2005 19:44:17 +0000 (19:44 +0000)]
Implement userspace side of query_device verb

Implement query_device verb and add a "devinfo" example.

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoAdd generic userspace part of query GID and query P_Key verbs
Roland Dreier [Tue, 31 May 2005 15:56:49 +0000 (15:56 +0000)]
Add generic userspace part of query GID and query P_Key verbs

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoFix uninitialized AH attributes in pingpong examples
Michael S. Tsirkin [Wed, 25 May 2005 20:18:32 +0000 (20:18 +0000)]
Fix uninitialized AH attributes in pingpong examples

Some address handle attributes (notably static rate flow control) were
uninitialized. Fix this by initializing all fields to 0 using
designated initializers.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoAdd userspace side of {attach,detach}_mcast verbs
Roland Dreier [Sat, 14 May 2005 02:55:30 +0000 (02:55 +0000)]
Add userspace side of {attach,detach}_mcast verbs

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoFix pingpong parameter parsing typos
Michael S. Tsirkin [Mon, 9 May 2005 16:45:28 +0000 (16:45 +0000)]
Fix pingpong parameter parsing typos

Fix for two obvious typos in pingpong and ud-pingpong parameter parsing
(found by Grant in rdma_lat code).

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoUpdate error messages
Roland Dreier [Fri, 29 Apr 2005 16:41:52 +0000 (16:41 +0000)]
Update error messages

Update error messages in libibverbs init so they're easier to
understand, as suggested by Grant Grundler.

17 years agoSet version number to 0.1.0
Roland Dreier [Thu, 28 Apr 2005 23:18:36 +0000 (23:18 +0000)]
Set version number to 0.1.0

Also add debian/ directories to build libibverbs.

17 years agoAdd documentation for ibv_poll_cq function
Roland Dreier [Thu, 28 Apr 2005 23:17:52 +0000 (23:17 +0000)]
Add documentation for ibv_poll_cq function

17 years agoAdd command codes for all verbs
Roland Dreier [Wed, 20 Apr 2005 14:01:00 +0000 (14:01 +0000)]
Add command codes for all verbs

Add command codes for all verbs to userspace include files.  Define
parameter structures for query GID, query P_Key, attach multicast and
detach multicast commands.

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoLoad driver statically linked into executable
Roland Dreier [Mon, 18 Apr 2005 16:12:20 +0000 (16:12 +0000)]
Load driver statically linked into executable

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoCommit libibverbs code from roland-uverbs branch back onto trunk
Roland Dreier [Thu, 7 Apr 2005 21:26:32 +0000 (21:26 +0000)]
Commit libibverbs code from roland-uverbs branch back onto trunk

17 years agoContinue implementing verbs
Roland Dreier [Wed, 19 Jan 2005 05:55:31 +0000 (05:55 +0000)]
Continue implementing verbs

Add support for opening kernel uverbs file, getting context and event
FDs, and reading async events.

17 years agoFix library name passed to AC_INIT()
Roland Dreier [Thu, 13 Jan 2005 16:54:09 +0000 (16:54 +0000)]
Fix library name passed to AC_INIT()

17 years agoFill in more verbs API
Roland Dreier [Mon, 10 Jan 2005 23:47:29 +0000 (23:47 +0000)]
Fill in more verbs API

Start filling in more of the verbs API.

Implement tracking for possibly overlapping locked memory ranges.

17 years agoRemove unused old Makefile.am files
Roland Dreier [Wed, 29 Dec 2004 18:00:00 +0000 (18:00 +0000)]
Remove unused old Makefile.am files

17 years agoComplete rename to ib_devices
Roland Dreier [Tue, 28 Dec 2004 02:27:17 +0000 (02:27 +0000)]
Complete rename to ib_devices

Fix Makefile.am to build the right executable.

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoChange ib_drivers example to ib_devices
Roland Dreier [Tue, 28 Dec 2004 02:15:24 +0000 (02:15 +0000)]
Change ib_drivers example to ib_devices

Rename ib_drivers example program to ib_devices, which is a much more
sensible name.

Signed-off-by: Roland Dreier <roland@topspin.com>
17 years agoInitial check-in of libibverbs
Roland Dreier [Thu, 9 Nov 2006 19:33:52 +0000 (11:33 -0800)]
Initial check-in of libibverbs

Signed-off-by: Roland Dreier <roland@topspin.com>