diff options
| author | Moni Shoua <monis@mellanox.com> | 2018-01-02 09:19:28 -0500 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-01-08 13:38:49 -0500 |
| commit | 57cda166bbe045151d46b2d1133fdf4afccb90ed (patch) | |
| tree | da956b2b45a1ec1911eaab0990800f684e893b42 /include/linux/mlx5/driver.h | |
| parent | 8fc12d94ee997625dbae102e597ac0f4a21f2142 (diff) | |
net/mlx5: Add DCT command interface
Add a missing command interface to work with a DCT. It includes: creating,
destroying and get events for.
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
| -rw-r--r-- | include/linux/mlx5/driver.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 2fe263f69751..0776554f18dc 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
| @@ -154,6 +154,13 @@ enum mlx5_dcbx_oper_mode { | |||
| 154 | MLX5E_DCBX_PARAM_VER_OPER_AUTO = 0x3, | 154 | MLX5E_DCBX_PARAM_VER_OPER_AUTO = 0x3, |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | enum mlx5_dct_atomic_mode { | ||
| 158 | MLX5_ATOMIC_MODE_DCT_OFF = 20, | ||
| 159 | MLX5_ATOMIC_MODE_DCT_NONE = 0 << MLX5_ATOMIC_MODE_DCT_OFF, | ||
| 160 | MLX5_ATOMIC_MODE_DCT_IB_COMP = 1 << MLX5_ATOMIC_MODE_DCT_OFF, | ||
| 161 | MLX5_ATOMIC_MODE_DCT_CX = 2 << MLX5_ATOMIC_MODE_DCT_OFF, | ||
| 162 | }; | ||
| 163 | |||
| 157 | enum { | 164 | enum { |
| 158 | MLX5_ATOMIC_OPS_CMP_SWAP = 1 << 0, | 165 | MLX5_ATOMIC_OPS_CMP_SWAP = 1 << 0, |
| 159 | MLX5_ATOMIC_OPS_FETCH_ADD = 1 << 1, | 166 | MLX5_ATOMIC_OPS_FETCH_ADD = 1 << 1, |
| @@ -432,6 +439,7 @@ enum mlx5_res_type { | |||
| 432 | MLX5_RES_SRQ = 3, | 439 | MLX5_RES_SRQ = 3, |
| 433 | MLX5_RES_XSRQ = 4, | 440 | MLX5_RES_XSRQ = 4, |
| 434 | MLX5_RES_XRQ = 5, | 441 | MLX5_RES_XRQ = 5, |
| 442 | MLX5_RES_DCT = MLX5_EVENT_QUEUE_TYPE_DCT, | ||
| 435 | }; | 443 | }; |
| 436 | 444 | ||
| 437 | struct mlx5_core_rsc_common { | 445 | struct mlx5_core_rsc_common { |
