From: Tariq Toukan Date: Tue, 2 Jul 2019 14:12:09 +0000 (+0300) Subject: net/mlx5: Properly name the generic WQE control field X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0718edf528c552c66a5dc3525ffb145971efa766;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Saeed Mahameed --- 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