]> git.openfabrics.org - ~shefty/libmlx4.git/log
~shefty/libmlx4.git
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>