diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-08-13 19:54:29 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-10-09 00:10:53 -0700 |
commit | fd22f78cf7b95102d8e5b988afe27165e47471fc (patch) | |
tree | 280a55566556f024072d097481eefd66b900ecad /include | |
parent | b261aeafe115256c9b4589dd7bd4ca877eb0fa6c (diff) | |
download | linux-stable-fd22f78cf7b95102d8e5b988afe27165e47471fc.tar.gz linux-stable-fd22f78cf7b95102d8e5b988afe27165e47471fc.tar.bz2 linux-stable-fd22f78cf7b95102d8e5b988afe27165e47471fc.zip |
IB/mlx5: Use enumerations for PI copy mask
In case input and output space parameters match, we can use a copy
mask from input and output space. Use enums for those.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx5/qp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/qp.h b/include/linux/mlx5/qp.h index 9709b30e2d69..4aa5634dc210 100644 --- a/include/linux/mlx5/qp.h +++ b/include/linux/mlx5/qp.h @@ -40,6 +40,9 @@ #define MLX5_SIG_WQE_SIZE (MLX5_SEND_WQE_BB * 5) #define MLX5_DIF_SIZE 8 #define MLX5_STRIDE_BLOCK_OP 0x400 +#define MLX5_CPY_GRD_MASK 0xc0 +#define MLX5_CPY_APP_MASK 0x30 +#define MLX5_CPY_REF_MASK 0x0f enum mlx5_qp_optpar { MLX5_QP_OPTPAR_ALT_ADDR_PATH = 1 << 0, |