summaryrefslogtreecommitdiff
path: root/net/sched/act_gact.c
diff options
context:
space:
mode:
authorAmir Vadai <amirva@mellanox.com>2016-05-13 15:55:35 +0300
committerDavid S. Miller <davem@davemloft.net>2016-05-16 20:43:50 +0300
commit3804070235264ea883c3fdccd9ed16fef20b5ccb (patch)
treeb4f8a120e4159fcd3061b3b92a41b402a0bd8375 /net/sched/act_gact.c
parent388665a9be5fd16abd3d9762b1995208355e6f6d (diff)
downloadlinux-3804070235264ea883c3fdccd9ed16fef20b5ccb.tar.xz
net/sched: Enable netdev drivers to update statistics of offloaded actions
Introduce stats_update callback. netdev driver could call it for offloaded actions to update the basic statistics (packets, bytes and last use). Since bstats_update() and bstats_cpu_update() use skb as an argument to get the counters, _bstats_update() and _bstats_cpu_update(), that get bytes and packets as arguments, were added. Signed-off-by: Amir Vadai <amirva@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_gact.c')
0 files changed, 0 insertions, 0 deletions