]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net/mlx5e: TC, Fix wrong rejection of packet-per-second policing
authorJianbo Liu <jianbol@nvidia.com>
Thu, 3 Nov 2022 06:55:45 +0000 (23:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Nov 2022 09:04:01 +0000 (10:04 +0100)
[ Upstream commit 9e06430841363a1d2932d546fdce1cc5edb3c2a0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

index a687f047e3aeb1ef43f69459b120882c013d6f8f..229c14b1af004bc4f90daec26357f74a4ef3cf0b 100644 (file)
@@ -4739,12 +4739,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;
 }