Message ID | 20220825080845.507534-1-simon.horman@corigine.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ebe5555c2f34505cdb1ae5c3de8b24e33740b3e0 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] nfp: flower: fix ingress police using matchall filter | expand |
Hello: This patch was applied to netdev/net.git (master) by Jakub Kicinski <kuba@kernel.org>: On Thu, 25 Aug 2022 10:08:45 +0200 you wrote: > From: Tianyu Yuan <tianyu.yuan@corigine.com> > > 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. > > [...] Here is the summary with links: - [net] nfp: flower: fix ingress police using matchall filter https://git.kernel.org/netdev/net/c/ebe5555c2f34 You are awesome, thank you!
diff --git a/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c b/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c index 4e5df9f2c372..7b92026e1a6f 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c +++ b/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c @@ -127,10 +127,11 @@ static int nfp_policer_validate(const struct flow_action *action, return -EOPNOTSUPP; } - if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && + if (act->police.notexceed.act_id != FLOW_ACTION_CONTINUE && + act->police.notexceed.act_id != FLOW_ACTION_PIPE && act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { NL_SET_ERR_MSG_MOD(extack, - "Offload not supported when conform action is not pipe or ok"); + "Offload not supported when conform action is not continue, pipe or ok"); return -EOPNOTSUPP; }