Navdeep Parhar ebb8639822 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
2019-06-01 03:03:48 +00:00
..
2019-05-22 15:39:35 +00:00
2019-05-29 20:34:35 +00:00
2019-06-01 01:22:21 +00:00
2019-05-27 00:47:51 +00:00
2019-05-02 12:56:13 +00:00
2019-05-31 03:13:09 +00:00
2019-05-08 19:27:30 +00:00
2019-02-21 01:30:37 +00:00
2019-05-12 06:32:46 +00:00
2019-05-30 13:52:32 +00:00
2019-05-17 15:24:34 +00:00
2019-02-04 21:28:25 +00:00