diff options
author | Vladimir Sokolovsky <vlad@mellanox.co.il> | 2010-04-14 10:23:39 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-04-21 19:37:49 -0400 |
commit | 6fa8f719844b8455033e295f720e739c1dc3804a (patch) | |
tree | f3080e38beb16b836ec5eb3ba6cb99dfc07316a0 /include/linux/mlx4/qp.h | |
parent | 5e80ba8ff0bd33ff4af2365969a231cbdb98cafb (diff) |
IB/mlx4: Add support for masked atomic operations
Add support for masked atomic operations (masked compare and swap,
masked fetch and add).
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/linux/mlx4/qp.h')
-rw-r--r-- | include/linux/mlx4/qp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 9f29d86e5dc9..7abe64326f72 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h | |||
@@ -285,6 +285,13 @@ struct mlx4_wqe_atomic_seg { | |||
285 | __be64 compare; | 285 | __be64 compare; |
286 | }; | 286 | }; |
287 | 287 | ||
288 | struct mlx4_wqe_masked_atomic_seg { | ||
289 | __be64 swap_add; | ||
290 | __be64 compare; | ||
291 | __be64 swap_add_mask; | ||
292 | __be64 compare_mask; | ||
293 | }; | ||
294 | |||
288 | struct mlx4_wqe_data_seg { | 295 | struct mlx4_wqe_data_seg { |
289 | __be32 byte_count; | 296 | __be32 byte_count; |
290 | __be32 lkey; | 297 | __be32 lkey; |