Skip to content

Commit 4073e26

Browse files
author
Mohammad Kabat
committed
net/mlx5e: TC, Fix wrong rejection of packet-per-second policing
Bugzilla: https://bugzilla.redhat.com/2112947 Upstream-status: v6.1-rc5 commit 9e06430 Author: Jianbo Liu <jianbol@nvidia.com> Date: Wed Nov 2 23:55:45 2022 -0700 net/mlx5e: TC, Fix wrong rejection of packet-per-second policing In the bellow commit, we added support for PPS policing without removing the check which block offload of such cases. Fix it by removing this check. Fixes: a8d52b0 ("net/mlx5e: TC, Support offloading police action") Signed-off-by: Jianbo Liu <jianbol@nvidia.com> Reviewed-by: Maor Dickman <maord@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Mohammad Kabat <mkabat@redhat.com>
1 parent 4bd1d5d commit 4073e26

File tree

1 file changed

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

1 file changed

+0
-6
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4738,12 +4738,6 @@ int mlx5e_policer_validate(const struct flow_action *action,
47384738
return -EOPNOTSUPP;
47394739
}
47404740

4741-
if (act->police.rate_pkt_ps) {
4742-
NL_SET_ERR_MSG_MOD(extack,
4743-
"QoS offload not support packets per second");
4744-
return -EOPNOTSUPP;
4745-
}
4746-
47474741
return 0;
47484742
}
47494743

0 commit comments

Comments
 (0)