]> git.baikalelectronics.ru Git - kernel.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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Nov 2022 18:30:43 +0000 (10:30 -0800)
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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

index dd6fea9e9a5b7e1c48d5ba6058e01c347cfddcb8..372dfb89e396903c38934a64589f0c34aeb9242a 100644 (file)
@@ -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;
 }