diff options
author | Vladimir Sokolovsky <vlad@mellanox.co.il> | 2010-04-14 17:23:39 +0300 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-04-21 16:37:49 -0700 |
commit | 6fa8f719844b8455033e295f720e739c1dc3804a (patch) | |
tree | f3080e38beb16b836ec5eb3ba6cb99dfc07316a0 /include/linux/mlx4/qp.h | |
parent | 5e80ba8ff0bd33ff4af2365969a231cbdb98cafb (diff) | |
download | talos-op-linux-6fa8f719844b8455033e295f720e739c1dc3804a.tar.gz talos-op-linux-6fa8f719844b8455033e295f720e739c1dc3804a.zip |
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 { __be64 compare; }; +struct mlx4_wqe_masked_atomic_seg { + __be64 swap_add; + __be64 compare; + __be64 swap_add_mask; + __be64 compare_mask; +}; + struct mlx4_wqe_data_seg { __be32 byte_count; __be32 lkey; |