Blame SOURCES/0044-iscsi_if.h-Additional-parameters-for-network-param-s.patch

786c6d
From d1e07af2ed3aa480107213378a54bfc9a6a36c0a Mon Sep 17 00:00:00 2001
786c6d
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
786c6d
Date: Fri, 18 Oct 2013 09:29:19 -0400
786c6d
Subject: [PATCH] iscsi_if.h: Additional parameters for network param settings
786c6d
786c6d
Added support to display and update additional network parameters
786c6d
through iscsiadm
786c6d
786c6d
Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com>
786c6d
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
786c6d
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
786c6d
---
786c6d
 include/iscsi_if.h | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
786c6d
 1 file changed, 79 insertions(+)
786c6d
786c6d
diff --git a/include/iscsi_if.h b/include/iscsi_if.h
786c6d
index e837dd0..e59bcd0 100644
786c6d
--- a/include/iscsi_if.h
786c6d
+++ b/include/iscsi_if.h
786c6d
@@ -320,6 +320,7 @@ enum iscsi_param_type {
786c6d
 	ISCSI_NET_PARAM,	/* iscsi_net_param */
786c6d
 	ISCSI_FLASHNODE_PARAM,	/* iscsi_flashnode_param */
786c6d
 	ISCSI_CHAP_PARAM,	/* iscsi_chap_param */
786c6d
+	ISCSI_IFACE_PARAM,	/* iscsi_iface_param */
786c6d
 };
786c6d
 
786c6d
 /* structure for minimalist usecase */
786c6d
@@ -392,6 +393,10 @@ struct iscsi_path {
786c6d
 #define ISCSI_VLAN_DISABLE	0x01
786c6d
 #define ISCSI_VLAN_ENABLE	0x02
786c6d
 
786c6d
+/* iscsi generic enable/disabled setting for various features */
786c6d
+#define ISCSI_NET_PARAM_DISABLE		0x01
786c6d
+#define ISCSI_NET_PARAM_ENABLE		0x02
786c6d
+
786c6d
 /* iSCSI network params */
786c6d
 enum iscsi_net_param {
786c6d
 	ISCSI_NET_PARAM_IPV4_ADDR		= 1,
786c6d
@@ -414,6 +419,80 @@ enum iscsi_net_param {
786c6d
 	ISCSI_NET_PARAM_IFACE_NAME,
786c6d
 	ISCSI_NET_PARAM_MTU,
786c6d
 	ISCSI_NET_PARAM_PORT,
786c6d
+	ISCSI_NET_PARAM_IPADDR_STATE,
786c6d
+	ISCSI_NET_PARAM_IPV6_LINKLOCAL_STATE,
786c6d
+	ISCSI_NET_PARAM_IPV6_ROUTER_STATE,
786c6d
+	ISCSI_NET_PARAM_DELAYED_ACK_EN,
786c6d
+	ISCSI_NET_PARAM_TCP_NAGLE_DISABLE,
786c6d
+	ISCSI_NET_PARAM_TCP_WSF_DISABLE,
786c6d
+	ISCSI_NET_PARAM_TCP_WSF,
786c6d
+	ISCSI_NET_PARAM_TCP_TIMER_SCALE,
786c6d
+	ISCSI_NET_PARAM_TCP_TIMESTAMP_EN,
786c6d
+	ISCSI_NET_PARAM_CACHE_ID,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_DNS_ADDR_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_SLP_DA_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_TOS_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_TOS,
786c6d
+	ISCSI_NET_PARAM_IPV4_GRAT_ARP_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_ALT_CLIENT_ID_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_ALT_CLIENT_ID,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_REQ_VENDOR_ID_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_USE_VENDOR_ID_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_VENDOR_ID,
786c6d
+	ISCSI_NET_PARAM_IPV4_DHCP_LEARN_IQN_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_FRAGMENT_DISABLE,
786c6d
+	ISCSI_NET_PARAM_IPV4_IN_FORWARD_EN,
786c6d
+	ISCSI_NET_PARAM_IPV4_TTL,
786c6d
+	ISCSI_NET_PARAM_IPV6_GRAT_NEIGHBOR_ADV_EN,
786c6d
+	ISCSI_NET_PARAM_IPV6_MLD_EN,
786c6d
+	ISCSI_NET_PARAM_IPV6_FLOW_LABEL,
786c6d
+	ISCSI_NET_PARAM_IPV6_TRAFFIC_CLASS,
786c6d
+	ISCSI_NET_PARAM_IPV6_HOP_LIMIT,
786c6d
+	ISCSI_NET_PARAM_IPV6_ND_REACHABLE_TMO,
786c6d
+	ISCSI_NET_PARAM_IPV6_ND_REXMIT_TIME,
786c6d
+	ISCSI_NET_PARAM_IPV6_ND_STALE_TMO,
786c6d
+	ISCSI_NET_PARAM_IPV6_DUP_ADDR_DETECT_CNT,
786c6d
+	ISCSI_NET_PARAM_IPV6_RTR_ADV_LINK_MTU,
786c6d
+	ISCSI_NET_PARAM_REDIRECT_EN,
786c6d
+};
786c6d
+
786c6d
+enum iscsi_ipaddress_state {
786c6d
+	ISCSI_IPDDRESS_STATE_UNCONFIGURED,
786c6d
+	ISCSI_IPDDRESS_STATE_ACQUIRING,
786c6d
+	ISCSI_IPDDRESS_STATE_TENTATIVE,
786c6d
+	ISCSI_IPDDRESS_STATE_VALID,
786c6d
+	ISCSI_IPDDRESS_STATE_DISABLING,
786c6d
+	ISCSI_IPDDRESS_STATE_INVALID,
786c6d
+	ISCSI_IPDDRESS_STATE_DEPRECATED,
786c6d
+};
786c6d
+
786c6d
+enum iscsi_router_state {
786c6d
+	ISCSI_ROUTER_STATE_UNKNOWN,
786c6d
+	ISCSI_ROUTER_STATE_ADVERTISED,
786c6d
+	ISCSI_ROUTER_STATE_MANUAL,
786c6d
+	ISCSI_ROUTER_STATE_STALE,
786c6d
+};
786c6d
+
786c6d
+/* iSCSI specific settings params for iface */
786c6d
+enum iscsi_iface_param {
786c6d
+	ISCSI_IFACE_PARAM_DEF_TASKMGMT_TMO,
786c6d
+	ISCSI_IFACE_PARAM_HDRDGST_EN,
786c6d
+	ISCSI_IFACE_PARAM_DATADGST_EN,
786c6d
+	ISCSI_IFACE_PARAM_IMM_DATA_EN,
786c6d
+	ISCSI_IFACE_PARAM_INITIAL_R2T_EN,
786c6d
+	ISCSI_IFACE_PARAM_DATASEQ_INORDER_EN,
786c6d
+	ISCSI_IFACE_PARAM_PDU_INORDER_EN,
786c6d
+	ISCSI_IFACE_PARAM_ERL,
786c6d
+	ISCSI_IFACE_PARAM_MAX_RECV_DLENGTH,
786c6d
+	ISCSI_IFACE_PARAM_FIRST_BURST,
786c6d
+	ISCSI_IFACE_PARAM_MAX_R2T,
786c6d
+	ISCSI_IFACE_PARAM_MAX_BURST,
786c6d
+	ISCSI_IFACE_PARAM_CHAP_AUTH_EN,
786c6d
+	ISCSI_IFACE_PARAM_BIDI_CHAP_EN,
786c6d
+	ISCSI_IFACE_PARAM_DISCOVERY_AUTH_OPTIONAL,
786c6d
+	ISCSI_IFACE_PARAM_DISCOVERY_LOGOUT_EN,
786c6d
+	ISCSI_IFACE_PARAM_STRICT_LOGIN_COMP_EN,
786c6d
+	ISCSI_IFACE_PARAM_INITIATOR_NAME,
786c6d
 };
786c6d
 
786c6d
 enum iscsi_conn_state {
786c6d
-- 
786c6d
1.8.3.1
786c6d