nfp: flower: add validation of for police actions which are independent of flows
authorZiyang Chen <ziyang.chen@corigine.com>
Wed, 14 Sep 2022 16:06:02 +0000 (17:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 20:25:12 +0000 (13:25 -0700)
commit9f1a948fd6eff607658158b4fb71e073dc8095b1
treeb749919d3104f825163af1e4663d148327338aef
parent4fa37e49114c7e20f9a23424f004ccf4155f1b47
nfp: flower: add validation of for police actions which are independent of flows

Validation of police actions was added to offload drivers in
commit d97b4b105ce7 ("flow_offload: reject offload for all drivers with
invalid police parameters")

This patch extends that validation in the nfp driver to include
police actions which are created independently of flows.

Signed-off-by: Ziyang Chen <ziyang.chen@corigine.com>
Reviewed-by: Baowen Zheng <baowen.zheng@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/qos_conf.c