Skip to content

Commit c09502d

Browse files
ozshlomoSaeed Mahameed
authored andcommitted
net/mlx5e: TC, Restore pkt rate policing support
The offending commit removed the support for all packet rate metering. Restore the pkt rate metering support by removing the restriction. Fixes: 3603f26 ("net/mlx5e: TC, allow meter jump control action") Signed-off-by: Oz Shlomo <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 2414c9b commit c09502d

File tree

1 file changed

+0
-6
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en/tc/act

1 file changed

+0
-6
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ static int police_act_validate(const struct flow_action_entry *act,
3434
return -EOPNOTSUPP;
3535
}
3636

37-
if (act->police.rate_pkt_ps) {
38-
NL_SET_ERR_MSG_MOD(extack,
39-
"QoS offload not support packets per second");
40-
return -EOPNOTSUPP;
41-
}
42-
4337
return 0;
4438
}
4539

0 commit comments

Comments
 (0)