]> git.baikalelectronics.ru Git - 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)
commit6ba60c965f6751cd840ba7c589754acc11d84615
tree1f218166bff8513858ac253e84264a4a8fe9ff0d
parentf50151787b1301f616662dfbf0de0b824b2f2d04
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