net/mlx5: Add EQ enable/disable API
authorYuval Avnery <yuvalav@mellanox.com>
Mon, 10 Jun 2019 23:38:42 +0000 (23:38 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Jun 2019 17:59:49 +0000 (10:59 -0700)
commit1f8a7bee27e63d7c5287719049941e285e54d370
tree5f838bebd4ff22696c5d32855e1490461c4e35ee
parent81bfa206032a67f0700459a64a5493c246629604
net/mlx5: Add EQ enable/disable API

Previously, EQ joined the chain notifier on creation.
This forced the caller to be ready to handle events before creating
the EQ through eq_create_generic interface.

To help the caller control when the created EQ will be attached to the
IRQ, add enable/disable API.

Signed-off-by: Yuval Avnery <yuvalav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h
include/linux/mlx5/eq.h