opnsense-src/sys/dev/cxgbe/tom
John Baldwin 37c5daa855 cxgbei: Wait for the final CPL to be received in icl_cxgbei_conn_close.
A socket in the FIN_WAIT_1 state is marked disconnected by
do_close_con_rpl() even though there might still receive data pending.
This is because the socket at that point has set SBS_CANTRCVMORE which
causes the protocol layer to discard any data received before the FIN.
However, icl_cxgbei_conn_close needs to wait until all the data has
been discarded.  Replace the wait for SS_ISDISCONNECTED with instead
waiting for final_cpl_received() to be called.

Reported by:	Jithesh Arakkan @ Chelsio
Sponsored by:	Chelsio Communications

(cherry picked from commit 2eb0e53a6b)
2021-10-29 16:27:31 -07:00
..
t4_connect.c cxgbe(4): Overhaul CLIP (Compressed Local IPv6) table management. 2021-10-20 10:05:02 -07:00
t4_cpl_io.c cxgbei: Support for ISO (iSCSI segmentation offload). 2021-10-29 16:27:10 -07:00
t4_ddp.c cxgbe tom: Permit rcv_nxt mismatches on FIN for iSCSI connections on T6. 2021-10-29 16:17:31 -07:00
t4_listen.c cxgbe(4): Overhaul CLIP (Compressed Local IPv6) table management. 2021-10-20 10:05:02 -07:00
t4_tls.c cxgbe: Make the TOE TLS stats per-queue instead of per-port. 2021-04-26 12:02:12 -07:00
t4_tls.h Re-enable receive flow control for TOE TLS sockets. 2020-10-19 20:08:50 +00:00
t4_tom.c cxgbei: Wait for the final CPL to be received in icl_cxgbei_conn_close. 2021-10-29 16:27:31 -07:00
t4_tom.h cxgbei: Wait for the final CPL to be received in icl_cxgbei_conn_close. 2021-10-29 16:27:31 -07:00
t4_tom_l2t.c cxgbe/t4_tom: Use stale L2T entry and avoid busy-waiting for resolution. 2021-10-20 10:50:42 -07:00
t4_tom_l2t.h