net: minor optimization in qdisc_qstats_cpu_drop()
authorEric Dumazet <edumazet@google.com>
Wed, 24 Aug 2016 17:23:34 +0000 (10:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Aug 2016 23:45:29 +0000 (16:45 -0700)
commiteb60a8ddf3c38959cc73821bec5335bed85e0200
treece35b77f999e39851c209814a4d8ff05eefa1df2
parent72145a68e4ee116533df49af4b87aca0aacc179c
net: minor optimization in qdisc_qstats_cpu_drop()

per_cpu_inc() is faster (at least on x86) than per_cpu_ptr(xxx)++;

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h