]> git.openfabrics.org - ~shefty/libibverbs.git/log
~shefty/libibverbs.git
12 years agorefresh
Sean Hefty [Tue, 24 Apr 2012 18:51:08 +0000 (11:51 -0700)]
refresh

12 years agorefresh
Sean Hefty [Tue, 24 Apr 2012 18:51:08 +0000 (11:51 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Tue, 24 Apr 2012 18:51:08 +0000 (11:51 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Tue, 24 Apr 2012 18:51:08 +0000 (11:51 -0700)]
refresh (create temporary patch)

12 years agoRefresh of pdata
Sean Hefty [Tue, 24 Apr 2012 18:51:08 +0000 (11:51 -0700)]
Refresh of pdata

12 years agoSince "private" is a reserved word in C++, it shouldn't be used as a name of a
Dotan Barak [Tue, 24 Apr 2012 18:50:48 +0000 (11:50 -0700)]
Since "private" is a reserved word in C++, it shouldn't be used as a name of a
structure attribute.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agonew
Sean Hefty [Tue, 24 Apr 2012 18:50:48 +0000 (11:50 -0700)]
new

12 years agonew
Sean Hefty [Tue, 24 Apr 2012 18:50:48 +0000 (11:50 -0700)]
new

12 years agoSince "private" is a reserved word in C++, it shouldn't be used as a name of a
Sean Hefty [Tue, 24 Apr 2012 18:50:48 +0000 (11:50 -0700)]
Since "private" is a reserved word in C++, it shouldn't be used as a name of a
structure attribute.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorefresh
Sean Hefty [Thu, 22 Dec 2011 19:36:55 +0000 (11:36 -0800)]
refresh

12 years agorefresh
Sean Hefty [Thu, 22 Dec 2011 19:36:55 +0000 (11:36 -0800)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Thu, 22 Dec 2011 19:36:55 +0000 (11:36 -0800)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Thu, 22 Dec 2011 19:36:55 +0000 (11:36 -0800)]
refresh (create temporary patch)

12 years agoRefresh of ofed
Sean Hefty [Thu, 22 Dec 2011 19:36:55 +0000 (11:36 -0800)]
Refresh of ofed

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:59 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:59 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:58 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:58 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:57 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:57 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:56 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:56 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:55 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:55 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:54 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:54 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:52 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:52 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:47 +0000 (10:35 -0800)]
pop

12 years agopop
Sean Hefty [Thu, 22 Dec 2011 18:35:47 +0000 (10:35 -0800)]
pop

12 years agorefresh
Sean Hefty [Thu, 22 Dec 2011 08:16:28 +0000 (00:16 -0800)]
refresh

12 years agorefresh
Sean Hefty [Thu, 22 Dec 2011 08:16:28 +0000 (00:16 -0800)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Thu, 22 Dec 2011 08:16:28 +0000 (00:16 -0800)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Thu, 22 Dec 2011 08:16:28 +0000 (00:16 -0800)]
refresh (create temporary patch)

12 years agoRefresh of ofed
Sean Hefty [Thu, 22 Dec 2011 08:16:28 +0000 (00:16 -0800)]
Refresh of ofed

12 years agorefresh
Sean Hefty [Thu, 22 Dec 2011 08:14:58 +0000 (00:14 -0800)]
refresh

12 years agorefresh
Sean Hefty [Thu, 22 Dec 2011 08:14:58 +0000 (00:14 -0800)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Thu, 22 Dec 2011 08:14:58 +0000 (00:14 -0800)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Thu, 22 Dec 2011 08:14:58 +0000 (00:14 -0800)]
refresh (create temporary patch)

12 years agoRefresh of ofed
Sean Hefty [Thu, 22 Dec 2011 08:14:58 +0000 (00:14 -0800)]
Refresh of ofed

12 years agolibibverbs: Support both OFED verbs and ibverbs
Sean Hefty [Thu, 22 Dec 2011 08:14:12 +0000 (00:14 -0800)]
libibverbs: Support both OFED verbs and ibverbs

From: Sean Hefty <sean.hefty@intel.com>

This patch allows libibverbs to support both libibverbs API that
shipped with OFED 1.5 and the upstream libibverbs API.  This
supports existing apps that are compiled against the upstream
libibverbs (ibverbs).  And in ideal cases, an application
coded to the OFED version of libibverbs (ofverbs) would only
need to be recompiled with 'CFLAGS=-DOFED_VERBS' given as a
configuration option.

Support for OFED verbs is done using macros that convert the OFED
APIs to ibverbs APIs.  In most cases, simple data casts are all
that are necessary, with XRC support being the primary exception.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agolibibverbs: Support both OFED verbs and ibverbs
Sean Hefty [Thu, 22 Dec 2011 08:14:12 +0000 (00:14 -0800)]
libibverbs: Support both OFED verbs and ibverbs

From: Sean Hefty <sean.hefty@intel.com>

This patch allows libibverbs to support both libibverbs API that
shipped with OFED 1.5 and the upstream libibverbs API.  This
supports existing apps that are compiled against the upstream
libibverbs (ibverbs).  And in ideal cases, an application
coded to the OFED version of libibverbs (ofverbs) would only
need to be recompiled with 'CFLAGS=-DOFED_VERBS' given as a
configuration option.

Support for OFED verbs is done using macros that convert the OFED
APIs to ibverbs APIs.  In most cases, simple data casts are all
that are necessary, with XRC support being the primary exception.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agonew
Sean Hefty [Thu, 22 Dec 2011 08:14:12 +0000 (00:14 -0800)]
new

12 years agonew
Sean Hefty [Thu, 22 Dec 2011 08:14:12 +0000 (00:14 -0800)]
new

12 years agolibibverbs: Support both OFED verbs and ibverbs
Sean Hefty [Thu, 22 Dec 2011 08:14:12 +0000 (00:14 -0800)]
libibverbs: Support both OFED verbs and ibverbs

From: Sean Hefty <sean.hefty@intel.com>

This patch allows libibverbs to support both libibverbs API that
shipped with OFED 1.5 and the upstream libibverbs API.  This
supports existing apps that are compiled against the upstream
libibverbs (ibverbs).  And in ideal cases, an application
coded to the OFED version of libibverbs (ofverbs) would only
need to be recompiled with 'CFLAGS=-DOFED_VERBS' given as a
configuration option.

Support for OFED verbs is done using macros that convert the OFED
APIs to ibverbs APIs.  In most cases, simple data casts are all
that are necessary, with XRC support being the primary exception.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoAdd man page for ib_open_qp
Sean Hefty [Thu, 22 Dec 2011 08:10:21 +0000 (00:10 -0800)]
Add man page for ib_open_qp

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:10:21 +0000 (00:10 -0800)]
import

12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:10:21 +0000 (00:10 -0800)]
import

12 years agoAdd ibv_open_qp()
Sean Hefty [Thu, 22 Dec 2011 08:10:11 +0000 (00:10 -0800)]
Add ibv_open_qp()

XRC receive QPs are shareable across multiple processes.  Allow
any process with access to the xrc domain to open an existing
QP.  After opening the QP, the process will receive events
related to the QP and be able to modify the QP.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:10:11 +0000 (00:10 -0800)]
import

12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:10:11 +0000 (00:10 -0800)]
import

12 years agolibibverbs: Add xrc pingpong example
Jay Sternberg [Thu, 22 Dec 2011 08:09:12 +0000 (00:09 -0800)]
libibverbs: Add xrc pingpong example

Signed-off-by: Jay Sternberg <jay.e.sternberg@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:09:12 +0000 (00:09 -0800)]
import

12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:09:12 +0000 (00:09 -0800)]
import

12 years agoAdd/update man pages for xrc verbs
Sean Hefty [Thu, 22 Dec 2011 08:08:59 +0000 (00:08 -0800)]
Add/update man pages for xrc verbs

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:08:59 +0000 (00:08 -0800)]
import

12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:08:59 +0000 (00:08 -0800)]
import

12 years agoUsing extensions to define XRC support
Sean Hefty [Thu, 22 Dec 2011 08:08:19 +0000 (00:08 -0800)]
Using extensions to define XRC support

Define a common libibverbs extension to support XRC.

XRC introduces several new concepts and structures:

XRC domains: xrcd's are a type of protection domain used to
associate shared receive queues with xrc queue pairs.  Since
xrcd are meant to be shared among multiple processes, we
introduce new APIs to open/close xrcd's.

XRC shared receive queues: xrc srq's are similar to normal
srq's, except that they are bound to an xrcd, rather
than to a protection domain.  Based on the current spec
and implementation, they are only usable with xrc qps.  To
support xrc srq's, we extend the existing srq_init_attr
structure to include an srq type and other needed information.
The extended fields are ignored unless extensions are being
used to support existing applications.

XRC queue pairs: xrc defines two new types of QPs.  The
initiator, or send-side, xrc qp behaves similar to a send-
only RC qp.  xrc send qp's are managed through the existing
QP functions.  The send_wr structure is extended in a back-
wards compatible way to support posting sends on a send xrc
qp, which require specifying the remote xrc srq.

The target, or receive-side, xrc qp behaves differently
than other implemented qp's.  A recv xrc qp can be created,
modified, and destroyed like other qp's through the existing
calls.  The qp_init_attr structure is extended for xrc qp's,
with extension support dependent upon the qp_type being
defined correctly.

Because xrc recv qp's are bound to an xrcd, rather than a pd,
it is intended to be used among multiple processes.  Any process
with access to an xrcd may allocate and connect an xrc recv qp.
The actual xrc recv qp is allocated and managed by the kernel.
If the owning process explicit destroys the xrc recv qp, it is
destroyed.  However, if the xrc recv qp is left open when the
user process exits or closes its device, then the lifetime of
the xrc recv qp is bound with the lifetime of the xrcd.

The user to kernel ABI is extended to account for opening/
closing the xrcd and the creation of the extended srq type.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:08:19 +0000 (00:08 -0800)]
import

12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:08:19 +0000 (00:08 -0800)]
import

12 years agoAllow 3rd party extensions to verb routines
Sean Hefty [Thu, 22 Dec 2011 08:07:51 +0000 (00:07 -0800)]
Allow 3rd party extensions to verb routines

In order to support OFED, vendor specific calls, or new ibverbs
operations, define a generic extension mechanism.  This allows
OFED, an RDMA vendor, or another registered 3rd party (for
example, the librdmacm) to define RDMA extensions, plus provides
a backwards compatible way to add new features to ibverbs.

Users which make use extensions are aware that they are not
only using an extended call, but are given information regarding
how widely the extension by be supported based on the name of the
extension.  E.g. a VENDOR extension is specific to a vendor, whereas
an OFA extension is standardized within an organization.
Support for extended functions, data structures, and enums are defined.

Extensions are referenced by name.  There is an assumption that
extension names are prefixed relative to the supporting party.
Until an extension has been incorporated into libibverbs, it
should be defined in an appropriate external header file.

Driver libraries that support extensions are given a new
registration call, ibv_register_device_ext().  Use of this call
indicates to libibverbs that the library allocates extended
versions of struct ibv_device and struct ibv_context.

The following new APIs are added to libibverbs to applications
to use to determine if an extension is supported and to obtain the
extended function calls.

ibv_have_ext_ops - returns true if an extension is supported
ibv_get_device_ext_ops - return extended operations for a device
ibv_get_ext_ops - return extended operations for an open context

To maintain backwards compatibility with existing applications,
internally, the library uses the last byte of the device name
to record if the device was registered with extension support.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:07:51 +0000 (00:07 -0800)]
import

12 years agoimport
Sean Hefty [Thu, 22 Dec 2011 08:07:51 +0000 (00:07 -0800)]
import

12 years agostart of log
Sean Hefty [Thu, 22 Dec 2011 08:07:51 +0000 (00:07 -0800)]
start of log

12 years agostart of log
Sean Hefty [Thu, 22 Dec 2011 08:07:51 +0000 (00:07 -0800)]
start of log

12 years agoFix memory leaks in various error flows
Dotan Barak [Mon, 14 Nov 2011 16:54:38 +0000 (08:54 -0800)]
Fix memory leaks in various error flows

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
12 years agoAdd support to ibv_devinfo for displaying extended speeds
Marcel Apfelbaum [Mon, 3 Oct 2011 15:56:25 +0000 (18:56 +0300)]
Add support to ibv_devinfo for displaying extended speeds

Add code to ibv_devinfo to display the following new speeds:

    8:  FDR-10 is a proprietary link speed which is 10.3125 Gbps with 64b/66b
        encoding rather than 8b/10b encoding.
    16: FDR - 14.0625 Gbps
    32: EDR - 25.78125 Gbps

Signed-off-by: Marcel Apfelbaum <marcela@dev.mellanox.co.il>
Reviewed-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
12 years agoDebian: Don't use brace expansion for {a,so} in libibverbs-dev.install
Roland Dreier [Fri, 11 Nov 2011 23:04:58 +0000 (15:04 -0800)]
Debian: Don't use brace expansion for {a,so} in libibverbs-dev.install

Signed-off-by: Roland Dreier <roland@purestorage.com>
12 years agoMakefile.am: Fix an automake warning
Bart Van Assche [Sun, 7 Aug 2011 18:01:48 +0000 (18:01 +0000)]
Makefile.am: Fix an automake warning

Fix the following automake warning message:

    Makefile.am:1: `INCLUDES' is the old name for `AM_CPPFLAGS' (or `*_CPPFLAGS')

A quote from the automake manual:

    INCLUDES
        This does the same job as AM_CPPFLAGS (or any per-target _CPPFLAGS variable
        if it is used). It is an older name for the same functionality. This
        variable is deprecated; we suggest using AM_CPPFLAGS and per-target
        _CPPFLAGS instead.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
12 years agoAdd "foreign" option to AM_INIT_AUTOMAKE
Bart Van Assche [Sun, 7 Aug 2011 18:01:08 +0000 (18:01 +0000)]
Add "foreign" option to AM_INIT_AUTOMAKE

Switch to the modern form of the AM_INIT_AUTOMAKE macro and tell
automake that the libibverbs package does not follow the GNU
standards.  This change makes it possible to use 'autoreconf' for the
libibverbs package.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
12 years agoUpdate examples for IBoE
Or Gerlitz [Tue, 19 Jul 2011 09:31:32 +0000 (09:31 +0000)]
Update examples for IBoE

Since IBoE requires usage of GRH, update ibv_*_pinpong examples to
accept GIDs.  GIDs are given as an index to the local port's table and
are exchanged between the client and the server through the socket
connection.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
12 years agoAdd GID change event
Or Gerlitz [Wed, 20 Jul 2011 19:38:58 +0000 (19:38 +0000)]
Add GID change event

Add handling for GID change events, which are generated by the kernel
IBoE stack when the HW driver updates the GID table.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
12 years agoUpdate kernel API header to include link_layer
Or Gerlitz [Tue, 19 Jul 2011 09:28:42 +0000 (09:28 +0000)]
Update kernel API header to include link_layer

Modify the code to handle returning the link layer of a port from the
kernel to the library.  The kernel has done this since commit
2420b60b1dc4 ("IB/uverbs: Return link layer type to userspace for
query port operation"), merged in 2.6.37-rc1.

The new field does not change the size of struct ibv_query_port_resp
as it replaces a reserved field.  Binary compatibility between the
kernel to the library is kept, since old kernels running below new
library will not zero that field, so it will be read as "unspecified,"
while an old library running over new kernel will ignore the value
returned by the kernel.

The solution was suggested by Roland Dreier <roland@purestorage.com>
and Jason Gunthorpe <jgunthorpe@obsidianresearch.com>

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
12 years agoAdd link_layer field port attribute
Or Gerlitz [Wed, 20 Jul 2011 19:37:24 +0000 (19:37 +0000)]
Add link_layer field port attribute

The new field has three possible values: IBV_LINK_LAYER_UNSPECIFIED,
IBV_LINK_LAYER_INFINIBAND, IBV_LINK_LAYER_ETHERNET.  It can be used by
applications to know the link layer used by the port, which can be
either InfiniBand or Ethernet.

The addition of the new field does not change the size of struct
ibv_port_attr due to alignment of the preceding fields.  Binary
compatibility between the library to applications is kept, since old
apps running over new library do not read this field, and new apps
running over old library will determine the link layer as unspecified
and hence take their IB code path.

The solution was suggested by Roland Dreier <roland@purestorage.com>
and Jason Gunthorpe <jgunthorpe@obsidianresearch.com>

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
13 years agoUpdate Debian Standards-Version to 3.9.2
Roland Dreier [Thu, 30 Jun 2011 06:58:10 +0000 (23:58 -0700)]
Update Debian Standards-Version to 3.9.2

Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoDon't ship .la files in Debian libibverbs-dev
Roland Dreier [Thu, 30 Jun 2011 06:56:41 +0000 (23:56 -0700)]
Don't ship .la files in Debian libibverbs-dev

Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoPackage description shouldn't start with an article
Roland Dreier [Thu, 30 Jun 2011 06:44:12 +0000 (23:44 -0700)]
Package description shouldn't start with an article

Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agodebian/libibverbs1.postinst: Let debhelper code run in all cases
Julien BLACHE [Thu, 30 Jun 2011 04:42:06 +0000 (21:42 -0700)]
debian/libibverbs1.postinst: Let debhelper code run in all cases

Do not exit postinst if not configuring -- code added by debhelper needs
to run in all cases, not only the configure case.

Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoRoll libibverbs 1.1.5 release
Roland Dreier [Tue, 28 Jun 2011 20:55:55 +0000 (13:55 -0700)]
Roll libibverbs 1.1.5 release

Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoHandle huge pages in ibv_fork_init() and madvise tracking
Alexander Schmidt [Fri, 20 Aug 2010 09:06:16 +0000 (09:06 +0000)]
Handle huge pages in ibv_fork_init() and madvise tracking

When fork support is enabled in libibverbs, madvise() is called for
every memory page that is registered as a memory region.  Memory
ranges that are passed to madvise() must be page aligned and the size
must be a multiple of the page size.

libibverbs uses sysconf(_SC_PAGESIZE) to find out the system page size
and rounds all ranges passed to reg_mr() according to this page size.
When memory from libhugetlbfs is passed to reg_mr(), this does not
work as the page size for this memory range might be different
(e.g. 16MB).  So libibverbs would have to use the huge page size to
calculate a page aligned range for madvise.

As huge pages are provided to the application "under the hood" when
preloading libhugetlbfs, the application does not have any knowledge
about when it registers a huge page or a usual page.

To work around this issue, detect the use of huge pages in libibverbs
and align memory ranges passed to madvise according to the huge page
size.  Determining the page size of a given memory range by watching
madvise() fail has proven to be unreliable.  So we introduce the
RDMAV_HUGEPAGES_SAFE environment variable to let the user decide if
the page size should be checked on every reg_mr() call or not. This
requires the user to be aware if huge pages are used by the running
application or not.

I did not add an aditional API call to enable this, as applications
can use setenv() + ibv_fork_init() to enable checking for huge pages
in the code.

Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
[ Updated ibv_fork_init() manpage for RDMAV_HUGEPAGES_SAFE.  - Roland ]

Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoSet DM-Upload-Allowed now that Roland is a Debian Maintainer
Roland Dreier [Tue, 28 Jun 2011 06:50:14 +0000 (23:50 -0700)]
Set DM-Upload-Allowed now that Roland is a Debian Maintainer

Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoFix date format in RPM spec file changelog
Dotan Barak [Wed, 15 Jun 2011 06:12:08 +0000 (06:12 +0000)]
Fix date format in RPM spec file changelog

Signed-off-by: Dotan Barak <dotan@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoread_config_file: ignore driver line without driver name
Yann Droneaud [Tue, 31 May 2011 18:20:39 +0000 (11:20 -0700)]
read_config_file: ignore driver line without driver name

If there's no driver name, strsep() will set config to NULL and later
processing of the driver name will segfault.

Spotted with zzuf.

Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoFix crash if no devices and ibv_get_device_list() is called multiple times
Roland Dreier [Fri, 27 May 2011 18:20:46 +0000 (11:20 -0700)]
Fix crash if no devices and ibv_get_device_list() is called multiple times

If no devices are found, ibverbs_init() sets num_devices to 0.  This
means the next call to __ibv_get_device_list() would call
ibverbs_init() again, which crashes because ibverbs_init() leaves
various internal pointers pointing to freed memory.

Fix this by using pthread_once() to call ibverbs_init() exactly once,
and then doing the right thing even if num_devices stays 0.

Tested-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
13 years agoAdd AC_PROG_LIBTOOL to fix libtool configure warning
Tom Tucker [Thu, 29 Jul 2010 16:31:51 +0000 (16:31 +0000)]
Add AC_PROG_LIBTOOL to fix libtool configure warning

Add AC_PROG_LIBTOOL to configure.in to fix an autogen.sh warning about
LIBTOOL configuration.

Signed-off-by: Tom Tucker <tom@ogc.us>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
13 years agoFix autotools to include the necessary m4 files
Jason Gunthorpe [Thu, 7 Oct 2010 22:38:33 +0000 (22:38 +0000)]
Fix autotools to include the necessary m4 files

Running autogen.sh with a new version of autotools and then building
on a system with an older version tends to explode.  Unfortunately
this is sometimes necessary since the new version is required by the
package.  The fix changes the autogen.sh output from:

    + aclocal -I config
    + libtoolize --force --copy
    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
    libtoolize: copying file `config/ltmain.sh'
    libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
    libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
    libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
    + autoheader
    + automake --foreign --add-missing --copy
    + autoconf

to:

    + aclocal -I config
    + libtoolize --force --copy
    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
    libtoolize: copying file `config/ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config'.
    libtoolize: copying file `config/libtool.m4'
    libtoolize: copying file `config/ltoptions.m4'
    libtoolize: copying file `config/ltsugar.m4'
    libtoolize: copying file `config/ltversion.m4'
    libtoolize: copying file `config/lt~obsolete.m4'
    + autoheader
    + automake --foreign --add-missing --copy
    + autoconf

And fixes various build problems in weird cases.

This is how GNU envisions this mess works at least...

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoRoll libibverbs 1.1.4 release
Roland Dreier [Thu, 3 Jun 2010 21:47:27 +0000 (14:47 -0700)]
Roll libibverbs 1.1.4 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoSmall configure.in modernizations
Roland Dreier [Thu, 3 Jun 2010 20:39:07 +0000 (13:39 -0700)]
Small configure.in modernizations

Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoDebian: Switch to dpkg-source 3.0 format
Roland Dreier [Thu, 3 Jun 2010 20:14:30 +0000 (13:14 -0700)]
Debian: Switch to dpkg-source 3.0 format

Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoForce line-buffering in ibv_asyncwatch
Hakon Bugge [Wed, 2 Jun 2010 17:01:10 +0000 (10:01 -0700)]
Force line-buffering in ibv_asyncwatch

ibv_asyncwatch defaults to block-buffering when stdout is redirected to
a file or pipe.  Changing to line-buffered mode makes it more usable in
scripted environments.

Signed-off-by: Hakon Bugge <Haakon.Bugge@sun.com>
14 years agoAdd path record definitions to sa.h
Sean Hefty [Thu, 6 May 2010 23:20:48 +0000 (16:20 -0700)]
Add path record definitions to sa.h

Add definitions for path record wire definition.  This will be used by
the librdmacm and ib_acm service, and is exchanged with the kernel
using the newer set and query route functionality.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoUndo changes in memory range tree when madvise() fails
Alex Vainman [Sun, 28 Mar 2010 17:06:16 +0000 (20:06 +0300)]
Undo changes in memory range tree when madvise() fails

ibv_madvise_range() doesn't cleanup if madvise() fails.  This patch
rolls back changes already made in the memory range tracking tree by
madvise() calls before the one that failed.  We can do this fairly
simply by simply restarting ibv_madvise_range() from the original
start to the current location with the opposite advice/inc values.

Signed-off-by: Alex Vainman <alexv@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoFix incorrect splits/merges in the memory tree when madvise() fails.
Alex Vainman [Mon, 1 Feb 2010 05:57:45 +0000 (07:57 +0200)]
Fix incorrect splits/merges in the memory tree when madvise() fails.

ibv_madvise_range() first manages (splits or merges) memory ranges in
the tree and only then calls madvise().  If madvise() fails, the
tree's memory range may contain incorrectly split or merged ranges.
The patch undoes the split and merge operations performed on the node
which caused the madvise() failure as well as on that node's
neighbors.

Signed-off-by: Alex Vainman <alexv@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoIncrement node refcount in ibv_madvise_range() only if madvise() succeeds
Alex Vainman [Mon, 1 Feb 2010 05:58:00 +0000 (07:58 +0200)]
Increment node refcount in ibv_madvise_range() only if madvise() succeeds

ibv_madvise_range() first updates the memory range reference count and
then calls to madvise().  If madvise() fails, the reference count of
the failed node is incorrect.  Fix this by updating the node's
reference count only after a successful call to madvise() (or if no
call to madvise() was needed).

Signed-off-by: Alex Vainman <alexv@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoFactor out range handling in ibv_madvise_range()
Alex Vainman [Mon, 1 Feb 2010 05:58:04 +0000 (07:58 +0200)]
Factor out range handling in ibv_madvise_range()

Clean up some code in ibv_madvise_range() by adding functions
merge_ranges(), split_range() and get_start_node().

Signed-off-by: Alex Vainman <alexv@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoUpdate Debian build rules so -dbg package isn't empty
Roland Dreier [Wed, 11 Nov 2009 22:45:46 +0000 (14:45 -0800)]
Update Debian build rules so -dbg package isn't empty

Add an override_dh_strip target so that the -dbg package ends up with
actual debug information in it.  This was broken in the dh7 transition.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoUse proper build dependency version in debian control file
Roland Dreier [Sat, 31 Oct 2009 04:23:18 +0000 (21:23 -0700)]
Use proper build dependency version in debian control file

The debian rules use a override_dh_makeshlibs target, so (as lintian
points out) we need a build dependency on debhelper >= 7.0.50.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoRoll libibverbs 1.1.3 release
Roland Dreier [Thu, 29 Oct 2009 21:24:49 +0000 (14:24 -0700)]
Roll libibverbs 1.1.3 release

Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoMerge Fedora spec file changes
Roland Dreier [Thu, 29 Oct 2009 21:13:23 +0000 (14:13 -0700)]
Merge Fedora spec file changes

Signed-off-by: Roland Dreier <rolandd@cisco.com>
14 years agoRewrite GID output in ibv_devinfo to avoid type punning warnings
Roland Dreier [Thu, 29 Oct 2009 21:09:08 +0000 (14:09 -0700)]
Rewrite GID output in ibv_devinfo to avoid type punning warnings

Avoid casting from uint8_t* to uint16_t* and then dereferencing to avoid
warnings about type punning.

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