]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tcp: fix outsegs stat for TSO segments
authorTom Herbert <therbert@google.com>
Thu, 22 Apr 2010 07:00:24 +0000 (07:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Apr 2010 23:00:00 +0000 (16:00 -0700)
commitaa2ea0586d9dbe56a334d835a43b45e8c2104e77
tree1f218166bff8513858ac253e84264a4a8fe9ff0d
parent3cfa856d6d43894ebffdc28d2f0587595280893b
tcp: fix outsegs stat for TSO segments

Account for TSO segments of an skb in TCP_MIB_OUTSEGS counter.  Without
doing this, the counter can be off by orders of magnitude from the
actual number of segments sent.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/snmp.h
include/net/tcp.h
net/ipv4/tcp_output.c