|
@@ -57,7 +57,8 @@ mlx5_eswitch_add_offloaded_rule(struct mlx5_eswitch *esw,
|
|
if (esw->mode != SRIOV_OFFLOADS)
|
|
if (esw->mode != SRIOV_OFFLOADS)
|
|
return ERR_PTR(-EOPNOTSUPP);
|
|
return ERR_PTR(-EOPNOTSUPP);
|
|
|
|
|
|
- action = attr->action;
|
|
|
|
|
|
+ /* per flow vlan pop/push is emulated, don't set that into the firmware */
|
|
|
|
+ action = attr->action & ~(MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH | MLX5_FLOW_CONTEXT_ACTION_VLAN_POP);
|
|
|
|
|
|
if (action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) {
|
|
if (action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) {
|
|
dest.type = MLX5_FLOW_DESTINATION_TYPE_VPORT;
|
|
dest.type = MLX5_FLOW_DESTINATION_TYPE_VPORT;
|