Page MenuHomeFreeBSD

cxgbe tom: Call t4_rcvd_locked from do_rx_data to return RX credits
ClosedPublic

Authored by jhb on Sep 1 2023, 9:21 PM.
Tags
None
Referenced Files
F131694518: D41688.id126804.diff
Fri, Oct 10, 10:05 AM
Unknown Object (File)
Wed, Oct 8, 8:17 AM
Unknown Object (File)
Fri, Oct 3, 5:24 AM
Unknown Object (File)
Thu, Sep 11, 3:18 AM
Unknown Object (File)
Sep 9 2025, 5:34 PM
Unknown Object (File)
Sep 4 2025, 12:23 AM
Unknown Object (File)
Sep 2 2025, 6:31 AM
Unknown Object (File)
Aug 17 2025, 10:33 PM
Subscribers

Details

Summary

In particular, the kernel RPC layer used by the NFS client never
invokes pru_rcvd since it always reads data from the socket upcall
via MSG_SOCALLBCK which avoids calling pru_rcvd. As a result, on an
NFS client connection managed by t4_tom, RX credits were never
returned to the TOE connection to open the TCP window resulting in
connection hangs.

To fix, expand the set of conditions in do_rx_data where RX credits
are returned to match those in t4_rcvd_locked by calling the function
directly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable