summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2019-07-02 17:12:09 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2019-07-03 12:50:42 -0700
commit0718edf528c552c66a5dc3525ffb145971efa766 (patch)
tree0ca948d88c2de86929c42e694c6c815b09642ab0 /include/linux/mlx5
parenta12ff35e0fb770b4d060298be147189313ec002c (diff)
downloadlinux-0718edf528c552c66a5dc3525ffb145971efa766.tar.gz
linux-0718edf528c552c66a5dc3525ffb145971efa766.tar.bz2
linux-0718edf528c552c66a5dc3525ffb145971efa766.zip
net/mlx5: Properly name the generic WQE control field
A generic WQE control field is used for different purposes in different cases. Use union to allow using the proper name in each case. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/qp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mlx5/qp.h b/include/linux/mlx5/qp.h
index d1f353c64797..127d224443e3 100644
--- a/include/linux/mlx5/qp.h
+++ b/include/linux/mlx5/qp.h
@@ -202,7 +202,12 @@ struct mlx5_wqe_ctrl_seg {
u8 signature;
u8 rsvd[2];
u8 fm_ce_se;
- __be32 imm;
+ union {
+ __be32 general_id;
+ __be32 imm;
+ __be32 umr_mkey;
+ __be32 tisn;
+ };
};
#define MLX5_WQE_CTRL_DS_MASK 0x3f