git: f500ecbeae7e - stable/13 - bxe(4): Use CTLFLAG_RDTUN flag definition

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 17 Apr 2023 06:19:04 UTC
The branch stable/13 has been updated by zlei:

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

commit f500ecbeae7ee62d1994155ff819cf8b59c5509e
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-04-12 04:20:38 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-04-17 06:17:49 +0000

    bxe(4): Use CTLFLAG_RDTUN flag definition
    
    sysctl variables rx_budget and max_aggregation_size are read-only loader
    tunable. Mark them with CTLFLAG_RD flag.
    
    No functional change intended.
    
    Reviewed by:    hselasky, erj
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D39466
    
    (cherry picked from commit 8bd9afe9e1821368f4bb0d39c8c6703bf5007fd1)
---
 sys/dev/bxe/bxe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c
index 3b5fb46ed599..31c8207d246b 100644
--- a/sys/dev/bxe/bxe.c
+++ b/sys/dev/bxe/bxe.c
@@ -285,12 +285,12 @@ SYSCTL_INT(_hw_bxe, OID_AUTO, hc_tx_ticks, CTLFLAG_RDTUN,
 
 /* Maximum number of Rx packets to process at a time */
 static int bxe_rx_budget = 0xffffffff;
-SYSCTL_INT(_hw_bxe, OID_AUTO, rx_budget, CTLFLAG_TUN,
+SYSCTL_INT(_hw_bxe, OID_AUTO, rx_budget, CTLFLAG_RDTUN,
            &bxe_rx_budget, 0, "Rx processing budget");
 
 /* Maximum LRO aggregation size */
 static int bxe_max_aggregation_size = 0;
-SYSCTL_INT(_hw_bxe, OID_AUTO, max_aggregation_size, CTLFLAG_TUN,
+SYSCTL_INT(_hw_bxe, OID_AUTO, max_aggregation_size, CTLFLAG_RDTUN,
            &bxe_max_aggregation_size, 0, "max aggregation size");
 
 /* PCI MRRS: -1 (Auto), 0 (128B), 1 (256B), 2 (512B), 3 (1KB) */