]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: modify stats helper functions to support regular stats
authorVlad Buslov <vladbu@mellanox.com>
Wed, 30 Oct 2019 14:09:04 +0000 (16:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 01:07:50 +0000 (18:07 -0700)
commit5bdc36b1e9ea59672e4b9e7b4a74c5d27901cc83
tree2d4d59cc6776d57a2253be73813889229709dd71
parent0e372b1f5ae9621d9849eadec175859bddb067a9
net: sched: modify stats helper functions to support regular stats

Modify stats update helper functions introduced in previous patches in this
series to fallback to regular tc_action->tcfa_{b|q}stats if cpu stats are
not allocated for the action argument. If regular non-percpu allocated
counters are in use, then obtain action tcfa_lock while modifying them.

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