aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/iscsi_if.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 14:48:40 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:00 -0400
commit8d07913dbe79568eafe5bb73806a08aac294d4e6 (patch)
tree125b845b1157dbe44640f83bfdfe36c187d061a9 /include/scsi/iscsi_if.h
parent2bab08fc770ccd6c56859371356a4a905e8c0bd4 (diff)
[SCSI] iscsi class: add iface representation
A iscsi host can have multiple interfaces. This patch adds a new iface iscsi class for this. It exports the network settings now, and will be extended to also export iscsi initiator port settings like the isid and initiator name for drivers that can support multiple initiator ports. Based on patch from Lalit Chandivade. 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.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h
index e93831e87878..a563753d578b 100644
--- a/include/scsi/iscsi_if.h
+++ b/include/scsi/iscsi_if.h
@@ -296,10 +296,27 @@ enum iscsi_net_param {
296 ISCSI_NET_PARAM_IPV6_ROUTER_AUTOCFG = 11, 296 ISCSI_NET_PARAM_IPV6_ROUTER_AUTOCFG = 11,
297 ISCSI_NET_PARAM_IFACE_ENABLE = 12, 297 ISCSI_NET_PARAM_IFACE_ENABLE = 12,
298 ISCSI_NET_PARAM_VLAN_ID = 13, 298 ISCSI_NET_PARAM_VLAN_ID = 13,
299 ISCSI_NET_IFACE_TYPE = 14, 299 ISCSI_NET_PARAM_IFACE_TYPE = 14,
300 ISCSI_NET_IFACE_NAME = 15, 300 ISCSI_NET_PARAM_IFACE_NAME = 15,
301}; 301};
302 302
303#define ISCSI_NET_IPV4_ADDR (1ULL << ISCSI_NET_PARAM_IPV4_ADDR)
304#define ISCSI_NET_IPV4_SUBNET (1ULL << ISCSI_NET_PARAM_IPV4_SUBNET)
305#define ISCSI_NET_IPV4_GW (1ULL << ISCSI_NET_PARAM_IPV4_GW)
306#define ISCSI_NET_IPV4_BOOTPROTO (1ULL << ISCSI_NET_PARAM_IPV4_BOOTPROTO)
307#define ISCSI_NET_MAC (1ULL << ISCSI_NET_PARAM_MAC)
308#define ISCSI_NET_IPV6_LINKLOCAL (1ULL << ISCSI_NET_PARAM_IPV6_LINKLOCAL)
309#define ISCSI_NET_IPV6_ADDR (1ULL << ISCSI_NET_PARAM_IPV6_ADDR)
310#define ISCSI_NET_IPV6_ROUTER (1ULL << ISCSI_NET_PARAM_IPV6_ROUTER)
311#define ISCSI_NET_IPV6_ADDR_AUTOCFG \
312 (1ULL << ISCSI_NET_PARAM_IPV6_ADDR_AUTOCFG)
313#define ISCSI_NET_IPV6_LINKLOCAL_AUTOCFG \
314 (1ULL << ISCSI_NET_PARAM_IPV6_LINKLOCAL_AUTOCFG)
315#define ISCSI_NET_IPV6_ROUTER_AUTOCFG \
316 (1ULL << ISCSI_NET_PARAM_IPV6_ROUTER_AUTOCFG)
317#define ISCSI_NET_IFACE_ENABLE (1ULL << ISCSI_NET_PARAM_IFACE_ENABLE)
318#define ISCSI_NET_VLAN_ID (1ULL << ISCSI_NET_PARAM_VLAN_ID)
319
303/* 320/*
304 * Common error codes 321 * Common error codes
305 */ 322 */