]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 340304: Use tcp_state_change() in the cxgbe(4) TOE module.
authorjhb <jhb@FreeBSD.org>
Sat, 29 Dec 2018 00:30:17 +0000 (00:30 +0000)
committerjhb <jhb@FreeBSD.org>
Sat, 29 Dec 2018 00:30:17 +0000 (00:30 +0000)
commitd0f6aaaa8d18a00eabd2b1a44153903e469f4f30
treee855433a4763215b93acc596ec9e274730c8f219
parentf9fddd567a0171c0179d55d6351cfae4f517a1c1
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.
sys/dev/cxgbe/tom/t4_cpl_io.c