Page MenuHomeFreeBSD

D31575.diff
No OneTemporary

D31575.diff

diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c
--- a/sys/dev/cxgbe/cxgbei/cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.c
@@ -123,8 +123,13 @@
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;
}
/*

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 17, 10:46 AM (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15837857
Default Alt Text
D31575.diff (531 B)

Event Timeline