diff options
author | Eric Dumazet <edumazet@google.com> | 2019-11-06 20:52:40 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-06 21:51:36 -0800 |
commit | 1c8dd9cb4697a425ecb9e9fb8a6c05955642e141 (patch) | |
tree | 828c0bd99a0adb1c6b584d7fcda6d5a05405729f /drivers/net/ethernet/chelsio/cxgb4/sge.c | |
parent | 2d791e3bf218a8880e306eb2fa79dcf1429d01b3 (diff) | |
download | linux-1c8dd9cb4697a425ecb9e9fb8a6c05955642e141.tar.bz2 |
net_sched: gen_estimator: extend packet counter to 64bit
I forgot to change last_packets field in struct net_rate_estimator.
Without this fix, rate estimators would misbehave after more
than 2^32 packets have been sent.
Another solution would be to be careful and only use the
32 least significant bits of packets counters, but we have
a hole in net_rate_estimator structure and this looks
easier to read/maintain.
Fixes: d0083d98f685 ("net_sched: extend packet counter to 64bit")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/sge.c')
0 files changed, 0 insertions, 0 deletions