summaryrefslogtreecommitdiff
path: root/net/netfilter/nfnetlink_cttimeout.c
diff options
context:
space:
mode:
authorYuchung Cheng <ycheng@google.com>2017-04-05 00:15:40 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-06 04:41:27 +0300
commit2d2517ee314ef1de0517f74d06c2825fbf597ba3 (patch)
tree50f26c23c14c62b33bd884da0a6715f310b3c90c /net/netfilter/nfnetlink_cttimeout.c
parentecde8f36f8a05a023b9d026e9094571aab421d36 (diff)
downloadlinux-2d2517ee314ef1de0517f74d06c2825fbf597ba3.tar.xz
tcp: fix reordering SNMP under-counting
Currently the reordering SNMP counters only increase if a connection sees a higher degree then it has previously seen. It ignores if the reordering degree is not greater than the default system threshold. This significantly under-counts the number of reordering events and falsely convey that reordering is rare on the network. This patch properly and faithfully records the number of reordering events detected by the TCP stack, just like the comment says "this exciting event is worth to be remembered". Note that even so TCP still under-estimate the actual reordering events because TCP requires TS options or certain packet sequences to detect reordering (i.e. ACKing never-retransmitted sequence in recovery or disordered state). Signed-off-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nfnetlink_cttimeout.c')
0 files changed, 0 insertions, 0 deletions