IB/mlx5: E-Switch, Add rule to forward traffic to vport
authorMark Bloch <markb@mellanox.com>
Mon, 29 Jan 2018 10:40:37 +0000 (10:40 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 23 Feb 2018 20:36:39 +0000 (12:36 -0800)
commitb96c9dde17359520d6a5a8eb6d56d91f22c5a413
treead9a5077e2af22bb9acfd3c41b589a69e622b360
parent72afcf82477a58f40d748271a4a78755983203ef
IB/mlx5: E-Switch, Add rule to forward traffic to vport

In order to forward traffic from representor's SQ to the right virtual
function, every time an SQ is created also add the corresponding flow rule
to the FDB.

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