mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
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>
This commit is contained in:
parent
c93682477b
commit
d237baa1cb
4 changed files with 35 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -203,7 +203,8 @@ enum {
|
|||
MLX4_DEV_CAP_FLAG2_80_VFS = 1LL << 18,
|
||||
MLX4_DEV_CAP_FLAG2_FS_A0 = 1LL << 19,
|
||||
MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT = 1LL << 20,
|
||||
MLX4_DEV_CAP_FLAG2_PORT_REMAP = 1LL << 21
|
||||
MLX4_DEV_CAP_FLAG2_PORT_REMAP = 1LL << 21,
|
||||
MLX4_DEV_CAP_FLAG2_QCN = 1LL << 22,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Reference in a new issue