diff options
author | Huy Nguyen <huyn@mellanox.com> | 2019-03-22 15:42:08 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-03-29 20:24:43 +0100 |
commit | 36acf63a066f7e095ef2322118c2742a177daa65 (patch) | |
tree | 3f349fb5e023fdbb318152574a92809ba19b55c3 | |
parent | net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands (diff) | |
download | linux-36acf63a066f7e095ef2322118c2742a177daa65.tar.xz linux-36acf63a066f7e095ef2322118c2742a177daa65.zip |
net/mlx5: E-Switch, fix syndrome (0x678139) when turn on vepa
Make sure the struct mlx5_flow_destination is zero before
filling in the field.
Fixes: 8da202b24913 ("net/mlx5: E-Switch, Add support for VEPA in legacy mode.")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index c938954599c9..8a67fd197b79 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -2157,6 +2157,7 @@ static int _mlx5_eswitch_set_vepa_locked(struct mlx5_eswitch *esw, /* Star rule to forward all traffic to uplink vport */ memset(spec, 0, sizeof(*spec)); + memset(&dest, 0, sizeof(dest)); dest.type = MLX5_FLOW_DESTINATION_TYPE_VPORT; dest.vport.num = MLX5_VPORT_UPLINK; flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; |