]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20ed9c361ae7be7cf2652b42a8a5974f11163c86
tree3d2f3e4af99d2d31565ead07481717908a22fcd2
parent4f9f6da8d704ec0bf521d2c252fb1fe303e49e85
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