projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a12ff35
)
net/mlx5: Properly name the generic WQE control field
author
Tariq Toukan
<tariqt@mellanox.com>
Tue, 2 Jul 2019 14:12:09 +0000
(17:12 +0300)
committer
Saeed Mahameed
<saeedm@mellanox.com>
Wed, 3 Jul 2019 19:50:42 +0000
(12:50 -0700)
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>
include/linux/mlx5/qp.h
patch
|
blob
|
history
diff --git
a/include/linux/mlx5/qp.h
b/include/linux/mlx5/qp.h
index d1f353c647970a47244aedac20fb7cb20e796c4d..127d224443e36003671be24e40c062b006795095 100644
(file)
--- 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