HomeFreeBSD

cxgbei: Wait for socket to close in icl_cxgbei_conn_close.

Description

cxgbei: Wait for socket to close in icl_cxgbei_conn_close.

This ensures the TOE has finished processing any in-flight received
data before returning to the caller. The caller assumes it is safe to
free any open tasks or transfers (and associated buffers) after this
function returns.

Previously, data placed directly via DDP could be written to buffers
after the caller had freed the buffers.

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

(cherry picked from commit 67495c13d0bc25c57ebf0103e9d2af7c4a3088c9)

Details

Provenance
jhbAuthored on Jul 29 2021, 11:34 PM
Parents
rGa47b1c6f8fbe: cxgbei: Don't assert F for data completion PDUs.
Branches
Unknown
Tags
Unknown