net: sched: extract common action counters update code into function
authorVlad Buslov <vladbu@mellanox.com>
Wed, 30 Oct 2019 14:09:00 +0000 (16:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 01:07:50 +0000 (18:07 -0700)
commitc8ecebd04cbb6badb46d42fe54282e7883ed63cc
treed94e6aac16139ec99b7517777980175edead7cc4
parent21d8bd123ac4f2223728901f0f26c90d1cbd42e3
net: sched: extract common action counters update code into function

Currently, all implementations of tc_action_ops->stats_update() callback
have almost exactly the same implementation of counters update
code (besides gact which also updates drop counter). In order to simplify
support for using both percpu-allocated and regular action counters
depending on run-time flag in following patches, extract action counters
update code into standalone function in act API.

This commit doesn't change functionality.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
net/sched/act_api.c
net/sched/act_ct.c
net/sched/act_gact.c
net/sched/act_mirred.c
net/sched/act_police.c
net/sched/act_vlan.c