OSDN Git Service

sch_api: Change signature of qdisc_tree_reduce_backlog() to use ints
authorToke Høiland-Jørgensen <toke@redhat.com>
Wed, 9 Jan 2019 16:10:57 +0000 (17:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jan 2019 17:53:18 +0000 (09:53 -0800)
commit5f2939d933e9616b8b779fa46963689000f1a8f4
treeb05a4b633a3ca42aeb5dfce073d5ec8e42a9e515
parentf04d402f2f00a0f0470b7e636b50170608b425c7
sch_api: Change signature of qdisc_tree_reduce_backlog() to use ints

There are now several places where qdisc_tree_reduce_backlog() is called
with a negative number of packets (to signal an increase in number of
packets in the queue). Rather than rely on overflow behaviour, change the
function signature to use signed integers to communicate this usage to
people reading the code.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_api.c