diff options
| author | Shani Michaeli <shanim@mellanox.com> | 2015-03-05 13:16:12 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-03-06 21:50:02 -0500 |
| commit | d237baa1cbb3a2335357484c1d63a810a01947e2 (patch) | |
| tree | 4ac9ffdd5da9ddd6dd8db317b5854701be5da3e1 /include/linux/mlx4 | |
| parent | c93682477bd861744589215515a63b81fdbd8948 (diff) | |
net/mlx4_core: Add basic elements for QCN
Add device capability, firmware command opcode and etc prior elements
needed for QCN suppprt. Disable SRIOV VF view/access for QCN is disabled.
While here, remove a redundant offset definition into the
QUERY_DEV_CAP mailbox.
Signed-off-by: Shani Michaeli <shanim@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
| -rw-r--r-- | include/linux/mlx4/cmd.h | 13 | ||||
| -rw-r--r-- | include/linux/mlx4/device.h | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index 7b6d4e9ff603..7299e9548906 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h | |||
| @@ -163,6 +163,9 @@ enum { | |||
| 163 | MLX4_QP_FLOW_STEERING_ATTACH = 0x65, | 163 | MLX4_QP_FLOW_STEERING_ATTACH = 0x65, |
| 164 | MLX4_QP_FLOW_STEERING_DETACH = 0x66, | 164 | MLX4_QP_FLOW_STEERING_DETACH = 0x66, |
| 165 | MLX4_FLOW_STEERING_IB_UC_QP_RANGE = 0x64, | 165 | MLX4_FLOW_STEERING_IB_UC_QP_RANGE = 0x64, |
| 166 | |||
| 167 | /* Update and read QCN parameters */ | ||
| 168 | MLX4_CMD_CONGESTION_CTRL_OPCODE = 0x68, | ||
| 166 | }; | 169 | }; |
| 167 | 170 | ||
| 168 | enum { | 171 | enum { |
| @@ -233,6 +236,16 @@ struct mlx4_config_dev_params { | |||
| 233 | u8 rx_csum_flags_port_2; | 236 | u8 rx_csum_flags_port_2; |
| 234 | }; | 237 | }; |
| 235 | 238 | ||
| 239 | enum mlx4_en_congestion_control_algorithm { | ||
| 240 | MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT = 0, | ||
| 241 | }; | ||
| 242 | |||
| 243 | enum mlx4_en_congestion_control_opmod { | ||
| 244 | MLX4_CONGESTION_CONTROL_GET_PARAMS, | ||
| 245 | MLX4_CONGESTION_CONTROL_GET_STATISTICS, | ||
| 246 | MLX4_CONGESTION_CONTROL_SET_PARAMS = 4, | ||
| 247 | }; | ||
| 248 | |||
| 236 | struct mlx4_dev; | 249 | struct mlx4_dev; |
| 237 | 250 | ||
| 238 | struct mlx4_cmd_mailbox { | 251 | struct mlx4_cmd_mailbox { |
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index e4ebff7e9d02..1cc54822b931 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -203,7 +203,8 @@ enum { | |||
| 203 | MLX4_DEV_CAP_FLAG2_80_VFS = 1LL << 18, | 203 | MLX4_DEV_CAP_FLAG2_80_VFS = 1LL << 18, |
| 204 | MLX4_DEV_CAP_FLAG2_FS_A0 = 1LL << 19, | 204 | MLX4_DEV_CAP_FLAG2_FS_A0 = 1LL << 19, |
| 205 | MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT = 1LL << 20, | 205 | MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT = 1LL << 20, |
| 206 | MLX4_DEV_CAP_FLAG2_PORT_REMAP = 1LL << 21 | 206 | MLX4_DEV_CAP_FLAG2_PORT_REMAP = 1LL << 21, |
| 207 | MLX4_DEV_CAP_FLAG2_QCN = 1LL << 22, | ||
| 207 | }; | 208 | }; |
| 208 | 209 | ||
| 209 | enum { | 210 | enum { |
