diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2019-01-09 17:10:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-19 09:53:18 -0800 |
commit | 5f2939d933e9616b8b779fa46963689000f1a8f4 (patch) | |
tree | b05a4b633a3ca42aeb5dfce073d5ec8e42a9e515 /include/net/sch_generic.h | |
parent | f04d402f2f00a0f0470b7e636b50170608b425c7 (diff) | |
download | linux-stable-5f2939d933e9616b8b779fa46963689000f1a8f4.tar.gz linux-stable-5f2939d933e9616b8b779fa46963689000f1a8f4.tar.bz2 linux-stable-5f2939d933e9616b8b779fa46963689000f1a8f4.zip |
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>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 9481f2c142e2..7a4957599874 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -580,8 +580,7 @@ struct Qdisc *dev_graft_qdisc(struct netdev_queue *dev_queue, void qdisc_reset(struct Qdisc *qdisc); void qdisc_put(struct Qdisc *qdisc); void qdisc_put_unlocked(struct Qdisc *qdisc); -void qdisc_tree_reduce_backlog(struct Qdisc *qdisc, unsigned int n, - unsigned int len); +void qdisc_tree_reduce_backlog(struct Qdisc *qdisc, int n, int len); #ifdef CONFIG_NET_SCHED int qdisc_offload_dump_helper(struct Qdisc *q, enum tc_setup_type type, void *type_data); |