summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/mlx5_ifc.h
diff options
context:
space:
mode:
authorLeon Romanovsky2018-12-06 13:40:11 +0100
committerLeon Romanovsky2018-12-19 07:06:57 +0100
commit2acc7957dbc354f3349261c2ebc6f56aff5829e7 (patch)
tree72ac5a30fde90cb59410a7188f1858a7ed703296 /include/linux/mlx5/mlx5_ifc.h
parentnet/mlx5: Continue driver initialization despite debugfs failure (diff)
downloadkernel-qcow2-linux-2acc7957dbc354f3349261c2ebc6f56aff5829e7.tar.gz
kernel-qcow2-linux-2acc7957dbc354f3349261c2ebc6f56aff5829e7.tar.xz
kernel-qcow2-linux-2acc7957dbc354f3349261c2ebc6f56aff5829e7.zip
net/mlx5: Add shared Q counter bits
Updated HW specification file with needed bits to allow sharing of Q counters between DEVX contexts and kernel. Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index f48d7ee345ff..bdb516b59be6 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -86,6 +86,10 @@ enum {
};
enum {
+ MLX5_SHARED_RESOURCE_UID = 0xffff,
+};
+
+enum {
MLX5_CMD_OP_QUERY_HCA_CAP = 0x100,
MLX5_CMD_OP_QUERY_ADAPTER = 0x101,
MLX5_CMD_OP_INIT_HCA = 0x102,
@@ -7567,7 +7571,7 @@ struct mlx5_ifc_alloc_q_counter_out_bits {
struct mlx5_ifc_alloc_q_counter_in_bits {
u8 opcode[0x10];
- u8 reserved_at_10[0x10];
+ u8 uid[0x10];
u8 reserved_at_20[0x10];
u8 op_mod[0x10];