HomeFreeBSD

cxgbe/t4_tom: adjust the hardware receive window to match changes to the

Description

cxgbe/t4_tom: adjust the hardware receive window to match changes to the
receive sockbuf's high water mark.

Calculate rx credits on the spot instead of tracking sbused/sb_cc and
rx_credits in the toepcb. The previous method worked when the high
water mark changed due to SB_AUTOSIZE but not when it was adjusted
directly (for example, by the soreserve in nfsrvd_addsock).

This fixes a connection hang while running iozone over an NFS mounted
share where nfsd's TCP sockets are being handled by t4_tom.

MFC after: 3 days
Sponsored by: Chelsio Communications

Details

Committed
npJun 1 2019, 3:03 AM
Parents
rS348490: powerpc/moea: Fix moea64 native VA invalidation
Branches
Unknown
Tags
Unknown