git: 64f09f234665 - main - cxgbei: Limit T5 transmit data segments to 15k.
John Baldwin
jhb at FreeBSD.org
Mon Aug 30 22:32:04 UTC 2021
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=64f09f2346650f02b6deccbe05bb02b88fce4a5e
commit 64f09f2346650f02b6deccbe05bb02b88fce4a5e
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-08-30 22:27:08 +0000
Commit: John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-08-30 22:27:08 +0000
cxgbei: Limit T5 transmit data segments to 15k.
This avoids exceeding a limit in the firmware when using ISO with
jumbo frames.
Reported by: Jithesh Arakkan @ Chelsio
Sponsored by: Chelsio Communications
---
sys/dev/cxgbe/cxgbei/cxgbei.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c
index 6af7043460fb..e6ed2671711a 100644
--- a/sys/dev/cxgbe/cxgbei/cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.c
@@ -132,6 +132,8 @@ read_pdu_limits(struct adapter *sc, uint32_t *max_tx_data_len,
rx_len = min(rx_len, 4 * (1U << pr->pr_page_shift[0]));
if (chip_id(sc) == CHELSIO_T5) {
+ tx_len = min(tx_len, 15360);
+
rx_len = rounddown2(rx_len, 512);
tx_len = rounddown2(tx_len, 512);
}
More information about the dev-commits-src-all
mailing list