IB/mlx5: Allocate flow DB only on PF IB device
authorMark Bloch <markb@mellanox.com>
Tue, 16 Jan 2018 14:42:35 +0000 (14:42 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 23 Feb 2018 20:36:39 +0000 (12:36 -0800)
commit9a4ca38d77054febf35cd568cd86aa41c6477301
tree0b9f12ceb97321bda191763e9189810781891ae4
parentfc385b7ac48089ed1c6866cdc0dceb4ae1fa54de
IB/mlx5: Allocate flow DB only on PF IB device

A flow DB is a shared resource between PF and representors,
need to allocate it only when creating the PF IB device.
Once we add IB representors, they will use the flow db which was
created by the PF.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h