Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 2021 01:03:16 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 951183ac836e - stable/13 - fxp: Mark sysctls with CTLFLAG_MPSAFE.
Message-ID:  <202112240103.1BO13GeJ017619@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mav:

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

commit 951183ac836ee6f64880f20d6063c045a634701c
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-10 02:16:16 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-24 01:03:09 +0000

    fxp: Mark sysctls with CTLFLAG_MPSAFE.
    
    MFC after:      2 weeks
    
    (cherry picked from commit 35efbedc98539fa655c3fb8df146fb6f7784df57)
---
 sys/dev/fxp/if_fxp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 800a6ffdedb1..4ac94229aff0 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -3151,11 +3151,11 @@ fxp_sysctl_node(struct fxp_softc *sc)
 	child = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev));
 
 	SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_delay",
-	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT,
+	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
 	    &sc->tunable_int_delay, 0, sysctl_hw_fxp_int_delay, "I",
 	    "FXP driver receive interrupt microcode bundling delay");
 	SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "bundle_max",
-	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT,
+	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
 	    &sc->tunable_bundle_max, 0, sysctl_hw_fxp_bundle_max, "I",
 	    "FXP driver receive interrupt microcode bundle size limit");
 	SYSCTL_ADD_INT(ctx, child,OID_AUTO, "rnr", CTLFLAG_RD, &sc->rnr, 0,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112240103.1BO13GeJ017619>