9a597eb
From 072d8b931e8e03875e5220546e68d5fb2e80bcda Mon Sep 17 00:00:00 2001
9a597eb
From: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
9a597eb
Date: Fri, 22 Nov 2013 05:46:12 -0500
9a597eb
Subject: [PATCH] iscsiadm: Added document for description of iface attributes
9a597eb
9a597eb
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
9a597eb
---
9a597eb
 sysfs-documentation | 514 ++++++++++++++++++++++++++++++++++++++++++++++++++++
9a597eb
 1 file changed, 514 insertions(+)
9a597eb
 create mode 100644 sysfs-documentation
9a597eb
9a597eb
diff --git a/sysfs-documentation b/sysfs-documentation
9a597eb
new file mode 100644
9a597eb
index 0000000..54fc497
9a597eb
--- /dev/null
9a597eb
+++ b/sysfs-documentation
9a597eb
@@ -0,0 +1,514 @@
9a597eb
+Description of iface attributes and their valid values
9a597eb
+======================================================
9a597eb
+
9a597eb
+== IPv4 attributes ==
9a597eb
+
9a597eb
+ipaddress
9a597eb
+---------
9a597eb
+IP address in format XXX.XXX.XXX.XXX
9a597eb
+
9a597eb
+gateway
9a597eb
+-------
9a597eb
+IP address of the network router or gateway device in format XXX.XXX.XXX.XXX
9a597eb
+
9a597eb
+subnet
9a597eb
+------
9a597eb
+Broadcast address in format XXX.XXX.XXX.XXX
9a597eb
+
9a597eb
+bootproto
9a597eb
+---------
9a597eb
+The protocol type used to initialize interface
9a597eb
+
9a597eb
+Valid values: "dhcp" or "static"
9a597eb
+
9a597eb
+dhcp_dns_address_en
9a597eb
+-------------------
9a597eb
+Request DNS Server IP Addresses and Domain Name
9a597eb
+
9a597eb
+If bootproto is set to dhcp and dhcp_dns_address_en is enable,
9a597eb
+requests DNS addresses (option 6) and domain name (option 15) in its
9a597eb
+DHCP parameter request list.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+dhcp_slp_da_info_en
9a597eb
+-------------------
9a597eb
+Request SLP DA Information and SLP Scope
9a597eb
+If bootproto is set to dhcp and dhcp_slp_da_info_en is enable,
9a597eb
+requests SLP DA information (option 78) and SLP scope (option 79)
9a597eb
+in its DHCP parameter request list.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+tos_en
9a597eb
+------
9a597eb
+Enable IPv4 type of service (ToS)
9a597eb
+
9a597eb
+When tos_en is set to enable, use value set in tos when transmitting IPv4 TCP
9a597eb
+packets on iSCSI connections.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+tos
9a597eb
+---
9a597eb
+IPv4 Type of service (ToS)
9a597eb
+
9a597eb
+When tos_en is set to enable, use value set in tos when transmitting IPv4 TCP
9a597eb
+packets on iSCSI connections.
9a597eb
+
9a597eb
+Valid range: 8-bit value. [0-255]
9a597eb
+
9a597eb
+grat_arp_en
9a597eb
+-----------
9a597eb
+Enable Gratuitous ARP Requests
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+dhcp_alt_client_id_en
9a597eb
+---------------------
9a597eb
+DHCP Use Alternate Client ID
9a597eb
+
9a597eb
+When dhcp_alt_client_id_en is set to enable, use the Client ID configured in
9a597eb
+dhcp_alt_client_id as its Client ID (DHCP option 61) in outgoing DHCP messages.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+dhcp_alt_client_id
9a597eb
+------------------
9a597eb
+DHCP Alternate Client ID
9a597eb
+
9a597eb
+When dhcp_alt_client_id_en is set to enable, use value set in dhcp_alt_client_id
9a597eb
+for Client ID in DHCP messages.
9a597eb
+
9a597eb
+Valid values: 11-byte Client ID 
9a597eb
+
9a597eb
+dhcp_req_vendor_id_en
9a597eb
+---------------------
9a597eb
+DHCP Require Vendor ID
9a597eb
+
9a597eb
+When dhcp_req_vendor_id_en is set to enable, use value set in dhcp_vendor_id as
9a597eb
+its vendor ID (DHCP option 60) in outgoing DHCP messages.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+dhcp_use_vendor_id_en
9a597eb
+---------------------
9a597eb
+DHCP Use Vendor ID
9a597eb
+
9a597eb
+When dhcp_use_vendor_id_en is set to enable, use value set in dhcp_vendor_id as
9a597eb
+its vendor ID (DHCP option 60) in outgoing DHCP messages.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+dhcp_vendor_id
9a597eb
+--------------
9a597eb
+DHCP Vendor ID
9a597eb
+
9a597eb
+When dhcp_req_vendor_id_en or dhcp_use_vendor_id_en is set to enable,
9a597eb
+use value set in dhcp_vendor_id for Vendor ID in DHCP messages.
9a597eb
+
9a597eb
+Valid values: 11-byte Client ID 
9a597eb
+
9a597eb
+dhcp_learn_iqn_en
9a597eb
+-----------------
9a597eb
+DHCP Learn IQN
9a597eb
+
9a597eb
+When dhcp_learn_iqn_en is set to enable, iSCSI initiator attempts to use DHCP
9a597eb
+to learn its (IQN) iSCSI name.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+fragment_disable
9a597eb
+----------------
9a597eb
+Fragmentation Disable.
9a597eb
+
9a597eb
+When fragment_disable is set to disable, iSCSI initiator cannot fragment IP
9a597eb
+datagrams.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+incoming_forwarding_en
9a597eb
+----------------------
9a597eb
+When incoming_forwarding_en is set to enable, iSCSI initiator forwards all
9a597eb
+incoming network traffic to the network driver, except for iSCSI TCP packets
9a597eb
+destined to the iSCSI initiator.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+ttl
9a597eb
+---
9a597eb
+IPv4 Time to Live (TTL)
9a597eb
+
9a597eb
+This attribute contain TTL value sent in IPv4 TCP packets transmitted on
9a597eb
+iSCSI connections.
9a597eb
+
9a597eb
+Valid range: 8-bit value. [0-255]
9a597eb
+
9a597eb
+== IPv6 attributes ==
9a597eb
+
9a597eb
+ipaddress
9a597eb
+---------
9a597eb
+IP address in IPv6 format.
9a597eb
+
9a597eb
+link_local_addr
9a597eb
+---------------
9a597eb
+Link local address in IPv6 format.
9a597eb
+
9a597eb
+router_addr
9a597eb
+-----------
9a597eb
+Router address in IPv6 format.
9a597eb
+
9a597eb
+ipaddr_autocfg
9a597eb
+--------------
9a597eb
+Autoconfigure IPv6 Address.
9a597eb
+
9a597eb
+Valid values: nd, dhcpv6 or disable
9a597eb
+qla4xxx don't support dhcpv6.
9a597eb
+
9a597eb
+link_local_autocfg
9a597eb
+------------------
9a597eb
+Autoconfigure IPv6 Link Local Address.
9a597eb
+
9a597eb
+IPv6 neighbor discovery protocol to discover Link Local Address.
9a597eb
+
9a597eb
+Valid values: auto or disable
9a597eb
+
9a597eb
+
9a597eb
+router_autocfg
9a597eb
+--------------
9a597eb
+Autoconfigure IPv6 Router address.
9a597eb
+
9a597eb
+IPv6 neighbor discovery protocol to discover a default router address.
9a597eb
+
9a597eb
+Valid values: auto or disable
9a597eb
+
9a597eb
+link_local_state
9a597eb
+----------------
9a597eb
+This Read-only attribute show Link Local IP address state in sysfs.
9a597eb
+
9a597eb
+Valid values: Unconfigured, Acquiring, Tentative, Valid, Disabling, Invalid,
9a597eb
+	      Deprecated.
9a597eb
+
9a597eb
+
9a597eb
+router_state
9a597eb
+------------
9a597eb
+This Read-only attribute shows router state.
9a597eb
+
9a597eb
+Valid values: Unknown, Advertised, Manual, Stale.
9a597eb
+
9a597eb
+
9a597eb
+grat_neighbor_adv_en
9a597eb
+--------------------
9a597eb
+Enable Gratuitious Neighbor Advertisement
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+mld_en
9a597eb
+------
9a597eb
+Enable IPv6 Multicast Listener Discovery
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+flow_label
9a597eb
+----------
9a597eb
+This attribute specifies the default value of the Flow Label field in the
9a597eb
+IPv6 header of TCP packets transmitted on iSCSI connections
9a597eb
+
9a597eb
+Valid range: 20-bit value. [0-1048575]
9a597eb
+Value zero indicates that the traffic is not assigned to a labelled flow.
9a597eb
+
9a597eb
+traffic_class
9a597eb
+-------------
9a597eb
+This attribute specifies the IPv6 traffic class value to be used in IPv6
9a597eb
+TCP packets transmitted from the firmware on iSCSI connections.
9a597eb
+
9a597eb
+Valid range: 8-bit value. [0-255]
9a597eb
+
9a597eb
+hop_limit
9a597eb
+---------
9a597eb
+This attribute specifies the IPv6 hop limit value to be used in IPv6 TCP
9a597eb
+packets transmitted from the firmware on iSCSI connections
9a597eb
+
9a597eb
+Valid range: 8-bit value. [0-255]
9a597eb
+
9a597eb
+nd_reachable_tmo
9a597eb
+----------------
9a597eb
+This attribute specifies the time (in milliseconds) that a node assumes 
9a597eb
+that the neighbor is reachable after confirmation.
9a597eb
+
9a597eb
+Valid range: 4-byte value. [0-4294967295]
9a597eb
+
9a597eb
+nd_rexmit_time
9a597eb
+--------------
9a597eb
+This attribute specifies the time (in milliseconds) between retransmitted
9a597eb
+neighbor solicitation messages.
9a597eb
+
9a597eb
+Valid range: 4-byte value. [0-4294967295]
9a597eb
+
9a597eb
+nd_stale_tmo
9a597eb
+------------
9a597eb
+This attribute specifies the time (in milliseconds) after which a stale
9a597eb
+neighbor or destination cache entry is discarded.
9a597eb
+
9a597eb
+Valid range: 4-byte value. [0-4294967295]
9a597eb
+
9a597eb
+dup_addr_detect_cnt
9a597eb
+-------------------
9a597eb
+This attribute specifies the IPv6 duplicate address detection count
9a597eb
+
9a597eb
+Valid range: 8-bit value. [0-255]
9a597eb
+	     0 - Disable
9a597eb
+	     1 - TryOnce
9a597eb
+	     2 - TryTwice, and so on
9a597eb
+
9a597eb
+router_adv_link_mtu
9a597eb
+-------------------
9a597eb
+IPv6 Router Advertised Link MTU Size.
9a597eb
+
9a597eb
+Valid range: 1280 bytes to 1500 bytes
9a597eb
+
9a597eb
+== Common ==
9a597eb
+enabled
9a597eb
+-------
9a597eb
+This attribute is used to enable or disable IPv4 or IPv6 protocol.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+vlan_id
9a597eb
+-------
9a597eb
+This attribute specifies 12-bit VLAN identifier (VID)
9a597eb
+
9a597eb
+Valid range: 12-bit value. [1-4094]
9a597eb
+
9a597eb
+vlan_priority
9a597eb
+-------------
9a597eb
+This attribute specifies Priority to outbound packets containing the
9a597eb
+specified VLAN-ID (VID)
9a597eb
+
9a597eb
+Valid range: 3-bit value. [0-7]
9a597eb
+
9a597eb
+vlan_enabled
9a597eb
+------------
9a597eb
+VLAN Tagging Enable.
9a597eb
+
9a597eb
+When this attribute is set to enable, use value set in vlan_id and
9a597eb
+vlan_priority to transmit IP packets, and discards IP packets that were
9a597eb
+received without a matching VLAN ID
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+mtu
9a597eb
+---
9a597eb
+Ethernet MTU Size.
9a597eb
+
9a597eb
+This field specifies the maximum payload length in byte of an
9a597eb
+Ethernet frame supported by iSCSI initiator.
9a597eb
+
9a597eb
+Valid values: 576 bytes to 9000 bytes
9a597eb
+
9a597eb
+port
9a597eb
+----
9a597eb
+This attribute shows the initiator iSCSI port number.
9a597eb
+
9a597eb
+ipaddress_state
9a597eb
+---------------
9a597eb
+This Read-only attribute show IP address state.
9a597eb
+
9a597eb
+Valid values: Unconfigured, Acquiring, Tentative, Valid, Disabling, Invalid,
9a597eb
+	      Deprecated.
9a597eb
+
9a597eb
+delayed_ack_en
9a597eb
+--------------
9a597eb
+When this attribute is set to enable, TCP delayed ACK is enabled.
9a597eb
+  
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+tcp_nagle_disable
9a597eb
+-----------------
9a597eb
+When this attribute is set to disable, TCP Nagle algorithm is disabled.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+tcp_wsf_disable
9a597eb
+---------------
9a597eb
+When this attribute is set to disable, TCP window scale is disabled.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+tcp_wsf
9a597eb
+-------
9a597eb
+This attribute specifies the TCP window scale factor to be negotiated
9a597eb
+on TCP connections.
9a597eb
+
9a597eb
+Valid range: 8-bit value. [0-255]
9a597eb
+
9a597eb
+tcp_timer_scale
9a597eb
+---------------
9a597eb
+The TCP Timer Scale is scale factor that adjusts the time interval between
9a597eb
+timer ticks on a TCP connection. The scale factor allows for faster time-outs
9a597eb
+for connections running on a very small network, versus connections running
9a597eb
+on a very large network.
9a597eb
+
9a597eb
+Valid range: 3-bit value. [0-7]
9a597eb
+
9a597eb
+tcp_timestamp_en
9a597eb
+----------------
9a597eb
+When this attribute is set to enable, iSCSI initiator negotiates to use time
9a597eb
+stamps in TCP headers
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+cache_id
9a597eb
+--------
9a597eb
+This Read-only attribute is used to find the valid cache entries for the
9a597eb
+interface.
9a597eb
+
9a597eb
+For IPv4, ARP cache entry
9a597eb
+For IPv6, Neighbor cache entry
9a597eb
+
9a597eb
+redirect_en
9a597eb
+-----------
9a597eb
+For IPv4:
9a597eb
+When this attribute is set to enable, an ARP redirect can modify the address
9a597eb
+resolution protocol (ARP) table and any active connections.
9a597eb
+
9a597eb
+For IPv6:
9a597eb
+When this attribute is set to enable and neighbor advertisements are received,
9a597eb
+the connection table is examined and updated if any active connections match
9a597eb
+the IP address on the neighbor advertisement. This action is required for
9a597eb
+failover and redirect.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+def_taskmgmt_tmo
9a597eb
+----------------
9a597eb
+This attribute specifies timeout interval in seconds that iSCSI uses for
9a597eb
+timing out task-management commands.
9a597eb
+
9a597eb
+Valid range: 16-bit value [0-65535].
9a597eb
+
9a597eb
+header_digest
9a597eb
+-------------
9a597eb
+When this attribute is set to enable iSCSI initiator negotiates for
9a597eb
+HeaderDigest=CRC32 and when set to disable negotiates HeaderDigest=none.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+data_digest
9a597eb
+-----------
9a597eb
+When this attribute is set to enable iSCSI initiator negotiates for
9a597eb
+DataDigest=CRC32 and when set to disable negotiates DataDigest=none.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+immediate_data
9a597eb
+--------------
9a597eb
+When this attribute is set to enable iSCSI initiator negotiates for
9a597eb
+ImmediateData=yes and When set to disable negotiates ImmediateData=none
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+initial_r2t
9a597eb
+-----------
9a597eb
+When this attribute is set to enable iSCSI initiator negotiates for
9a597eb
+InitialR2T=yes. When set to disable negotiates InitialR2T=no.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+data_seq_in_order
9a597eb
+-----------------
9a597eb
+When this attribute is set to enable iSCSI initiator set data sequences
9a597eb
+in order
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+qla4xxx does not support out-of-order data sequences
9a597eb
+
9a597eb
+data_pdu_in_order
9a597eb
+-----------------
9a597eb
+When this attribute is set to enable iSCSI initiator set Data PDU
9a597eb
+in order
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+qla4xxx does not support out-of-order Data PDUs.
9a597eb
+
9a597eb
+erl
9a597eb
+---
9a597eb
+Error Recovery Level
9a597eb
+
9a597eb
+This attribute specifies error recovery level (ERL) supported by the
9a597eb
+connection.
9a597eb
+
9a597eb
+Valid values: 2-bit value [0-2]
9a597eb
+
9a597eb
+max_recv_dlength
9a597eb
+----------------
9a597eb
+iSCSI Maximum Receive Data Segment Length.
9a597eb
+
9a597eb
+This attribute specifies Maximum data segment length in bytes, that receive
9a597eb
+in an iSCSI PDU.
9a597eb
+
9a597eb
+first_burst_len
9a597eb
+---------------
9a597eb
+iSCSI First Burst Length
9a597eb
+
9a597eb
+This attribute Specifies the maximum amount of unsolicited data an iSCSI
9a597eb
+initiator can send to the target during the execution of a single SCSI command,
9a597eb
+in bytes.
9a597eb
+
9a597eb
+max_outstanding_r2t
9a597eb
+-------------------
9a597eb
+iSCSI Maximum Outstanding R2T
9a597eb
+
9a597eb
+This attribute Specifies how many R2T PDUs per command can be outstanding
9a597eb
+during an iSCSI session.
9a597eb
+
9a597eb
+max_burst_len
9a597eb
+-------------
9a597eb
+This attribute Specifies the maximum length for unsolicited or immediate data
9a597eb
+iSCSI session can send or receive.
9a597eb
+
9a597eb
+chap_auth
9a597eb
+---------
9a597eb
+When this attribute is set to enable iSCSI session performs authentication
9a597eb
+during the security state of login phase.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+bidi_chap
9a597eb
+---------
9a597eb
+When this attribute is set to enable iSCSI session generates a CHAP challenge
9a597eb
+to any target that has issued a CHAP challenge to the iSCSI session.
9a597eb
+iSCSI session issues the challenge to the target after responding to the
9a597eb
+targets challenge. This attribute is ignored if chap_auth is set to disable.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+discovery_auth_optional
9a597eb
+-----------------------
9a597eb
+When this attribute is set to enable and the chap_auth is set to enable,
9a597eb
+iSCSI session does not require authentication on discovery sessions unless
9a597eb
+requested by the peer. When this attribute is set to disable iSCSI session
9a597eb
+requires CHAP authentication for a discovery session.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+discovery_logout
9a597eb
+----------------
9a597eb
+When this attribute is set to enable, iSCSI initiator initiates an iSCSI logout
9a597eb
+on a discovery session when discovery is complete (before closing the connection).
9a597eb
+When this attribute is set to disable, iSCSI initiator closes the connection when
9a597eb
+discovery is complete.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+strict_login_comp_en
9a597eb
+--------------------
9a597eb
+When this attribute is set to enable, iSCSI initiator enforces the iSCSI login
9a597eb
+negotiation rules. When this attribute is set to disable, iSCSI initiator does
9a597eb
+not enforce iSCSI login negotiation.
9a597eb
+
9a597eb
+Valid values: "enable" or "disable"
9a597eb
+
9a597eb
+initiator_name
9a597eb
+--------------
9a597eb
+This Read-only attribute contains the iSCSI Name string used by the firmware.
9a597eb
-- 
9a597eb
1.8.3.1
9a597eb