]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f30b9875d6f4131a2b1bdfe518c4fe95deb9f05
tree0b9f12ceb97321bda191763e9189810781891ae4
parentc8fe2837d8abb5d28c92ccebe7f6b55a6dc500f8
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