git: 8bd9afe9e182 - main - bxe(4): Use CTLFLAG_RDTUN flag definition

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Wed, 12 Apr 2023 04:21:25 UTC
The branch main has been updated by zlei:

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

commit 8bd9afe9e1821368f4bb0d39c8c6703bf5007fd1
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-04-12 04:20:38 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-04-12 04:20:38 +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
---
 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 aa417ae6b95b..3a25321138ec 100644
--- a/sys/dev/bxe/bxe.c
+++ b/sys/dev/bxe/bxe.c
@@ -279,12 +279,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) */