git: 7c74337e2c3d - main - ciss: Expose tunable hw.ciss.force_interrupt as sysctl

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 14 Oct 2024 05:40:59 UTC
The branch main has been updated by imp:

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

commit 7c74337e2c3d2269d1559f4e5541c0a3f402d814
Author:     Peter Eriksson <pen@lysator.liu.se>
AuthorDate: 2024-10-14 04:01:33 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-10-14 05:24:06 +0000

    ciss: Expose tunable hw.ciss.force_interrupt as sysctl
    
    Expose the hw.ciss.force_interrupt tuneable as a sysctl and make it
    writeable at runtime.
    
    PR: 246279
    Reviewed by: imp
    Tested by: Marek Zarychta
    Differential Revision: https://reviews.freebsd.org/D25155
---
 sys/dev/ciss/ciss.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 61f8611e62ec..bb33ad17306f 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -295,6 +295,9 @@ SYSCTL_INT(_hw_ciss, OID_AUTO, force_transport, CTLFLAG_RDTUN,
  */
 static int ciss_force_interrupt = 0;
 TUNABLE_INT("hw.ciss.force_interrupt", &ciss_force_interrupt);
+SYSCTL_INT(_hw_ciss, OID_AUTO, force_interrupt, CTLFLAG_RDTUN,
+	   &ciss_force_interrupt, 0,
+	   "use default (0), force INTx (1) or force MSIx(2) interrupts");
 
 /************************************************************************
  * CISS adapters amazingly don't have a defined programming interface