mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 05:00:11 +07:00
nfp: allow explicitly selected delayed stats
NFP flower offload uses delayed stats. Kernel recently gained the ability to specify stats types. Make nfp accept DELAYED stats, not just the catch all "any". Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
53eca1f347
commit
36b4b92b8d
@ -1207,7 +1207,8 @@ int nfp_flower_compile_action(struct nfp_app *app,
|
||||
bool pkt_host = false;
|
||||
u32 csum_updated = 0;
|
||||
|
||||
if (!flow_action_basic_hw_stats_check(&flow->rule->action, extack))
|
||||
if (!flow_action_hw_stats_check(&flow->rule->action, extack,
|
||||
FLOW_ACTION_HW_STATS_DELAYED_BIT))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
memset(nfp_flow->action_data, 0, NFP_FL_MAX_A_SIZ);
|
||||
|
Loading…
Reference in New Issue
Block a user