git: 77af8c6db25f - main - ciss: Expose tunable hw.ciss.force_transport as sysctl

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

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

commit 77af8c6db25ff6154268eb17f54f082a7eb61ea0
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:23:54 +0000

    ciss: Expose tunable hw.ciss.force_transport as sysctl
    
    Expose the hw.ciss.force_transport 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 67d74ba65526..61f8611e62ec 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -283,6 +283,9 @@ SYSCTL_INT(_hw_ciss, OID_AUTO, nop_message_heartbeat, CTLFLAG_RWTUN,
  */
 static int ciss_force_transport = 0;
 TUNABLE_INT("hw.ciss.force_transport", &ciss_force_transport);
+SYSCTL_INT(_hw_ciss, OID_AUTO, force_transport, CTLFLAG_RDTUN,
+	   &ciss_force_transport, 0,
+	   "use default (0), force simple (1) or force performant (2) transport");
 
 /*
  * This tunable can force a particular interrupt delivery method to be used: