summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en/tc
diff options
context:
space:
mode:
authorOz Shlomo <ozsh@nvidia.com>2022-12-08 08:31:48 +0000
committerSaeed Mahameed <saeedm@nvidia.com>2023-01-09 22:08:35 -0800
commitc09502d54dc109530ccb9a8910ab286d0745f119 (patch)
treeeac72942f7b6c2550ce5a43fc0f9dcb3240dc237 /drivers/net/ethernet/mellanox/mlx5/core/en/tc
parent2414c9b7a29d237c9c40abd62853dbc08b4ba7df (diff)
downloadlinux-stable-c09502d54dc109530ccb9a8910ab286d0745f119.tar.gz
linux-stable-c09502d54dc109530ccb9a8910ab286d0745f119.tar.bz2
linux-stable-c09502d54dc109530ccb9a8910ab286d0745f119.zip
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: 3603f26633e7 ("net/mlx5e: TC, allow meter jump control action") Signed-off-by: Oz Shlomo <ozsh@nvidia.com> Reviewed-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/tc')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police.c
index 512d43148922..c4378afdec09 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police.c
@@ -34,12 +34,6 @@ static int police_act_validate(const struct flow_action_entry *act,
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;
}