Date: Fri, 11 Nov 2022 00:39:02 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: 93cec8fde7ab - stable/13 - cxgbe tom: Remove orphaned function max_imm_tls_space(). Message-ID: <202211110039.2AB0d2t5057271@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=93cec8fde7abc4b6cef2ec8dcb361ae5da7cc35d commit 93cec8fde7abc4b6cef2ec8dcb361ae5da7cc35d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-06-16 18:39:39 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-11-11 00:16:05 +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 (cherry picked from commit 6e26b4f8f4f6a9dd2a3ef88050108925f83dc460) --- 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 6e28442eaf88..bb8ed4c948c8 100644 --- a/sys/dev/cxgbe/tom/t4_tls.c +++ b/sys/dev/cxgbe/tom/t4_tls.c @@ -777,23 +777,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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211110039.2AB0d2t5057271>