diff options
author | Florent Fourcot <florent.fourcot@wifirst.fr> | 2018-08-30 16:39:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-02 13:57:12 -0700 |
commit | b9de3963cc2b373a655636335cb8c4ed12fc9d3b (patch) | |
tree | dce21010f7b32f5a83b1a484839178ec362304e6 /net/ipv4/tcp_ipv4.c | |
parent | 2d5c2885983996ae5c32585b16bc600da7aa17bc (diff) | |
download | linux-b9de3963cc2b373a655636335cb8c4ed12fc9d3b.tar.gz linux-b9de3963cc2b373a655636335cb8c4ed12fc9d3b.tar.bz2 linux-b9de3963cc2b373a655636335cb8c4ed12fc9d3b.zip |
net/sched: fix type of htb statistics
tokens and ctokens are defined as s64 in htb_class structure,
and clamped to 32bits value during netlink dumps:
cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens),
INT_MIN, INT_MAX);
Defining it as u32 is working since userspace (tc) is printing it as
signed int, but a correct definition from the beginning is probably
better.
In the same time, 'giants' structure member is unused since years, so
update the comment to mark it unused.
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions