]> git.openfabrics.org - ~shefty/libmlx4.git/log
~shefty/libmlx4.git
17 years agoFix implicit declaration of memset() and memcpy() warnings
Jack Morgenstein [Thu, 19 Apr 2007 09:02:20 +0000 (12:02 +0300)]
Fix implicit declaration of memset() and memcpy() warnings

Fix a typo -- the include should be <string.h>, not <strings.h>.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoFix CQ size sanity check
Jack Morgenstein [Thu, 19 Apr 2007 08:53:16 +0000 (11:53 +0300)]
Fix CQ size sanity check

The maximum permissible number of CQEs per CQ for Hermon is 0x3fffff,
so we need to fix the sanity check in mlx4_create_cq() accordingly.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoImplement posting of RDMA and atomic operations
Roland Dreier [Fri, 13 Apr 2007 04:23:59 +0000 (21:23 -0700)]
Implement posting of RDMA and atomic operations

Clean up the definitions of remote address and atomic operations WQE
segments.  Fill in the missing code that fills in these segments when
posting RDMA or atomic operations to a send queue.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoSet correct byte_len in completions for atomic operations
Roland Dreier [Thu, 12 Apr 2007 22:20:28 +0000 (15:20 -0700)]
Set correct byte_len in completions for atomic operations

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoMultiple SRQ fixes
Roland Dreier [Wed, 11 Apr 2007 06:16:59 +0000 (23:16 -0700)]
Multiple SRQ fixes

Several one-liner fixes to SRQ support:
 - Scatter entry address is 64 bits, so use htonll() instead of
   htonl() when filling in WQE.
 - Minimum SRQ WQE size is 32 bytes, so use 5 as a minimum value of
   wqe_shift.
 - When initializing next_wqe_index values, use htons() to put indices
   into big-endian byte order.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoTrivial whitespace change to line up '='s
Roland Dreier [Wed, 11 Apr 2007 06:14:25 +0000 (23:14 -0700)]
Trivial whitespace change to line up '='s

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoAdd all PCI ids
Roland Dreier [Wed, 11 Apr 2007 03:14:56 +0000 (20:14 -0700)]
Add all PCI ids

SDR, DDR and QDR IB versions of ConnectX have different PCI device ids
(0x6340, 0x634a and 0x6354).  Add all of them to the table of
supported devices.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoTrivial whitespace cleanups
Roland Dreier [Tue, 10 Apr 2007 18:24:36 +0000 (11:24 -0700)]
Trivial whitespace cleanups

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoDon't set last byte of GID for non-global address vectors
Roland Dreier [Tue, 10 Apr 2007 17:33:48 +0000 (10:33 -0700)]
Don't set last byte of GID for non-global address vectors

Previous generation HCAs needed the last byte of the GID set to 2 for
non-global address vectors, but ConnectX just ignores the remote GID
field for non-global AVs, so remove the unnecessary code that sets it.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoRemove unused source file ah.c
Roland Dreier [Tue, 10 Apr 2007 17:31:03 +0000 (10:31 -0700)]
Remove unused source file ah.c

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoImplement handling for completions with error
Roland Dreier [Tue, 10 Apr 2007 03:36:47 +0000 (20:36 -0700)]
Implement handling for completions with error

Convert status from HCA's hardware values to libibverbs enum for
completions with error in mlx4_handle_error_cqe().  Also, there's no
way mlx4_handle_error_cqe() can fail, so there's no reason for it to
return a value.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoSimplify completion with error handling
Roland Dreier [Tue, 10 Apr 2007 03:20:44 +0000 (20:20 -0700)]
Simplify completion with error handling

The out-of-line function to handle error CQEs doesn't need as many
parameters as the libmthca version did, so get rid of everything
except the CQE pointer and the WC pointer.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoInitial import of libmlx4 repository
Roland Dreier [Mon, 9 Apr 2007 07:49:42 +0000 (00:49 -0700)]
Initial import of libmlx4 repository

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