flow_offload: add statistics retrieval infrastructure and use it
This patch provides the flow_stats structure that acts as container for tc_cls_flower_offload, then we can use to restore the statistics on the existing TC actions. Hence, tcf_exts_stats_update() is not used from drivers anymore. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3a7b68617d
commit
3b1903ef97
@@ -1396,8 +1396,8 @@ static int bnxt_tc_get_flow_stats(struct bnxt *bp,
|
||||
lastused = flow->lastused;
|
||||
spin_unlock(&flow->stats_lock);
|
||||
|
||||
tcf_exts_stats_update(tc_flow_cmd->exts, stats.bytes, stats.packets,
|
||||
lastused);
|
||||
flow_stats_update(&tc_flow_cmd->stats, stats.bytes, stats.packets,
|
||||
lastused);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user