Hi Neal > -----Original Message----- > > On Thu, Apr 6, 2017 at 10:05 AM, Gao Feng <gfree.w...@foxmail.com> wrote: > > If so, we should increase the TCP_MIB_OUTRSTS too when fail to alloc skb. > > When machine is overloaded and mem is exhausted, it may fail to alloc skb. > > Moving the increment of TCP_MIB_OUTRSTS to the top of > tcp_send_active_reset() sounds fine to me. > > neal I sent the v2 patch, and didn't change the tcp_v4_send_reset and tcp_v6_send_response. Because I think they are only used during connecting. The rst count is not as important as tcp_send_active_reset.
Regards Feng .