The branch main has been updated by jhb:

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

commit 6e26b4f8f4f6a9dd2a3ef88050108925f83dc460
Author:     John Baldwin <[email protected]>
AuthorDate: 2021-06-16 18:39:39 +0000
Commit:     John Baldwin <[email protected]>
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,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "[email protected]"

Reply via email to