The branch main has been updated by jhb:

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

commit f28715fdc1f7e801b260369787e7bcd633a481bb
Author:     John Baldwin <[email protected]>
AuthorDate: 2021-08-17 18:14:29 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2021-08-17 18:14:29 +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
---
 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;
 }
 
 /*
_______________________________________________
[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