git: 6e26b4f8f4f6 - main - cxgbe tom: Remove orphaned function max_imm_tls_space().

John Baldwin jhb at FreeBSD.org
Wed Jun 16 18:40:05 UTC 2021


The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=6e26b4f8f4f6a9dd2a3ef88050108925f83dc460

commit 6e26b4f8f4f6a9dd2a3ef88050108925f83dc460
Author:     John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-06-16 18:39:39 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-06-16 18:39:39 +0000

    cxgbe tom: Remove orphaned function max_imm_tls_space().
    
    Reported by:    markj
    Fixes:          789f2d4b3f33 cxgbe tom: Remove support for non-KTLS TLS offload.
    Sponsored by:   Chelsio Communications
---
 sys/dev/cxgbe/tom/t4_tls.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/sys/dev/cxgbe/tom/t4_tls.c b/sys/dev/cxgbe/tom/t4_tls.c
index 95fe96b9024a..e7debf75a0e3 100644
--- a/sys/dev/cxgbe/tom/t4_tls.c
+++ b/sys/dev/cxgbe/tom/t4_tls.c
@@ -507,23 +507,6 @@ tls_uninit_toep(struct toepcb *toep)
 	    sizeof(struct ulptx_sc_memrd) +				\
 	    AES_BLOCK_LEN + 1, 16))
 
-static inline u_int
-max_imm_tls_space(int tx_credits)
-{
-	const int n = 2;	/* Use only up to 2 desc for imm. data WR */
-	int space;
-
-	KASSERT(tx_credits >= 0 &&
-		tx_credits <= MAX_OFLD_TX_CREDITS,
-		("%s: %d credits", __func__, tx_credits));
-
-	if (tx_credits >= (n * EQ_ESIZE) / 16)
-		space = (n * EQ_ESIZE);
-	else
-		space = tx_credits * 16;
-	return (space);
-}
-
 static void
 write_tlstx_wr(struct fw_tlstx_data_wr *txwr, struct toepcb *toep,
     unsigned int immdlen, unsigned int plen, unsigned int expn,


More information about the dev-commits-src-all mailing list