]> git.ipfire.org Git - people/ms/linux.git/commit
nfp: flower: fix ingress police using matchall filter
authorTianyu Yuan <tianyu.yuan@corigine.com>
Thu, 25 Aug 2022 08:08:45 +0000 (10:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 27 Aug 2022 02:41:43 +0000 (19:41 -0700)
commitebe5555c2f34505cdb1ae5c3de8b24e33740b3e0
treed110c2db4ebffdb36709a5f6686b5744c6be86c5
parenta87406f4adee9c53b311d8a1ba2849c69e29a6d0
nfp: flower: fix ingress police using matchall filter

Referenced commit introduced nfp_policer_validate in the progress
installing rate limiter. This validate check the action id and will
reject police with CONTINUE, which is required to support ingress
police offload.

Fix this issue by allowing FLOW_ACTION_CONTINUE as notexceed action
id in nfp_policer_validate

Fixes: d97b4b105ce7 ("flow_offload: reject offload for all drivers with invalid police parameters")
Signed-off-by: Tianyu Yuan <tianyu.yuan@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>
Link: https://lore.kernel.org/r/20220825080845.507534-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/qos_conf.c