Re: [PATCH net v2 1/1] net: tcp: Increase TCP_MIB_OUTRSTS even though fail to alloc skb

2017-04-08 Thread David Miller
From: gfree.w...@foxmail.com Date: Thu, 6 Apr 2017 23:05:49 +0800 > From: Gao Feng > > 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 >

[PATCH net v2 1/1] net: tcp: Increase TCP_MIB_OUTRSTS even though fail to alloc skb

2017-04-06 Thread gfree . wind
From: Gao Feng 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.