Skip to content

Commit

Permalink
net/mlx5: Properly name the generic WQE control field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tariq Toukan authored and Saeed Mahameed committed Jul 3, 2019
1 parent a12ff35 commit 0718edf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/linux/mlx5/qp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0718edf

Please sign in to comment.