Files
linux/include/net
John Hurley 9f9dc493f7 flow_offload: fix block stats
With the introduction of flow_stats_update(), drivers now update the stats
fields of the passed tc_cls_flower_offload struct, rather than call
tcf_exts_stats_update() directly to update the stats of offloaded TC
flower rules. However, if multiple qdiscs are registered to a TC shared
block and a flower rule is applied, then, when getting stats for the rule,
multiple callbacks may be made.

Take this into consideration by modifying flow_stats_update to gather the
stats from all callbacks. Currently, the values in tc_cls_flower_offload
only account for the last stats callback in the list.

Fixes: 3b1903ef97 ("flow_offload: add statistics retrieval infrastructure and use it")
Signed-off-by: John Hurley <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Acked-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2019-02-13 21:07:47 -08:00
..
…
…
…
…
…
…
…
…
…
2019-01-23 11:18:00 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-02-13 21:07:47 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-12-20 16:56:04 -08:00
…
…
…
2019-02-03 11:17:31 -08:00
…
…
2019-01-25 22:41:08 -08:00
…
…
…
…
…
…
…
2019-01-25 01:50:03 +01:00
…