diff options
| author | Oz Shlomo <ozsh@nvidia.com> | 2023-02-12 15:25:14 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2023-02-14 11:00:01 +0100 |
| commit | ac7d27907d5445d0accaf998e1dc3ea570ed1ba6 (patch) | |
| tree | 36de2edbb7c19ab7247c492a192c2047a570b3d9 /net/sched/cls_matchall.c | |
| parent | net/sched: act_pedit, setup offload action for action stats query (diff) | |
| download | linux-ac7d27907d5445d0accaf998e1dc3ea570ed1ba6.tar.gz linux-ac7d27907d5445d0accaf998e1dc3ea570ed1ba6.zip | |
net/sched: pass flow_stats instead of multiple stats args
Instead of passing 6 stats related args, pass the flow_stats.
Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/sched/cls_matchall.c')
| -rw-r--r-- | net/sched/cls_matchall.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c index 705f63da2c21..b3883d3d4dbd 100644 --- a/net/sched/cls_matchall.c +++ b/net/sched/cls_matchall.c @@ -331,11 +331,7 @@ static void mall_stats_hw_filter(struct tcf_proto *tp, tc_setup_cb_call(block, TC_SETUP_CLSMATCHALL, &cls_mall, false, true); - tcf_exts_hw_stats_update(&head->exts, cls_mall.stats.bytes, - cls_mall.stats.pkts, cls_mall.stats.drops, - cls_mall.stats.lastused, - cls_mall.stats.used_hw_stats, - cls_mall.stats.used_hw_stats_valid); + tcf_exts_hw_stats_update(&head->exts, &cls_mall.stats); } static int mall_dump(struct net *net, struct tcf_proto *tp, void *fh, |
