mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-15 22:21:29 +00:00
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>
This commit is contained in:
parent
72145a68e4
commit
eb60a8ddf3
@ -592,7 +592,7 @@ static inline void qdisc_qstats_drop(struct Qdisc *sch)
|
||||
|
||||
static inline void qdisc_qstats_cpu_drop(struct Qdisc *sch)
|
||||
{
|
||||
qstats_drop_inc(this_cpu_ptr(sch->cpu_qstats));
|
||||
this_cpu_inc(sch->cpu_qstats->drops);
|
||||
}
|
||||
|
||||
static inline void qdisc_qstats_overlimit(struct Qdisc *sch)
|
||||
|
Loading…
x
Reference in New Issue
Block a user