git: ff802044d094 - stable/13 - cxgbe/cxgbei: Allow max PDU payload lengths to be changed with a sysctl.

From: Navdeep Parhar <np_at_FreeBSD.org>
Date: Thu, 02 Feb 2023 07:39:26 UTC
The branch stable/13 has been updated by np:

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

commit ff802044d094491dcc65b1e1df352a93b78ca39e
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2022-01-25 22:27:28 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2023-02-02 07:12:17 +0000

    cxgbe/cxgbei: Allow max PDU payload lengths to be changed with a sysctl.
    
    New connections will use the new values.  Existing connections are not
    affected.
    
    Obtained from:  jhb@
    Sponsored by:   Chelsio Communications
    
    (cherry picked from commit f8058d33337425549e42dcccdd0f55c837bb8775)
---
 sys/dev/cxgbe/cxgbei/cxgbei.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c
index 979feace81dd..ad66247775e1 100644
--- a/sys/dev/cxgbe/cxgbei/cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.c
@@ -197,10 +197,10 @@ cxgbei_init(struct adapter *sc, struct cxgbei_data *ci)
 	    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,
+	    CTLFLAG_RW, &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,
+	    CTLFLAG_RW, &ci->max_tx_data_len, 0,
 	    "Maximum transmit data segment length");
 
 	return (0);