]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 367578: Clear tp->tod in t4_pcb_detach().
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 12 Dec 2020 17:07:33 +0000 (17:07 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Sat, 12 Dec 2020 17:07:33 +0000 (17:07 +0000)
commit72e43e08ad40e3901234f9b4c946e91404025853
treed2246d4d40a88eaf82cd97d546d91b6391a046a9
parentba74b2ef4a4fedd0e4ac8fdda8a1bae324ecc6d2
MFC 367578: 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.
sys/dev/cxgbe/tom/t4_tom.c