Skip to content

Commit 01f3d5d

Browse files
Vu PhamSaeed Mahameed
authored andcommitted
net/mlx5: E-Switch, Fix vlan or qos setting in legacy mode
Refactoring eswitch ingress acl codes accidentally inserts extra memset zero that removes vlan and/or qos setting in legacy mode. Fixes: 07bab95 ("net/mlx5: E-Switch, Refactor eswitch ingress acl codes") Signed-off-by: Vu Pham <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 47afbdd commit 01f3d5d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ int esw_acl_ingress_lgcy_setup(struct mlx5_eswitch *esw,
217217
}
218218

219219
/* Create ingress allow rule */
220-
memset(spec, 0, sizeof(*spec));
221220
spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
222221
flow_act.action = MLX5_FLOW_CONTEXT_ACTION_ALLOW;
223222
vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec,

0 commit comments

Comments
 (0)