diff options
author | 2018-03-22 12:32:12 +0200 | |
---|---|---|
committer | 2018-05-17 14:17:34 -0700 | |
commit | b17f7fc10facca9e1b2b9cef39af0a8179796c14 (patch) | |
tree | b3a5fc642835364f515c91be5e91293e27506591 /drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | |
parent | net/mlx5: Properly handle a vport destination when setting FTE (diff) | |
download | linux-b17f7fc10facca9e1b2b9cef39af0a8179796c14.tar.gz linux-b17f7fc10facca9e1b2b9cef39af0a8179796c14.tar.bz2 linux-b17f7fc10facca9e1b2b9cef39af0a8179796c14.zip |
net/mlx5: Add destination e-switch owner
The destination e-switch owner allows a rule in namespace of one e-switch
owner to point to a vport that is natively associated with another
e-switch owner.
Signed-off-by: Shahar Klein <shahark@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index 332bc56306bf..9a24314b817a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -192,7 +192,7 @@ __esw_fdb_set_vport_rule(struct mlx5_eswitch *esw, u32 vport, bool rx_rule, } dest.type = MLX5_FLOW_DESTINATION_TYPE_VPORT; - dest.vport_num = vport; + dest.vport.num = vport; esw_debug(esw->dev, "\tFDB add rule dmac_v(%pM) dmac_c(%pM) -> vport(%d)\n", |