summaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/qp.c
diff options
context:
space:
mode:
authorSean Hefty2011-06-02 20:32:15 +0200
committerRoland Dreier2011-10-13 18:44:18 +0200
commit0a1405da9952a72dd587829a3321695adde7dca1 (patch)
treeb22e101a1555a65b2f9c75fa1315f51a8c5f5f7e /drivers/net/mlx4/qp.c
parentIB/mlx4: Add support for XRC SRQs (diff)
downloadkernel-qcow2-linux-0a1405da9952a72dd587829a3321695adde7dca1.tar.gz
kernel-qcow2-linux-0a1405da9952a72dd587829a3321695adde7dca1.tar.xz
kernel-qcow2-linux-0a1405da9952a72dd587829a3321695adde7dca1.zip
IB/mlx4: Add support for XRC QPs
Support the creation of XRC INI and TGT QPs. To handle the case where a CQ or PD is not provided, we allocate them internally with the xrcd. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/mlx4/qp.c')
-rw-r--r--drivers/net/mlx4/qp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/mlx4/qp.c b/drivers/net/mlx4/qp.c
index ec9350e5f21a..51c53898c35f 100644
--- a/drivers/net/mlx4/qp.c
+++ b/drivers/net/mlx4/qp.c
@@ -280,6 +280,9 @@ int mlx4_init_qp_table(struct mlx4_dev *dev)
* We reserve 2 extra QPs per port for the special QPs. The
* block of special QPs must be aligned to a multiple of 8, so
* round up.
+ *
+ * We also reserve the MSB of the 24-bit QP number to indicate
+ * that a QP is an XRC QP.
*/
dev->caps.sqp_start =
ALIGN(dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW], 8);