OSDN Git Service

net/mlx5: Use event mask based on device capabilities
authorYishai Hadas <yishaih@mellanox.com>
Sun, 30 Jun 2019 16:23:23 +0000 (19:23 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 3 Jul 2019 17:55:45 +0000 (20:55 +0300)
commitb9a7ba5562074855e8a3f92ea7e1174b61a3e87d
tree3d2f3e4af99d2d31565ead07481717908a22fcd2
parent1d49ce1e05f804d9238eda66d6010eb492668a37
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>
drivers/infiniband/hw/mlx5/odp.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/fw.c
include/linux/mlx5/device.h
include/linux/mlx5/eq.h
include/linux/mlx5/mlx5_ifc.h