]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r348491:
authornp <np@FreeBSD.org>
Wed, 5 Jun 2019 21:46:56 +0000 (21:46 +0000)
committernp <np@FreeBSD.org>
Wed, 5 Jun 2019 21:46:56 +0000 (21:46 +0000)
commitf9c933d62048242827ffec5dcfe492c8340e17b0
tree42387e03ef537e7b2ad745c45f4205227babb536
parentae7fc42015bb3a7150c64dc81d95f9521635c8b4
MFC r348491:

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.

Sponsored by: Chelsio Communications

Approved by: re@ (gjb@)
sys/dev/cxgbe/cxgbei/cxgbei.c
sys/dev/cxgbe/tom/t4_connect.c
sys/dev/cxgbe/tom/t4_cpl_io.c
sys/dev/cxgbe/tom/t4_ddp.c
sys/dev/cxgbe/tom/t4_listen.c
sys/dev/cxgbe/tom/t4_tls.c
sys/dev/cxgbe/tom/t4_tom.h