sched: add helper for updating statistics on all actions
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 31 May 2017 15:06:43 +0000 (08:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 21:58:13 +0000 (17:58 -0400)
commitd897a638e98c476c56118d0dcc1bc55450504866
treee902b10f4f6f2f9335d3e1ec039f97b42f4ecde0
parentc380e377a50e944a2b9a892133b5a37b3ec90fe3
sched: add helper for updating statistics on all actions

Forgetting to disable preemption around tcf_action_stats_update()
seems to be a common mistake.  Add a helper function for updating
stats on all actions of a filter.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c
drivers/net/ethernet/netronome/nfp/nfp_net_offload.c
include/net/pkt_cls.h