]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9df9b71620d45568606dbe4a21cdd4e729c8d77
treeb05a4b633a3ca42aeb5dfce073d5ec8e42a9e515
parent16dce325fd786cba42ddbbbe1c5893cff95d15b9
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