Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2023 15:44:35 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 969dc06e919c - stable/14 - cxgbe t4_tls: Call t4_rcvd_locked from do_rx_tls_cmp
Message-ID:  <202310111544.39BFiZMl024354@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=969dc06e919ca135fdbf5c9a760684c357ae9310

commit 969dc06e919ca135fdbf5c9a760684c357ae9310
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-09-08 23:31:38 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-10-11 15:10:32 +0000

    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)
---
 sys/dev/cxgbe/tom/t4_tls.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/sys/dev/cxgbe/tom/t4_tls.c b/sys/dev/cxgbe/tom/t4_tls.c
index 29a840067c62..3a0c1a392e6c 100644
--- a/sys/dev/cxgbe/tom/t4_tls.c
+++ b/sys/dev/cxgbe/tom/t4_tls.c
@@ -794,7 +794,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, trailer_len;
+	int pdu_length, trailer_len;
 #if defined(KTR) || defined(INVARIANTS)
 	int len;
 #endif
@@ -975,16 +975,7 @@ do_rx_tls_cmp(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
 		sbappendcontrol_locked(sb, m, control, 0);
 	else
 		sbappendstream_locked(sb, m, 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310111544.39BFiZMl024354>