vdpa/mlx5: validate notifier configuration
authorMatan Azrad <matan@mellanox.com>
Tue, 24 Mar 2020 14:24:36 +0000 (14:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commitf6f1f024b0d265b0633dbaa343227b4b76304093
treebbbd54c8a8d00a0656624027d2cb45940000779b
parentbd09eb7b613ba62986f2d37e6889b8f532044782
vdpa/mlx5: validate notifier configuration

When both, direct and indirect notifier management cannot be
configured, return an error.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c