aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-09-08 23:31:38 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-10-11 15:09:52 +0000
commit91086ed84b68d6ce44458f9ea8a4a4a3f8347584 (patch)
tree1e0285d7aef00167a96045fd5da666c6158d5ee1
parentdcb7939898635424daf4c65179bbac75fcb0b09b (diff)
downloadsrc-91086ed84b68d6ce44458f9ea8a4a4a3f8347584.tar.gz
src-91086ed84b68d6ce44458f9ea8a4a4a3f8347584.zip
cxgbe t4_tls: Call t4_rcvd_locked from do_rx_tls_cmp
Similar to dcfddc8dc091e7688abc8488a0307eba425fa7a2, replace the simpler, inlined version with the full version. Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D41690 (cherry picked from commit 897e564361624411c4e557e0817642e1477f0af4)
-rw-r--r--sys/dev/cxgbe/tom/t4_tls.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/cxgbe/tom/t4_tls.c b/sys/dev/cxgbe/tom/t4_tls.c
index dcdbccb4fe7e..404c6c04eb5c 100644
--- a/sys/dev/cxgbe/tom/t4_tls.c
+++ b/sys/dev/cxgbe/tom/t4_tls.c
@@ -941,7 +941,7 @@ do_rx_tls_cmp(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
struct mbuf *tls_data;
struct tls_get_record *tgr;
struct mbuf *control;
- int pdu_length, rx_credits;
+ int pdu_length;
#if defined(KTR) || defined(INVARIANTS)
int len;
#endif
@@ -1096,16 +1096,7 @@ do_rx_tls_cmp(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
}
sbappendcontrol_locked(sb, m, control, 0);
- rx_credits = sbspace(sb) > tp->rcv_wnd ? sbspace(sb) - tp->rcv_wnd : 0;
-#ifdef VERBOSE_TRACES
- CTR4(KTR_CXGBE, "%s: tid %u rx_credits %u rcv_wnd %u",
- __func__, tid, rx_credits, tp->rcv_wnd);
-#endif
- if (rx_credits > 0 && sbused(sb) + tp->rcv_wnd < sb->sb_lowat) {
- rx_credits = send_rx_credits(sc, toep, rx_credits);
- tp->rcv_wnd += rx_credits;
- tp->rcv_adv += rx_credits;
- }
+ t4_rcvd_locked(&toep->td->tod, tp);
sorwakeup_locked(so);
SOCKBUF_UNLOCK_ASSERT(sb);