net/mlx5: E-Switch, Add definition of IB representor
authorMark Bloch <markb@mellanox.com>
Tue, 16 Jan 2018 14:13:46 +0000 (14:13 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 23 Feb 2018 20:36:38 +0000 (12:36 -0800)
Create a new representor type: REP_IB. which will be initialized by an IB
device that is used as a logical representor of a eswitch vport (VF or
uplink) just like we have a net device today in switchdev mode.

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>
include/linux/mlx5/eswitch.h

index f62bf486c18c7c0e7b9f36e4ef4e467fda44cc34..d3c9db492b30065750726992ba1001c48153232b 100644 (file)
@@ -16,6 +16,7 @@ enum {
 
 enum {
        REP_ETH,
+       REP_IB,
        NUM_REP_TYPES,
 };