]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5337fde0022a81c4df72a1a57fdf77485aa8b5d9
treeb749919d3104f825163af1e4663d148327338aef
parentca82b3d717880c708e406abb867bbe299e4d0edb
nfp: flower: add validation of for police actions which are independent of flows

Validation of police actions was added to offload drivers in
commit d7826daaf80f ("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