From: wenxu <wenxu@xxxxxxxxx> Set hw_stats_type of flow_action_entry to FLOW_ACTION_HW_STATS_ANY to follow the driver behavior. Signed-off-by: wenxu <wenxu@xxxxxxxxx> --- net/netfilter/nf_flow_table_offload.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/netfilter/nf_flow_table_offload.c b/net/netfilter/nf_flow_table_offload.c index a68136a..88d2ac5 100644 --- a/net/netfilter/nf_flow_table_offload.c +++ b/net/netfilter/nf_flow_table_offload.c @@ -165,8 +165,12 @@ static void flow_offload_mangle(struct flow_action_entry *entry, flow_action_entry_next(struct nf_flow_rule *flow_rule) { int i = flow_rule->rule->action.num_entries++; + struct flow_action_entry *entry; + + entry = &flow_rule->rule->action.entries[i]; + entry->hw_stats_type = FLOW_ACTION_HW_STATS_ANY; - return &flow_rule->rule->action.entries[i]; + return entry; } static int flow_offload_eth_src(struct net *net, -- 1.8.3.1