diff options
author | Sean Hefty <sean.hefty@intel.com> | 2011-06-02 11:32:15 -0700 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-10-13 09:44:18 -0700 |
commit | 0a1405da9952a72dd587829a3321695adde7dca1 (patch) | |
tree | b22e101a1555a65b2f9c75fa1315f51a8c5f5f7e /drivers/net | |
parent | 18abd5ea571608a7c726fc56e21d3e31f9febfd0 (diff) | |
download | blackbird-op-linux-0a1405da9952a72dd587829a3321695adde7dca1.tar.gz blackbird-op-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')
-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) * 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); |