diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2021-06-16 18:39:39 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2021-06-16 18:39:39 +0000 |
| commit | 6e26b4f8f4f6a9dd2a3ef88050108925f83dc460 (patch) | |
| tree | 388b8c67c42fe0e4dc22cae5b640da7318e4f5ac | |
| parent | f336b45e943c7f9a90ffcea1a6c4c7039e54c73c (diff) | |
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
| -rw-r--r-- | sys/dev/cxgbe/tom/t4_tls.c | 17 |
1 files changed, 0 insertions, 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, |
