diff options
author | Jianbo Liu <jianbol@nvidia.com> | 2022-11-02 23:55:45 -0700 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-11-09 10:30:43 -0800 |
commit | 9e06430841363a1d2932d546fdce1cc5edb3c2a0 (patch) | |
tree | 443a2ce1ec49833469c4e6b2d2cbf3120b7b14ef /drivers/net | |
parent | 08912ea799cd2a43b8999457e316967fe4e2f327 (diff) | |
download | lwn-9e06430841363a1d2932d546fdce1cc5edb3c2a0.tar.gz lwn-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')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 6 |
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; } |