aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-03-29 10:45:44 -0700
committerDavid S. Miller <davem@davemloft.net>2017-03-30 12:40:34 -0700
commit142c6594acbcc32391af9c15f8cd65c6c177698f (patch)
treec5f1c429b886d50480e7244d2275e18defa5de22 /net/ipv4/tcp_output.c
parented8bfd5c1ca6e2911c797da611fdada958ab44c0 (diff)
downloadlinux-142c6594acbcc32391af9c15f8cd65c6c177698f.tar.gz
linux-142c6594acbcc32391af9c15f8cd65c6c177698f.tar.bz2
linux-142c6594acbcc32391af9c15f8cd65c6c177698f.zip
bonding: refine bond_fold_stats() wrap detection
Some device drivers reset their stats at down/up events, possibly fooling bonding stats, since they operate with relative deltas. It is nearly not possible to fix drivers, since some of them compute the tx/rx counters based on per rx/tx queue stats, and the queues can be reconfigured (ethtool -L) between the down/up sequence. Lets avoid accumulating 'negative' values that render bonding stats useless. It is better to lose small deltas, assuming the bonding stats are fetched at a reasonable frequency. Fixes: 5f0c5f73e5ef ("bonding: make global bonding stats more reliable") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions