git: a75428c375f0 - stable/13 - cxgbei: Add sysctls to report the maximum data segment lengths.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Oct 2021 23:58:39 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a75428c375f0350a8a28ccfd30493cdb86c3b161 commit a75428c375f0350a8a28ccfd30493cdb86c3b161 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-08-30 22:55:40 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2021-10-29 23:33:14 +0000 cxgbei: Add sysctls to report the maximum data segment lengths. These sysctls report the maximum data segment lengths supported by an adapter. These are the values advertised to the remote end during the login phase. Sponsored by: Chelsio Communications (cherry picked from commit d39e65b5bdc04cac4521ad8e071015cd751c2302) --- sys/dev/cxgbe/cxgbei/cxgbei.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c index e6ed2671711a..2fa38f941b91 100644 --- a/sys/dev/cxgbe/cxgbei/cxgbei.c +++ b/sys/dev/cxgbe/cxgbei/cxgbei.c @@ -198,6 +198,13 @@ cxgbei_init(struct adapter *sc, struct cxgbei_data *ci) SYSCTL_ADD_UINT(&ci->ctx, children, OID_AUTO, "ddp_threshold", CTLFLAG_RW, &ci->ddp_threshold, 0, "Rx zero copy threshold"); + SYSCTL_ADD_UINT(&ci->ctx, children, OID_AUTO, "max_rx_data_len", + CTLFLAG_RD, &ci->max_rx_data_len, 0, + "Maximum receive data segment length"); + SYSCTL_ADD_UINT(&ci->ctx, children, OID_AUTO, "max_tx_data_len", + CTLFLAG_RD, &ci->max_tx_data_len, 0, + "Maximum transmit data segment length"); + return (0); }