aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@nvidia.com>2022-11-02 23:55:45 -0700
committerSaeed Mahameed <saeedm@nvidia.com>2022-11-09 10:30:43 -0800
commit9e06430841363a1d2932d546fdce1cc5edb3c2a0 (patch)
tree443a2ce1ec49833469c4e6b2d2cbf3120b7b14ef /drivers/net/ethernet/mellanox/mlx5
parentnet/mlx5e: Fix tc acts array not to be dependent on enum order (diff)
downloadlinux-dev-9e06430841363a1d2932d546fdce1cc5edb3c2a0.tar.xz
linux-dev-9e06430841363a1d2932d546fdce1cc5edb3c2a0.zip
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: a8d52b024d6d ("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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_tc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
index dd6fea9e9a5b..372dfb89e396 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
@@ -4758,12 +4758,6 @@ int mlx5e_policer_validate(const struct flow_action *action,
return -EOPNOTSUPP;
}
- if (act->police.rate_pkt_ps) {
- NL_SET_ERR_MSG_MOD(extack,
- "QoS offload not support packets per second");
- return -EOPNOTSUPP;
- }
-
return 0;
}