diff options
author | John Hurley <john.hurley@netronome.com> | 2019-02-13 00:23:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-13 21:07:47 -0800 |
commit | 9f9dc493f724b311c84d88b8e77dad14abd06bcc (patch) | |
tree | 7c17c030f07befc02de8bc77de5ac0d68240dbab /Documentation/usb | |
parent | 1f15bb4f399ceccd85522b24af31198f53516f9b (diff) | |
download | linux-9f9dc493f724b311c84d88b8e77dad14abd06bcc.tar.bz2 |
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: 3b1903ef97c0 ("flow_offload: add statistics retrieval infrastructure and use it")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/usb')
0 files changed, 0 insertions, 0 deletions