aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 14:48:43 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:06 -0400
commit1d063c17298d7cd26cfe350f1e93e1727b4aa53f (patch)
treece7996d0b3fe0903287eac2649c79658b5c9c528 /drivers/scsi/cxgbi
parent3128c6c73cdf3df92c3165bfb785ae50114d18bf (diff)
[SCSI] iscsi class: sysfs group is_visible callout for session attrs
The iscsi class currently does not support writable sysfs attrs for LLD sysfs settings. This patch converts the iscsi class and driver's session attrs to use the attribute container sysfs group and the sysfs group's is_visible callout to be able to support readable or writable sysfs attrs. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/cxgbi')
-rw-r--r--drivers/scsi/cxgbi/cxgb3i/cxgb3i.c11
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c11
-rw-r--r--drivers/scsi/cxgbi/libcxgbi.c20
3 files changed, 20 insertions, 22 deletions
diff --git a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
index c13b3f0a4f03..50d4e3f05038 100644
--- a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
+++ b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
@@ -106,17 +106,6 @@ static struct iscsi_transport cxgb3i_iscsi_transport = {
106 .caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T | CAP_HDRDGST 106 .caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T | CAP_HDRDGST
107 | CAP_DATADGST | CAP_DIGEST_OFFLOAD | 107 | CAP_DATADGST | CAP_DIGEST_OFFLOAD |
108 CAP_PADDING_OFFLOAD | CAP_TEXT_NEGO, 108 CAP_PADDING_OFFLOAD | CAP_TEXT_NEGO,
109 .param_mask =
110 ISCSI_INITIAL_R2T_EN | ISCSI_MAX_R2T |
111 ISCSI_IMM_DATA_EN | ISCSI_FIRST_BURST |
112 ISCSI_MAX_BURST | ISCSI_PDU_INORDER_EN |
113 ISCSI_DATASEQ_INORDER_EN | ISCSI_ERL |
114 ISCSI_TARGET_NAME | ISCSI_TPGT |
115 ISCSI_USERNAME | ISCSI_PASSWORD |
116 ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN |
117 ISCSI_FAST_ABORT | ISCSI_ABORT_TMO |
118 ISCSI_LU_RESET_TMO | ISCSI_TGT_RESET_TMO |
119 ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME,
120 .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_IPADDRESS | 109 .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_IPADDRESS |
121 ISCSI_HOST_INITIATOR_NAME | 110 ISCSI_HOST_INITIATOR_NAME |
122 ISCSI_HOST_NETDEV_NAME, 111 ISCSI_HOST_NETDEV_NAME,
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index 89fca4b0787c..72f19ef7e016 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -107,17 +107,6 @@ static struct iscsi_transport cxgb4i_iscsi_transport = {
107 .caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T | CAP_HDRDGST | 107 .caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T | CAP_HDRDGST |
108 CAP_DATADGST | CAP_DIGEST_OFFLOAD | 108 CAP_DATADGST | CAP_DIGEST_OFFLOAD |
109 CAP_PADDING_OFFLOAD | CAP_TEXT_NEGO, 109 CAP_PADDING_OFFLOAD | CAP_TEXT_NEGO,
110 .param_mask =
111 ISCSI_INITIAL_R2T_EN | ISCSI_MAX_R2T |
112 ISCSI_IMM_DATA_EN | ISCSI_FIRST_BURST |
113 ISCSI_MAX_BURST | ISCSI_PDU_INORDER_EN |
114 ISCSI_DATASEQ_INORDER_EN | ISCSI_ERL |
115 ISCSI_TARGET_NAME | ISCSI_TPGT |
116 ISCSI_USERNAME | ISCSI_PASSWORD |
117 ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN |
118 ISCSI_FAST_ABORT | ISCSI_ABORT_TMO |
119 ISCSI_LU_RESET_TMO | ISCSI_TGT_RESET_TMO |
120 ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME,
121 .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_IPADDRESS | 110 .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_IPADDRESS |
122 ISCSI_HOST_INITIATOR_NAME | 111 ISCSI_HOST_INITIATOR_NAME |
123 ISCSI_HOST_NETDEV_NAME, 112 ISCSI_HOST_NETDEV_NAME,
diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.c
index e5f4f968ed7b..f9c2ca0d8083 100644
--- a/drivers/scsi/cxgbi/libcxgbi.c
+++ b/drivers/scsi/cxgbi/libcxgbi.c
@@ -2582,6 +2582,26 @@ mode_t cxgbi_attr_is_visible(int param_type, int param)
2582 case ISCSI_PARAM_PERSISTENT_PORT: 2582 case ISCSI_PARAM_PERSISTENT_PORT:
2583 case ISCSI_PARAM_PING_TMO: 2583 case ISCSI_PARAM_PING_TMO:
2584 case ISCSI_PARAM_RECV_TMO: 2584 case ISCSI_PARAM_RECV_TMO:
2585 case ISCSI_PARAM_INITIAL_R2T_EN:
2586 case ISCSI_PARAM_MAX_R2T:
2587 case ISCSI_PARAM_IMM_DATA_EN:
2588 case ISCSI_PARAM_FIRST_BURST:
2589 case ISCSI_PARAM_MAX_BURST:
2590 case ISCSI_PARAM_PDU_INORDER_EN:
2591 case ISCSI_PARAM_DATASEQ_INORDER_EN:
2592 case ISCSI_PARAM_ERL:
2593 case ISCSI_PARAM_TARGET_NAME:
2594 case ISCSI_PARAM_TPGT:
2595 case ISCSI_PARAM_USERNAME:
2596 case ISCSI_PARAM_PASSWORD:
2597 case ISCSI_PARAM_USERNAME_IN:
2598 case ISCSI_PARAM_PASSWORD_IN:
2599 case ISCSI_PARAM_FAST_ABORT:
2600 case ISCSI_PARAM_ABORT_TMO:
2601 case ISCSI_PARAM_LU_RESET_TMO:
2602 case ISCSI_PARAM_TGT_RESET_TMO:
2603 case ISCSI_PARAM_IFACE_NAME:
2604 case ISCSI_PARAM_INITIATOR_NAME:
2585 return S_IRUGO; 2605 return S_IRUGO;
2586 default: 2606 default:
2587 return 0; 2607 return 0;