aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_fw.h
diff options
context:
space:
mode:
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>2013-10-18 09:01:42 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-12-16 13:57:51 -0500
commitf8e934122424ab1f9a538fc2b7062d7d5b10fd6f (patch)
tree322c4573391e8a00c10642c4604236e23d3c97df /drivers/scsi/qla4xxx/ql4_fw.h
parent3e0f65b34cc972d462c32769cd85b4eee6949139 (diff)
[SCSI] qla4xxx: Add support for additional network parameters settings
Added support to display and update additional network parameters through iscsiadm. Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com> Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_fw.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_fw.h43
1 files changed, 41 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_fw.h b/drivers/scsi/qla4xxx/ql4_fw.h
index 1243e5942b76..306065275707 100644
--- a/drivers/scsi/qla4xxx/ql4_fw.h
+++ b/drivers/scsi/qla4xxx/ql4_fw.h
@@ -551,6 +551,7 @@ struct addr_ctrl_blk {
551#define IFCB_VER_MIN 0x01 551#define IFCB_VER_MIN 0x01
552#define IFCB_VER_MAX 0x02 552#define IFCB_VER_MAX 0x02
553 uint8_t control; /* 01 */ 553 uint8_t control; /* 01 */
554#define CTRLOPT_NEW_CONN_DISABLE 0x0002
554 555
555 uint16_t fw_options; /* 02-03 */ 556 uint16_t fw_options; /* 02-03 */
556#define FWOPT_HEARTBEAT_ENABLE 0x1000 557#define FWOPT_HEARTBEAT_ENABLE 0x1000
@@ -582,11 +583,40 @@ struct addr_ctrl_blk {
582 uint32_t shdwreg_addr_hi; /* 2C-2F */ 583 uint32_t shdwreg_addr_hi; /* 2C-2F */
583 584
584 uint16_t iscsi_opts; /* 30-31 */ 585 uint16_t iscsi_opts; /* 30-31 */
586#define ISCSIOPTS_HEADER_DIGEST_EN 0x2000
587#define ISCSIOPTS_DATA_DIGEST_EN 0x1000
588#define ISCSIOPTS_IMMEDIATE_DATA_EN 0x0800
589#define ISCSIOPTS_INITIAL_R2T_EN 0x0400
590#define ISCSIOPTS_DATA_SEQ_INORDER_EN 0x0200
591#define ISCSIOPTS_DATA_PDU_INORDER_EN 0x0100
592#define ISCSIOPTS_CHAP_AUTH_EN 0x0080
593#define ISCSIOPTS_SNACK_EN 0x0040
594#define ISCSIOPTS_DISCOVERY_LOGOUT_EN 0x0020
595#define ISCSIOPTS_BIDI_CHAP_EN 0x0010
596#define ISCSIOPTS_DISCOVERY_AUTH_EN 0x0008
597#define ISCSIOPTS_STRICT_LOGIN_COMP_EN 0x0004
598#define ISCSIOPTS_ERL 0x0003
585 uint16_t ipv4_tcp_opts; /* 32-33 */ 599 uint16_t ipv4_tcp_opts; /* 32-33 */
600#define TCPOPT_DELAYED_ACK_DISABLE 0x8000
586#define TCPOPT_DHCP_ENABLE 0x0200 601#define TCPOPT_DHCP_ENABLE 0x0200
602#define TCPOPT_DNS_SERVER_IP_EN 0x0100
603#define TCPOPT_SLP_DA_INFO_EN 0x0080
604#define TCPOPT_NAGLE_ALGO_DISABLE 0x0020
605#define TCPOPT_WINDOW_SCALE_DISABLE 0x0010
606#define TCPOPT_TIMER_SCALE 0x000E
607#define TCPOPT_TIMESTAMP_ENABLE 0x0001
587 uint16_t ipv4_ip_opts; /* 34-35 */ 608 uint16_t ipv4_ip_opts; /* 34-35 */
588#define IPOPT_IPV4_PROTOCOL_ENABLE 0x8000 609#define IPOPT_IPV4_PROTOCOL_ENABLE 0x8000
610#define IPOPT_IPV4_TOS_EN 0x4000
589#define IPOPT_VLAN_TAGGING_ENABLE 0x2000 611#define IPOPT_VLAN_TAGGING_ENABLE 0x2000
612#define IPOPT_GRAT_ARP_EN 0x1000
613#define IPOPT_ALT_CID_EN 0x0800
614#define IPOPT_REQ_VID_EN 0x0400
615#define IPOPT_USE_VID_EN 0x0200
616#define IPOPT_LEARN_IQN_EN 0x0100
617#define IPOPT_FRAGMENTATION_DISABLE 0x0010
618#define IPOPT_IN_FORWARD_EN 0x0008
619#define IPOPT_ARP_REDIRECT_EN 0x0004
590 620
591 uint16_t iscsi_max_pdu_size; /* 36-37 */ 621 uint16_t iscsi_max_pdu_size; /* 36-37 */
592 uint8_t ipv4_tos; /* 38 */ 622 uint8_t ipv4_tos; /* 38 */
@@ -637,15 +667,24 @@ struct addr_ctrl_blk {
637 uint32_t cookie; /* 200-203 */ 667 uint32_t cookie; /* 200-203 */
638 uint16_t ipv6_port; /* 204-205 */ 668 uint16_t ipv6_port; /* 204-205 */
639 uint16_t ipv6_opts; /* 206-207 */ 669 uint16_t ipv6_opts; /* 206-207 */
640#define IPV6_OPT_IPV6_PROTOCOL_ENABLE 0x8000 670#define IPV6_OPT_IPV6_PROTOCOL_ENABLE 0x8000
641#define IPV6_OPT_VLAN_TAGGING_ENABLE 0x2000 671#define IPV6_OPT_VLAN_TAGGING_ENABLE 0x2000
672#define IPV6_OPT_GRAT_NEIGHBOR_ADV_EN 0x1000
673#define IPV6_OPT_REDIRECT_EN 0x0004
642 674
643 uint16_t ipv6_addtl_opts; /* 208-209 */ 675 uint16_t ipv6_addtl_opts; /* 208-209 */
676#define IPV6_ADDOPT_IGNORE_ICMP_ECHO_REQ 0x0040
677#define IPV6_ADDOPT_MLD_EN 0x0004
644#define IPV6_ADDOPT_NEIGHBOR_DISCOVERY_ADDR_ENABLE 0x0002 /* Pri ACB 678#define IPV6_ADDOPT_NEIGHBOR_DISCOVERY_ADDR_ENABLE 0x0002 /* Pri ACB
645 Only */ 679 Only */
646#define IPV6_ADDOPT_AUTOCONFIG_LINK_LOCAL_ADDR 0x0001 680#define IPV6_ADDOPT_AUTOCONFIG_LINK_LOCAL_ADDR 0x0001
647 681
648 uint16_t ipv6_tcp_opts; /* 20A-20B */ 682 uint16_t ipv6_tcp_opts; /* 20A-20B */
683#define IPV6_TCPOPT_DELAYED_ACK_DISABLE 0x8000
684#define IPV6_TCPOPT_NAGLE_ALGO_DISABLE 0x0020
685#define IPV6_TCPOPT_WINDOW_SCALE_DISABLE 0x0010
686#define IPV6_TCPOPT_TIMER_SCALE 0x000E
687#define IPV6_TCPOPT_TIMESTAMP_EN 0x0001
649 uint8_t ipv6_tcp_wsf; /* 20C */ 688 uint8_t ipv6_tcp_wsf; /* 20C */
650 uint16_t ipv6_flow_lbl; /* 20D-20F */ 689 uint16_t ipv6_flow_lbl; /* 20D-20F */
651 uint8_t ipv6_dflt_rtr_addr[16]; /* 210-21F */ 690 uint8_t ipv6_dflt_rtr_addr[16]; /* 210-21F */