]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clear tp->tod in t4_pcb_detach().
authorjhb <jhb@FreeBSD.org>
Tue, 10 Nov 2020 19:54:39 +0000 (19:54 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 10 Nov 2020 19:54:39 +0000 (19:54 +0000)
commit0563fa88641855ec0ba6d1a826982956653c16a5
tree343d03abaf58dc46b74fbcf1d4818335b816ae0b
parent142137080c57d96bbc715c7d3f062b6650685eb2
Clear tp->tod in t4_pcb_detach().

Otherwise, a socket can have a non-NULL tp->tod while TF_TOE is clear.
In particular, if a newly accepted socket falls back to non-TOE due to
an active open failure, the non-TOE socket will still have tp->tod set
even though TF_TOE is clear.

Reviewed by: np
MFC after: 2 weeks
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D27028
sys/dev/cxgbe/tom/t4_tom.c