summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/eq.h
diff options
context:
space:
mode:
authorYishai Hadas2019-06-30 18:23:23 +0200
committerLeon Romanovsky2019-07-03 19:55:45 +0200
commitb9a7ba5562074855e8a3f92ea7e1174b61a3e87d (patch)
tree3d2f3e4af99d2d31565ead07481717908a22fcd2 /include/linux/mlx5/eq.h
parentnet/mlx5: Fix mlx5_core_destroy_cq() error flow (diff)
downloadkernel-qcow2-linux-b9a7ba5562074855e8a3f92ea7e1174b61a3e87d.tar.gz
kernel-qcow2-linux-b9a7ba5562074855e8a3f92ea7e1174b61a3e87d.tar.xz
kernel-qcow2-linux-b9a7ba5562074855e8a3f92ea7e1174b61a3e87d.zip
net/mlx5: Use event mask based on device capabilities
Use the reported device capabilities for the supported user events (i.e. affiliated and un-affiliated) to set the EQ mask. As the event mask can be up to 256 defined by 4 entries of u64 change the applicable code to work accordingly. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Acked-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/eq.h')
-rw-r--r--include/linux/mlx5/eq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx5/eq.h b/include/linux/mlx5/eq.h
index 70e16dcfb4c4..e49d8c0d4f26 100644
--- a/include/linux/mlx5/eq.h
+++ b/include/linux/mlx5/eq.h
@@ -15,7 +15,7 @@ struct mlx5_core_dev;
struct mlx5_eq_param {
u8 irq_index;
int nent;
- u64 mask;
+ u64 mask[4];
};
struct mlx5_eq *