diff options
author | Shani Michaeli | 2015-03-05 19:16:12 +0100 |
---|---|---|
committer | David S. Miller | 2015-03-07 03:50:02 +0100 |
commit | d237baa1cbb3a2335357484c1d63a810a01947e2 (patch) | |
tree | 4ac9ffdd5da9ddd6dd8db317b5854701be5da3e1 /include/linux/mlx4/cmd.h | |
parent | net/dcb: Add IEEE QCN attribute (diff) | |
download | kernel-qcow2-linux-d237baa1cbb3a2335357484c1d63a810a01947e2.tar.gz kernel-qcow2-linux-d237baa1cbb3a2335357484c1d63a810a01947e2.tar.xz kernel-qcow2-linux-d237baa1cbb3a2335357484c1d63a810a01947e2.zip |
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/cmd.h')
-rw-r--r-- | include/linux/mlx4/cmd.h | 13 |
1 files changed, 13 insertions, 0 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 { MLX4_QP_FLOW_STEERING_ATTACH = 0x65, MLX4_QP_FLOW_STEERING_DETACH = 0x66, MLX4_FLOW_STEERING_IB_UC_QP_RANGE = 0x64, + + /* Update and read QCN parameters */ + MLX4_CMD_CONGESTION_CTRL_OPCODE = 0x68, }; enum { @@ -233,6 +236,16 @@ struct mlx4_config_dev_params { u8 rx_csum_flags_port_2; }; +enum mlx4_en_congestion_control_algorithm { + MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT = 0, +}; + +enum mlx4_en_congestion_control_opmod { + MLX4_CONGESTION_CONTROL_GET_PARAMS, + MLX4_CONGESTION_CONTROL_GET_STATISTICS, + MLX4_CONGESTION_CONTROL_SET_PARAMS = 4, +}; + struct mlx4_dev; struct mlx4_cmd_mailbox { |