git: d39e65b5bdc0 - main - cxgbei: Add sysctls to report the maximum data segment lengths.

John Baldwin jhb at FreeBSD.org
Mon Aug 30 22:57:02 UTC 2021


The branch main has been updated by jhb:

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

commit d39e65b5bdc04cac4521ad8e071015cd751c2302
Author:     John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-08-30 22:55:40 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-08-30 22:55:40 +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
---
 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);
 }
 


More information about the dev-commits-src-all mailing list