diff options
author | Po Liu <Po.Liu@nxp.com> | 2020-06-19 14:01:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 12:53:30 -0700 |
commit | 4b61d3e8d3daebbde7ec02d593f84248fdf8bec2 (patch) | |
tree | 5e780a81a8795b96dd46754d1695bf48c0bea2c0 /net/sched/cls_flower.c | |
parent | 7cc373db7ec5c221aa00a8ec3e9bb9e6792c755c (diff) | |
download | linux-4b61d3e8d3daebbde7ec02d593f84248fdf8bec2.tar.gz linux-4b61d3e8d3daebbde7ec02d593f84248fdf8bec2.tar.bz2 linux-4b61d3e8d3daebbde7ec02d593f84248fdf8bec2.zip |
net: qos offload add flow status with dropped count
This patch adds a drop frames counter to tc flower offloading.
Reporting h/w dropped frames is necessary for some actions.
Some actions like police action and the coming introduced stream gate
action would produce dropped frames which is necessary for user. Status
update shows how many filtered packets increasing and how many dropped
in those packets.
v2: Changes
- Update commit comments suggest by Jiri Pirko.
Signed-off-by: Po Liu <Po.Liu@nxp.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_flower.c')
-rw-r--r-- | net/sched/cls_flower.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c index b2da37286082..391971672d54 100644 --- a/net/sched/cls_flower.c +++ b/net/sched/cls_flower.c @@ -491,6 +491,7 @@ static void fl_hw_update_stats(struct tcf_proto *tp, struct cls_fl_filter *f, tcf_exts_stats_update(&f->exts, cls_flower.stats.bytes, cls_flower.stats.pkts, + cls_flower.stats.drops, cls_flower.stats.lastused, cls_flower.stats.used_hw_stats, cls_flower.stats.used_hw_stats_valid); |