]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit921ab4f9071f8ae1131dd24a4a1201ee02454e75
treece35b77f999e39851c209814a4d8ff05eefa1df2
parente8bff7b04fb070f432edd2f51880cd3c2d7e17bf
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