git: da92c273d534 - stable/13 - cxgbei: Only round PDU data segment lengths down by 512 on T5.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Oct 2021 23:58:34 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=da92c273d534ab8991e43fee88d8ef68d0862295
commit da92c273d534ab8991e43fee88d8ef68d0862295
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-08-17 18:14:29 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-10-29 23:29:49 +0000
cxgbei: Only round PDU data segment lengths down by 512 on T5.
Reviewed by: np
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D31575
(cherry picked from commit f28715fdc1f7e801b260369787e7bcd633a481bb)
---
sys/dev/cxgbe/cxgbei/cxgbei.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c
index 24187c862fe6..acf6ee74c94f 100644
--- a/sys/dev/cxgbe/cxgbei/cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.c
@@ -123,8 +123,13 @@ read_pdu_limits(struct adapter *sc, uint32_t *max_tx_data_len,
tx_len -= ISCSI_BHS_SIZE + ISCSI_HEADER_DIGEST_SIZE +
ISCSI_DATA_DIGEST_SIZE;
- *max_tx_data_len = rounddown2(tx_len, 512);
- *max_rx_data_len = rounddown2(rx_len, 512);
+ if (chip_id(sc) == CHELSIO_T5) {
+ rx_len = rounddown2(rx_len, 512);
+ tx_len = rounddown2(tx_len, 512);
+ }
+
+ *max_tx_data_len = tx_len;
+ *max_rx_data_len = rx_len;
}
/*