]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: helpers to sum qlen and qlen for per cpu logic
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 7 Dec 2017 17:57:00 +0000 (09:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Dec 2017 18:32:26 +0000 (13:32 -0500)
commitb576d9e7fe76fa69e0727d56d0bbd32768a2f6d7
treec3ab895c92d9eef6e0c55d267f8712b956184de5
parent97a6a51b46baa228e6c4cbb9e0c2a2f684412162
net: sched: helpers to sum qlen and qlen for per cpu logic

Add qdisc qlen helper routines for lockless qdiscs to use.

The qdisc qlen is no longer used in the hotpath but it is reported
via stats query on the qdisc so it still needs to be tracked. This
adds the per cpu operations needed along with a helper to return
the summation of per cpu stats.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_api.c