]> git.baikalelectronics.ru Git - kernel.git/commit
net: tcp: Increase TCP_MIB_OUTRSTS even though fail to alloc skb
authorGao Feng <fgao@ikuai8.com>
Thu, 6 Apr 2017 15:05:49 +0000 (23:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Apr 2017 15:30:09 +0000 (08:30 -0700)
commit52c9b41f3297a4dd021038682a647e0bc739ff48
tree13d35a2222f52437bd26b51281933614b31526eb
parent614a18dfca0ac20936cee30b751c1d988670182d
net: tcp: Increase TCP_MIB_OUTRSTS even though fail to alloc skb

Because TCP_MIB_OUTRSTS is an important count, so always increase it
whatever send it successfully or not.

Now move the increment of TCP_MIB_OUTRSTS to the top of
tcp_send_active_reset to make sure it is increased always even though
fail to alloc skb.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c