]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 340304: Use tcp_state_change() in the cxgbe(4) TOE module.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 29 Dec 2018 00:30:17 +0000 (00:30 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 29 Dec 2018 00:30:17 +0000 (00:30 +0000)
commit09c65376fbb6df4ef52de859d7752974b45d42f9
tree5dca616eec105e91f6b9d6c9c7fba6805ddf8f4e
parent47b94cf5b0077b6910585b3bae004ee8f12821b6
MFC 340304: Use tcp_state_change() in the cxgbe(4) TOE module.

r254889 added tcp_state_change() as a centralized place to log state
changes in TCP connections for DTrace.  r294869 and r296881 took
advantage of this central location to manage per-state counters.
However, TOE sockets were still performing some (but not all) state
change updates via direct assignments to t_state.  This resulted in
state counters underflowing when TOE was in use.  Fix by using
tcp_state_change() when changing a TOE connection's state.

git-svn-id: svn://svn.freebsd.org/base/stable/10@342583 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/cxgbe/tom/t4_cpl_io.c