aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/iscsi_if.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 14:48:47 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:18 -0400
commit4223b9e919761ba1405a8505bda0b4efa17e8f0e (patch)
tree14a5229457c2b93d92ed58ff353207b38139113b /include/scsi/iscsi_if.h
parent3093b0484d77ea774d74dfd7f5419831a716a9aa (diff)
[SCSI] iscsi class: expand vlan support
Add support to set vlan priority and enable/disble a vlan. Patch based on code from Vikas Chaudhary. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/iscsi_if.h')
-rw-r--r--include/scsi/iscsi_if.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h
index 3753f7e36386..d3f256a232f8 100644
--- a/include/scsi/iscsi_if.h
+++ b/include/scsi/iscsi_if.h
@@ -281,6 +281,13 @@ struct iscsi_path {
281#define ISCSI_IFACE_TYPE_IPV4 0x01 281#define ISCSI_IFACE_TYPE_IPV4 0x01
282#define ISCSI_IFACE_TYPE_IPV6 0x02 282#define ISCSI_IFACE_TYPE_IPV6 0x02
283 283
284#define ISCSI_MAX_VLAN_ID 4095
285#define ISCSI_MAX_VLAN_PRIORITY 7
286
287/* iscsi vlan enable/disabled setting */
288#define ISCSI_VLAN_DISABLE 0x01
289#define ISCSI_VLAN_ENABLE 0x02
290
284/* iSCSI network params */ 291/* iSCSI network params */
285enum iscsi_net_param { 292enum iscsi_net_param {
286 ISCSI_NET_PARAM_IPV4_ADDR = 1, 293 ISCSI_NET_PARAM_IPV4_ADDR = 1,
@@ -296,8 +303,10 @@ enum iscsi_net_param {
296 ISCSI_NET_PARAM_IPV6_ROUTER_AUTOCFG = 11, 303 ISCSI_NET_PARAM_IPV6_ROUTER_AUTOCFG = 11,
297 ISCSI_NET_PARAM_IFACE_ENABLE = 12, 304 ISCSI_NET_PARAM_IFACE_ENABLE = 12,
298 ISCSI_NET_PARAM_VLAN_ID = 13, 305 ISCSI_NET_PARAM_VLAN_ID = 13,
299 ISCSI_NET_PARAM_IFACE_TYPE = 14, 306 ISCSI_NET_PARAM_VLAN_PRIORITY = 14,
300 ISCSI_NET_PARAM_IFACE_NAME = 15, 307 ISCSI_NET_PARAM_VLAN_ENABLED = 15,
308 ISCSI_NET_PARAM_IFACE_TYPE = 16,
309 ISCSI_NET_PARAM_IFACE_NAME = 17,
301}; 310};
302 311
303/* 312/*