Skip to content

Commit 0653d40

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Change VMID driver load time parameters to read only
VMID driver support is a load time configuration setting. Thus, change sysfs attributes to read only. Signed-off-by: Justin Tee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 1f86b0d commit 0653d40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/scsi/lpfc/lpfc_attr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5954,15 +5954,15 @@ LPFC_ATTR_R(enable_mi, 1, 0, 1, "Enable MI");
59545954
* 4 - 255 = vmid support enabled for 4-255 VMs
59555955
* Value range is [4,255].
59565956
*/
5957-
LPFC_ATTR_RW(max_vmid, LPFC_MIN_VMID, LPFC_MIN_VMID, LPFC_MAX_VMID,
5957+
LPFC_ATTR_R(max_vmid, LPFC_MIN_VMID, LPFC_MIN_VMID, LPFC_MAX_VMID,
59585958
"Maximum number of VMs supported");
59595959

59605960
/*
59615961
* lpfc_vmid_inactivity_timeout: Inactivity timeout duration in hours
59625962
* 0 = Timeout is disabled
59635963
* Value range is [0,24].
59645964
*/
5965-
LPFC_ATTR_RW(vmid_inactivity_timeout, 4, 0, 24,
5965+
LPFC_ATTR_R(vmid_inactivity_timeout, 4, 0, 24,
59665966
"Inactivity timeout in hours");
59675967

59685968
/*
@@ -5971,7 +5971,7 @@ LPFC_ATTR_RW(vmid_inactivity_timeout, 4, 0, 24,
59715971
* 1 = Support is enabled
59725972
* Value range is [0,1].
59735973
*/
5974-
LPFC_ATTR_RW(vmid_app_header, LPFC_VMID_APP_HEADER_DISABLE,
5974+
LPFC_ATTR_R(vmid_app_header, LPFC_VMID_APP_HEADER_DISABLE,
59755975
LPFC_VMID_APP_HEADER_DISABLE, LPFC_VMID_APP_HEADER_ENABLE,
59765976
"Enable App Header VMID support");
59775977

@@ -5982,7 +5982,7 @@ LPFC_ATTR_RW(vmid_app_header, LPFC_VMID_APP_HEADER_DISABLE,
59825982
* 2 = Allow all targets
59835983
* Value range is [0,2].
59845984
*/
5985-
LPFC_ATTR_RW(vmid_priority_tagging, LPFC_VMID_PRIO_TAG_DISABLE,
5985+
LPFC_ATTR_R(vmid_priority_tagging, LPFC_VMID_PRIO_TAG_DISABLE,
59865986
LPFC_VMID_PRIO_TAG_DISABLE,
59875987
LPFC_VMID_PRIO_TAG_ALL_TARGETS,
59885988
"Enable Priority Tagging VMID support");

0 commit comments

Comments
 (0)