diff options
author | Sean Hefty <sean.hefty@intel.com> | 2011-06-02 14:32:15 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-10-13 12:44:18 -0400 |
commit | 0a1405da9952a72dd587829a3321695adde7dca1 (patch) | |
tree | b22e101a1555a65b2f9c75fa1315f51a8c5f5f7e /drivers/net | |
parent | 18abd5ea571608a7c726fc56e21d3e31f9febfd0 (diff) |
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')
-rw-r--r-- | drivers/net/mlx4/qp.c | 3 |
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) | |||
280 | * We reserve 2 extra QPs per port for the special QPs. The | 280 | * We reserve 2 extra QPs per port for the special QPs. The |
281 | * block of special QPs must be aligned to a multiple of 8, so | 281 | * block of special QPs must be aligned to a multiple of 8, so |
282 | * round up. | 282 | * round up. |
283 | * | ||
284 | * We also reserve the MSB of the 24-bit QP number to indicate | ||
285 | * that a QP is an XRC QP. | ||
283 | */ | 286 | */ |
284 | dev->caps.sqp_start = | 287 | dev->caps.sqp_start = |
285 | ALIGN(dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW], 8); | 288 | ALIGN(dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW], 8); |