net/mlx5: E-Switch, Move representors definition to a global scope
authorMark Bloch <markb@mellanox.com>
Tue, 16 Jan 2018 14:04:14 +0000 (14:04 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 23 Feb 2018 20:36:38 +0000 (12:36 -0800)
commit57cbd893c4c575a24594fa6c0835247506ce26e2
tree6c3c525723a8da115fece1f09c0368197ebc5ed0
parent22215908d81f61d293e8b128e819a8437f37cc20
net/mlx5: E-Switch, Move representors definition to a global scope

In preparation for IB representors, move representors structs to a global
scope, also expose functions needed for registration, unregistration,
eswitch mode and creating a flow rule to direct traffic from SQs to the
right VF.

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/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
include/linux/mlx5/driver.h
include/linux/mlx5/eswitch.h [new file with mode: 0644]