diff options
Diffstat (limited to 'drivers/net/cnic_defs.h')
-rw-r--r-- | drivers/net/cnic_defs.h | 456 |
1 files changed, 216 insertions, 240 deletions
diff --git a/drivers/net/cnic_defs.h b/drivers/net/cnic_defs.h index 7ce694d41b6b..328e8b2765a3 100644 --- a/drivers/net/cnic_defs.h +++ b/drivers/net/cnic_defs.h | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | /* KWQ (kernel work queue) request op codes */ | 15 | /* KWQ (kernel work queue) request op codes */ |
16 | #define L2_KWQE_OPCODE_VALUE_FLUSH (4) | 16 | #define L2_KWQE_OPCODE_VALUE_FLUSH (4) |
17 | #define L2_KWQE_OPCODE_VALUE_VM_FREE_RX_QUEUE (8) | ||
17 | 18 | ||
18 | #define L4_KWQE_OPCODE_VALUE_CONNECT1 (50) | 19 | #define L4_KWQE_OPCODE_VALUE_CONNECT1 (50) |
19 | #define L4_KWQE_OPCODE_VALUE_CONNECT2 (51) | 20 | #define L4_KWQE_OPCODE_VALUE_CONNECT2 (51) |
@@ -48,11 +49,14 @@ | |||
48 | #define L4_KCQE_OPCODE_VALUE_UPLOAD_PG (14) | 49 | #define L4_KCQE_OPCODE_VALUE_UPLOAD_PG (14) |
49 | 50 | ||
50 | /* KCQ (kernel completion queue) completion status */ | 51 | /* KCQ (kernel completion queue) completion status */ |
51 | #define L4_KCQE_COMPLETION_STATUS_SUCCESS (0) | 52 | #define L4_KCQE_COMPLETION_STATUS_SUCCESS (0) |
52 | #define L4_KCQE_COMPLETION_STATUS_TIMEOUT (0x93) | 53 | #define L4_KCQE_COMPLETION_STATUS_TIMEOUT (0x93) |
53 | 54 | ||
54 | #define L4_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAIL (0x83) | 55 | #define L4_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAIL (0x83) |
55 | #define L4_KCQE_COMPLETION_STATUS_OFFLOADED_PG (0x89) | 56 | #define L4_KCQE_COMPLETION_STATUS_OFFLOADED_PG (0x89) |
57 | |||
58 | #define L4_KCQE_OPCODE_VALUE_OOO_EVENT_NOTIFICATION (0xa0) | ||
59 | #define L4_KCQE_OPCODE_VALUE_OOO_FLUSH (0xa1) | ||
56 | 60 | ||
57 | #define L4_LAYER_CODE (4) | 61 | #define L4_LAYER_CODE (4) |
58 | #define L2_LAYER_CODE (2) | 62 | #define L2_LAYER_CODE (2) |
@@ -585,6 +589,100 @@ struct l4_kwq_upload { | |||
585 | */ | 589 | */ |
586 | 590 | ||
587 | /* | 591 | /* |
592 | * The iscsi aggregative context of Cstorm | ||
593 | */ | ||
594 | struct cstorm_iscsi_ag_context { | ||
595 | u32 agg_vars1; | ||
596 | #define CSTORM_ISCSI_AG_CONTEXT_STATE (0xFF<<0) | ||
597 | #define CSTORM_ISCSI_AG_CONTEXT_STATE_SHIFT 0 | ||
598 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<8) | ||
599 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 8 | ||
600 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<9) | ||
601 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 9 | ||
602 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<10) | ||
603 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 10 | ||
604 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<11) | ||
605 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 11 | ||
606 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_SE_CF_EN (0x1<<12) | ||
607 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_SE_CF_EN_SHIFT 12 | ||
608 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_INV_CF_EN (0x1<<13) | ||
609 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_INV_CF_EN_SHIFT 13 | ||
610 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF (0x3<<14) | ||
611 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF_SHIFT 14 | ||
612 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED66 (0x3<<16) | ||
613 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED66_SHIFT 16 | ||
614 | #define __CSTORM_ISCSI_AG_CONTEXT_FIN_RECEIVED_CF_EN (0x1<<18) | ||
615 | #define __CSTORM_ISCSI_AG_CONTEXT_FIN_RECEIVED_CF_EN_SHIFT 18 | ||
616 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION0_CF_EN (0x1<<19) | ||
617 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION0_CF_EN_SHIFT 19 | ||
618 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION1_CF_EN (0x1<<20) | ||
619 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION1_CF_EN_SHIFT 20 | ||
620 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION2_CF_EN (0x1<<21) | ||
621 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION2_CF_EN_SHIFT 21 | ||
622 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF_EN (0x1<<22) | ||
623 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF_EN_SHIFT 22 | ||
624 | #define __CSTORM_ISCSI_AG_CONTEXT_REL_SEQ_RULE (0x7<<23) | ||
625 | #define __CSTORM_ISCSI_AG_CONTEXT_REL_SEQ_RULE_SHIFT 23 | ||
626 | #define CSTORM_ISCSI_AG_CONTEXT_HQ_PROD_RULE (0x3<<26) | ||
627 | #define CSTORM_ISCSI_AG_CONTEXT_HQ_PROD_RULE_SHIFT 26 | ||
628 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED52 (0x3<<28) | ||
629 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED52_SHIFT 28 | ||
630 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED53 (0x3<<30) | ||
631 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED53_SHIFT 30 | ||
632 | #if defined(__BIG_ENDIAN) | ||
633 | u8 __aux1_th; | ||
634 | u8 __aux1_val; | ||
635 | u16 __agg_vars2; | ||
636 | #elif defined(__LITTLE_ENDIAN) | ||
637 | u16 __agg_vars2; | ||
638 | u8 __aux1_val; | ||
639 | u8 __aux1_th; | ||
640 | #endif | ||
641 | u32 rel_seq; | ||
642 | u32 rel_seq_th; | ||
643 | #if defined(__BIG_ENDIAN) | ||
644 | u16 hq_cons; | ||
645 | u16 hq_prod; | ||
646 | #elif defined(__LITTLE_ENDIAN) | ||
647 | u16 hq_prod; | ||
648 | u16 hq_cons; | ||
649 | #endif | ||
650 | #if defined(__BIG_ENDIAN) | ||
651 | u8 __reserved62; | ||
652 | u8 __reserved61; | ||
653 | u8 __reserved60; | ||
654 | u8 __reserved59; | ||
655 | #elif defined(__LITTLE_ENDIAN) | ||
656 | u8 __reserved59; | ||
657 | u8 __reserved60; | ||
658 | u8 __reserved61; | ||
659 | u8 __reserved62; | ||
660 | #endif | ||
661 | #if defined(__BIG_ENDIAN) | ||
662 | u16 __reserved64; | ||
663 | u16 __cq_u_prod0; | ||
664 | #elif defined(__LITTLE_ENDIAN) | ||
665 | u16 __cq_u_prod0; | ||
666 | u16 __reserved64; | ||
667 | #endif | ||
668 | u32 __cq_u_prod1; | ||
669 | #if defined(__BIG_ENDIAN) | ||
670 | u16 __agg_vars3; | ||
671 | u16 __cq_u_prod2; | ||
672 | #elif defined(__LITTLE_ENDIAN) | ||
673 | u16 __cq_u_prod2; | ||
674 | u16 __agg_vars3; | ||
675 | #endif | ||
676 | #if defined(__BIG_ENDIAN) | ||
677 | u16 __aux2_th; | ||
678 | u16 __cq_u_prod3; | ||
679 | #elif defined(__LITTLE_ENDIAN) | ||
680 | u16 __cq_u_prod3; | ||
681 | u16 __aux2_th; | ||
682 | #endif | ||
683 | }; | ||
684 | |||
685 | /* | ||
588 | * iSCSI context region, used only in iSCSI | 686 | * iSCSI context region, used only in iSCSI |
589 | */ | 687 | */ |
590 | struct ustorm_iscsi_rq_db { | 688 | struct ustorm_iscsi_rq_db { |
@@ -696,7 +794,7 @@ struct ustorm_iscsi_st_context { | |||
696 | struct regpair task_pbl_base; | 794 | struct regpair task_pbl_base; |
697 | struct regpair tce_phy_addr; | 795 | struct regpair tce_phy_addr; |
698 | struct ustorm_iscsi_placement_db place_db; | 796 | struct ustorm_iscsi_placement_db place_db; |
699 | u32 data_rcv_seq; | 797 | u32 reserved8; |
700 | u32 rem_rcv_len; | 798 | u32 rem_rcv_len; |
701 | #if defined(__BIG_ENDIAN) | 799 | #if defined(__BIG_ENDIAN) |
702 | u16 hdr_itt; | 800 | u16 hdr_itt; |
@@ -713,8 +811,10 @@ struct ustorm_iscsi_st_context { | |||
713 | #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU_SHIFT 0 | 811 | #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU_SHIFT 0 |
714 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE (0x1<<1) | 812 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE (0x1<<1) |
715 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE_SHIFT 1 | 813 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE_SHIFT 1 |
716 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1 (0x3F<<2) | 814 | #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC (0x1<<2) |
717 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1_SHIFT 2 | 815 | #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC_SHIFT 2 |
816 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1 (0x1F<<3) | ||
817 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1_SHIFT 3 | ||
718 | u8 task_pdu_cache_index; | 818 | u8 task_pdu_cache_index; |
719 | u8 task_pbe_cache_index; | 819 | u8 task_pbe_cache_index; |
720 | #elif defined(__LITTLE_ENDIAN) | 820 | #elif defined(__LITTLE_ENDIAN) |
@@ -725,8 +825,10 @@ struct ustorm_iscsi_st_context { | |||
725 | #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU_SHIFT 0 | 825 | #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU_SHIFT 0 |
726 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE (0x1<<1) | 826 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE (0x1<<1) |
727 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE_SHIFT 1 | 827 | #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE_SHIFT 1 |
728 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1 (0x3F<<2) | 828 | #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC (0x1<<2) |
729 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1_SHIFT 2 | 829 | #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC_SHIFT 2 |
830 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1 (0x1F<<3) | ||
831 | #define USTORM_ISCSI_ST_CONTEXT_RESERVED1_SHIFT 3 | ||
730 | u8 hdr_second_byte_union; | 832 | u8 hdr_second_byte_union; |
731 | #endif | 833 | #endif |
732 | #if defined(__BIG_ENDIAN) | 834 | #if defined(__BIG_ENDIAN) |
@@ -777,14 +879,14 @@ struct ustorm_iscsi_st_context { | |||
777 | */ | 879 | */ |
778 | struct tstorm_tcp_st_context_section { | 880 | struct tstorm_tcp_st_context_section { |
779 | u32 flags1; | 881 | u32 flags1; |
780 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_SRTT_20B (0xFFFFFF<<0) | 882 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_SRTT (0xFFFFFF<<0) |
781 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_SRTT_20B_SHIFT 0 | 883 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_SRTT_SHIFT 0 |
782 | #define TSTORM_TCP_ST_CONTEXT_SECTION_PAWS_INVALID (0x1<<24) | 884 | #define TSTORM_TCP_ST_CONTEXT_SECTION_PAWS_INVALID (0x1<<24) |
783 | #define TSTORM_TCP_ST_CONTEXT_SECTION_PAWS_INVALID_SHIFT 24 | 885 | #define TSTORM_TCP_ST_CONTEXT_SECTION_PAWS_INVALID_SHIFT 24 |
784 | #define TSTORM_TCP_ST_CONTEXT_SECTION_TIMESTAMP_EXISTS (0x1<<25) | 886 | #define TSTORM_TCP_ST_CONTEXT_SECTION_TIMESTAMP_EXISTS (0x1<<25) |
785 | #define TSTORM_TCP_ST_CONTEXT_SECTION_TIMESTAMP_EXISTS_SHIFT 25 | 887 | #define TSTORM_TCP_ST_CONTEXT_SECTION_TIMESTAMP_EXISTS_SHIFT 25 |
786 | #define TSTORM_TCP_ST_CONTEXT_SECTION_ISLE_EXISTS (0x1<<26) | 888 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RESERVED0 (0x1<<26) |
787 | #define TSTORM_TCP_ST_CONTEXT_SECTION_ISLE_EXISTS_SHIFT 26 | 889 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RESERVED0_SHIFT 26 |
788 | #define TSTORM_TCP_ST_CONTEXT_SECTION_STOP_RX_PAYLOAD (0x1<<27) | 890 | #define TSTORM_TCP_ST_CONTEXT_SECTION_STOP_RX_PAYLOAD (0x1<<27) |
789 | #define TSTORM_TCP_ST_CONTEXT_SECTION_STOP_RX_PAYLOAD_SHIFT 27 | 891 | #define TSTORM_TCP_ST_CONTEXT_SECTION_STOP_RX_PAYLOAD_SHIFT 27 |
790 | #define TSTORM_TCP_ST_CONTEXT_SECTION_KA_ENABLED (0x1<<28) | 892 | #define TSTORM_TCP_ST_CONTEXT_SECTION_KA_ENABLED (0x1<<28) |
@@ -793,11 +895,11 @@ struct tstorm_tcp_st_context_section { | |||
793 | #define TSTORM_TCP_ST_CONTEXT_SECTION_FIRST_RTO_ESTIMATE_SHIFT 29 | 895 | #define TSTORM_TCP_ST_CONTEXT_SECTION_FIRST_RTO_ESTIMATE_SHIFT 29 |
794 | #define TSTORM_TCP_ST_CONTEXT_SECTION_MAX_SEG_RETRANSMIT_EN (0x1<<30) | 896 | #define TSTORM_TCP_ST_CONTEXT_SECTION_MAX_SEG_RETRANSMIT_EN (0x1<<30) |
795 | #define TSTORM_TCP_ST_CONTEXT_SECTION_MAX_SEG_RETRANSMIT_EN_SHIFT 30 | 897 | #define TSTORM_TCP_ST_CONTEXT_SECTION_MAX_SEG_RETRANSMIT_EN_SHIFT 30 |
796 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RESERVED3 (0x1<<31) | 898 | #define TSTORM_TCP_ST_CONTEXT_SECTION_LAST_ISLE_HAS_FIN (0x1<<31) |
797 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RESERVED3_SHIFT 31 | 899 | #define TSTORM_TCP_ST_CONTEXT_SECTION_LAST_ISLE_HAS_FIN_SHIFT 31 |
798 | u32 flags2; | 900 | u32 flags2; |
799 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_VARIATION_20B (0xFFFFFF<<0) | 901 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_VARIATION (0xFFFFFF<<0) |
800 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_VARIATION_20B_SHIFT 0 | 902 | #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_VARIATION_SHIFT 0 |
801 | #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_EN (0x1<<24) | 903 | #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_EN (0x1<<24) |
802 | #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_EN_SHIFT 24 | 904 | #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_EN_SHIFT 24 |
803 | #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_COUNTER_EN (0x1<<25) | 905 | #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_COUNTER_EN (0x1<<25) |
@@ -810,18 +912,18 @@ struct tstorm_tcp_st_context_section { | |||
810 | #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L2_STATSTICS_SHIFT 28 | 912 | #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L2_STATSTICS_SHIFT 28 |
811 | #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L4_STATSTICS (0x1<<29) | 913 | #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L4_STATSTICS (0x1<<29) |
812 | #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 29 | 914 | #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 29 |
813 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_SECOND_ISLE_DROPPED (0x1<<30) | 915 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_RST_ATTACK (0x1<<30) |
814 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_SECOND_ISLE_DROPPED_SHIFT 30 | 916 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_RST_ATTACK_SHIFT 30 |
815 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_DONT_SUPPORT_OOO (0x1<<31) | 917 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_SYN_ATTACK (0x1<<31) |
816 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_DONT_SUPPORT_OOO_SHIFT 31 | 918 | #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_SYN_ATTACK_SHIFT 31 |
817 | #if defined(__BIG_ENDIAN) | 919 | #if defined(__BIG_ENDIAN) |
818 | u16 reserved_slowpath; | 920 | u16 mss; |
819 | u8 tcp_sm_state_3b; | 921 | u8 tcp_sm_state; |
820 | u8 rto_exp_3b; | 922 | u8 rto_exp; |
821 | #elif defined(__LITTLE_ENDIAN) | 923 | #elif defined(__LITTLE_ENDIAN) |
822 | u8 rto_exp_3b; | 924 | u8 rto_exp; |
823 | u8 tcp_sm_state_3b; | 925 | u8 tcp_sm_state; |
824 | u16 reserved_slowpath; | 926 | u16 mss; |
825 | #endif | 927 | #endif |
826 | u32 rcv_nxt; | 928 | u32 rcv_nxt; |
827 | u32 timestamp_recent; | 929 | u32 timestamp_recent; |
@@ -846,11 +948,11 @@ struct tstorm_tcp_st_context_section { | |||
846 | #if defined(__BIG_ENDIAN) | 948 | #if defined(__BIG_ENDIAN) |
847 | u8 statistics_counter_id; | 949 | u8 statistics_counter_id; |
848 | u8 ooo_support_mode; | 950 | u8 ooo_support_mode; |
849 | u8 snd_wnd_scale_4b; | 951 | u8 snd_wnd_scale; |
850 | u8 dup_ack_count; | 952 | u8 dup_ack_count; |
851 | #elif defined(__LITTLE_ENDIAN) | 953 | #elif defined(__LITTLE_ENDIAN) |
852 | u8 dup_ack_count; | 954 | u8 dup_ack_count; |
853 | u8 snd_wnd_scale_4b; | 955 | u8 snd_wnd_scale; |
854 | u8 ooo_support_mode; | 956 | u8 ooo_support_mode; |
855 | u8 statistics_counter_id; | 957 | u8 statistics_counter_id; |
856 | #endif | 958 | #endif |
@@ -860,13 +962,21 @@ struct tstorm_tcp_st_context_section { | |||
860 | u32 isle_start_seq; | 962 | u32 isle_start_seq; |
861 | u32 isle_end_seq; | 963 | u32 isle_end_seq; |
862 | #if defined(__BIG_ENDIAN) | 964 | #if defined(__BIG_ENDIAN) |
863 | u16 mss; | 965 | u16 second_isle_address; |
864 | u16 recent_seg_wnd; | 966 | u16 recent_seg_wnd; |
865 | #elif defined(__LITTLE_ENDIAN) | 967 | #elif defined(__LITTLE_ENDIAN) |
866 | u16 recent_seg_wnd; | 968 | u16 recent_seg_wnd; |
867 | u16 mss; | 969 | u16 second_isle_address; |
970 | #endif | ||
971 | #if defined(__BIG_ENDIAN) | ||
972 | u8 max_isles_ever_happened; | ||
973 | u8 isles_number; | ||
974 | u16 last_isle_address; | ||
975 | #elif defined(__LITTLE_ENDIAN) | ||
976 | u16 last_isle_address; | ||
977 | u8 isles_number; | ||
978 | u8 max_isles_ever_happened; | ||
868 | #endif | 979 | #endif |
869 | u32 reserved4; | ||
870 | u32 max_rt_time; | 980 | u32 max_rt_time; |
871 | #if defined(__BIG_ENDIAN) | 981 | #if defined(__BIG_ENDIAN) |
872 | u16 lsb_mac_address; | 982 | u16 lsb_mac_address; |
@@ -876,7 +986,7 @@ struct tstorm_tcp_st_context_section { | |||
876 | u16 lsb_mac_address; | 986 | u16 lsb_mac_address; |
877 | #endif | 987 | #endif |
878 | u32 msb_mac_address; | 988 | u32 msb_mac_address; |
879 | u32 reserved2; | 989 | u32 rightmost_received_seq; |
880 | }; | 990 | }; |
881 | 991 | ||
882 | /* | 992 | /* |
@@ -951,7 +1061,7 @@ struct tstorm_iscsi_st_context_section { | |||
951 | u8 scratchpad_idx; | 1061 | u8 scratchpad_idx; |
952 | struct iscsi_term_vars term_vars; | 1062 | struct iscsi_term_vars term_vars; |
953 | #endif | 1063 | #endif |
954 | u32 reserved2; | 1064 | u32 process_nxt; |
955 | }; | 1065 | }; |
956 | 1066 | ||
957 | /* | 1067 | /* |
@@ -1174,24 +1284,12 @@ struct xstorm_iscsi_ag_context { | |||
1174 | #endif | 1284 | #endif |
1175 | #if defined(__BIG_ENDIAN) | 1285 | #if defined(__BIG_ENDIAN) |
1176 | u8 cdu_reserved; | 1286 | u8 cdu_reserved; |
1177 | u8 agg_vars4; | 1287 | u8 __agg_vars4; |
1178 | #define XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF (0x3<<0) | ||
1179 | #define XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF_SHIFT 0 | ||
1180 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF (0x3<<2) | ||
1181 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF_SHIFT 2 | ||
1182 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX18_CF_EN (0x1<<4) | ||
1183 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX18_CF_EN_SHIFT 4 | ||
1184 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF_EN (0x1<<5) | ||
1185 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF_EN_SHIFT 5 | ||
1186 | #define __XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF_EN (0x1<<6) | ||
1187 | #define __XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF_EN_SHIFT 6 | ||
1188 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF_EN (0x1<<7) | ||
1189 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF_EN_SHIFT 7 | ||
1190 | u8 agg_vars3; | 1288 | u8 agg_vars3; |
1191 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0) | 1289 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0) |
1192 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0 | 1290 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0 |
1193 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF (0x3<<6) | 1291 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF (0x3<<6) |
1194 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF_SHIFT 6 | 1292 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF_SHIFT 6 |
1195 | u8 agg_vars2; | 1293 | u8 agg_vars2; |
1196 | #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF (0x3<<0) | 1294 | #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF (0x3<<0) |
1197 | #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_SHIFT 0 | 1295 | #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_SHIFT 0 |
@@ -1222,21 +1320,9 @@ struct xstorm_iscsi_ag_context { | |||
1222 | u8 agg_vars3; | 1320 | u8 agg_vars3; |
1223 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0) | 1321 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0) |
1224 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0 | 1322 | #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0 |
1225 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF (0x3<<6) | 1323 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF (0x3<<6) |
1226 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF_SHIFT 6 | 1324 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF_SHIFT 6 |
1227 | u8 agg_vars4; | 1325 | u8 __agg_vars4; |
1228 | #define XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF (0x3<<0) | ||
1229 | #define XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF_SHIFT 0 | ||
1230 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF (0x3<<2) | ||
1231 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF_SHIFT 2 | ||
1232 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX18_CF_EN (0x1<<4) | ||
1233 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX18_CF_EN_SHIFT 4 | ||
1234 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF_EN (0x1<<5) | ||
1235 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX19_CF_EN_SHIFT 5 | ||
1236 | #define __XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF_EN (0x1<<6) | ||
1237 | #define __XSTORM_ISCSI_AG_CONTEXT_R2TQ_PROD_CF_EN_SHIFT 6 | ||
1238 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF_EN (0x1<<7) | ||
1239 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX21_CF_EN_SHIFT 7 | ||
1240 | u8 cdu_reserved; | 1326 | u8 cdu_reserved; |
1241 | #endif | 1327 | #endif |
1242 | u32 more_to_send; | 1328 | u32 more_to_send; |
@@ -1270,8 +1356,8 @@ struct xstorm_iscsi_ag_context { | |||
1270 | #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0 | 1356 | #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0 |
1271 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG (0x1<<3) | 1357 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG (0x1<<3) |
1272 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG_SHIFT 3 | 1358 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG_SHIFT 3 |
1273 | #define XSTORM_ISCSI_AG_CONTEXT_AUX18_CF (0x3<<4) | 1359 | #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF (0x3<<4) |
1274 | #define XSTORM_ISCSI_AG_CONTEXT_AUX18_CF_SHIFT 4 | 1360 | #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF_SHIFT 4 |
1275 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3 (0x3<<6) | 1361 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3 (0x3<<6) |
1276 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3_SHIFT 6 | 1362 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3_SHIFT 6 |
1277 | #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF (0x3<<8) | 1363 | #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF (0x3<<8) |
@@ -1286,8 +1372,8 @@ struct xstorm_iscsi_ag_context { | |||
1286 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG_SHIFT 13 | 1372 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG_SHIFT 13 |
1287 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG (0x1<<14) | 1373 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG (0x1<<14) |
1288 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG_SHIFT 14 | 1374 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG_SHIFT 14 |
1289 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX2_FLAG (0x1<<15) | 1375 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN (0x1<<15) |
1290 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX2_FLAG_SHIFT 15 | 1376 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN_SHIFT 15 |
1291 | u8 agg_val3_th; | 1377 | u8 agg_val3_th; |
1292 | u8 agg_vars6; | 1378 | u8 agg_vars6; |
1293 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE6 (0x7<<0) | 1379 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE6 (0x7<<0) |
@@ -1310,8 +1396,8 @@ struct xstorm_iscsi_ag_context { | |||
1310 | #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0 | 1396 | #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0 |
1311 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG (0x1<<3) | 1397 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG (0x1<<3) |
1312 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG_SHIFT 3 | 1398 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG_SHIFT 3 |
1313 | #define XSTORM_ISCSI_AG_CONTEXT_AUX18_CF (0x3<<4) | 1399 | #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF (0x3<<4) |
1314 | #define XSTORM_ISCSI_AG_CONTEXT_AUX18_CF_SHIFT 4 | 1400 | #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF_SHIFT 4 |
1315 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3 (0x3<<6) | 1401 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3 (0x3<<6) |
1316 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3_SHIFT 6 | 1402 | #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3_SHIFT 6 |
1317 | #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF (0x3<<8) | 1403 | #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF (0x3<<8) |
@@ -1326,14 +1412,14 @@ struct xstorm_iscsi_ag_context { | |||
1326 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG_SHIFT 13 | 1412 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG_SHIFT 13 |
1327 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG (0x1<<14) | 1413 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG (0x1<<14) |
1328 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG_SHIFT 14 | 1414 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG_SHIFT 14 |
1329 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX2_FLAG (0x1<<15) | 1415 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN (0x1<<15) |
1330 | #define __XSTORM_ISCSI_AG_CONTEXT_AUX2_FLAG_SHIFT 15 | 1416 | #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN_SHIFT 15 |
1331 | #endif | 1417 | #endif |
1332 | #if defined(__BIG_ENDIAN) | 1418 | #if defined(__BIG_ENDIAN) |
1333 | u16 __agg_val11_th; | 1419 | u16 __agg_val11_th; |
1334 | u16 __agg_val11; | 1420 | u16 __gen_data; |
1335 | #elif defined(__LITTLE_ENDIAN) | 1421 | #elif defined(__LITTLE_ENDIAN) |
1336 | u16 __agg_val11; | 1422 | u16 __gen_data; |
1337 | u16 __agg_val11_th; | 1423 | u16 __agg_val11_th; |
1338 | #endif | 1424 | #endif |
1339 | #if defined(__BIG_ENDIAN) | 1425 | #if defined(__BIG_ENDIAN) |
@@ -1384,7 +1470,7 @@ struct xstorm_iscsi_ag_context { | |||
1384 | #endif | 1470 | #endif |
1385 | u32 hq_cons_tcp_seq; | 1471 | u32 hq_cons_tcp_seq; |
1386 | u32 exp_stat_sn; | 1472 | u32 exp_stat_sn; |
1387 | u32 agg_misc5; | 1473 | u32 rst_seq_num; |
1388 | }; | 1474 | }; |
1389 | 1475 | ||
1390 | /* | 1476 | /* |
@@ -1478,12 +1564,12 @@ struct tstorm_iscsi_ag_context { | |||
1478 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2 | 1564 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2 |
1479 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3) | 1565 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3) |
1480 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3 | 1566 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3 |
1481 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_CF (0x3<<4) | 1567 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF (0x3<<4) |
1482 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_CF_SHIFT 4 | 1568 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_SHIFT 4 |
1483 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG (0x1<<6) | 1569 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG (0x1<<6) |
1484 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG_SHIFT 6 | 1570 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG_SHIFT 6 |
1485 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_FLAG (0x1<<7) | 1571 | #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG (0x1<<7) |
1486 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_FLAG_SHIFT 7 | 1572 | #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG_SHIFT 7 |
1487 | u8 state; | 1573 | u8 state; |
1488 | #elif defined(__LITTLE_ENDIAN) | 1574 | #elif defined(__LITTLE_ENDIAN) |
1489 | u8 state; | 1575 | u8 state; |
@@ -1496,63 +1582,63 @@ struct tstorm_iscsi_ag_context { | |||
1496 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2 | 1582 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2 |
1497 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3) | 1583 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3) |
1498 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3 | 1584 | #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3 |
1499 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_CF (0x3<<4) | 1585 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF (0x3<<4) |
1500 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_CF_SHIFT 4 | 1586 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_SHIFT 4 |
1501 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG (0x1<<6) | 1587 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG (0x1<<6) |
1502 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG_SHIFT 6 | 1588 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG_SHIFT 6 |
1503 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_FLAG (0x1<<7) | 1589 | #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG (0x1<<7) |
1504 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_FLAG_SHIFT 7 | 1590 | #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG_SHIFT 7 |
1505 | u16 ulp_credit; | 1591 | u16 ulp_credit; |
1506 | #endif | 1592 | #endif |
1507 | #if defined(__BIG_ENDIAN) | 1593 | #if defined(__BIG_ENDIAN) |
1508 | u16 __agg_val4; | 1594 | u16 __agg_val4; |
1509 | u16 agg_vars2; | 1595 | u16 agg_vars2; |
1510 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_FLAG (0x1<<0) | 1596 | #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG (0x1<<0) |
1511 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_FLAG_SHIFT 0 | 1597 | #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG_SHIFT 0 |
1512 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_FLAG (0x1<<1) | 1598 | #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG (0x1<<1) |
1513 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_FLAG_SHIFT 1 | 1599 | #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG_SHIFT 1 |
1514 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_CF (0x3<<2) | 1600 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF (0x3<<2) |
1515 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_CF_SHIFT 2 | 1601 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_SHIFT 2 |
1516 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_CF (0x3<<4) | 1602 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF (0x3<<4) |
1517 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_CF_SHIFT 4 | 1603 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_SHIFT 4 |
1518 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF (0x3<<6) | 1604 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF (0x3<<6) |
1519 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_SHIFT 6 | 1605 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_SHIFT 6 |
1520 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF (0x3<<8) | 1606 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF (0x3<<8) |
1521 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_SHIFT 8 | 1607 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_SHIFT 8 |
1522 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG (0x1<<10) | 1608 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG (0x1<<10) |
1523 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG_SHIFT 10 | 1609 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG_SHIFT 10 |
1524 | #define TSTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN (0x1<<11) | 1610 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN (0x1<<11) |
1525 | #define TSTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN_SHIFT 11 | 1611 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN_SHIFT 11 |
1526 | #define TSTORM_ISCSI_AG_CONTEXT_AUX4_CF_EN (0x1<<12) | 1612 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN (0x1<<12) |
1527 | #define TSTORM_ISCSI_AG_CONTEXT_AUX4_CF_EN_SHIFT 12 | 1613 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN_SHIFT 12 |
1528 | #define TSTORM_ISCSI_AG_CONTEXT_AUX5_CF_EN (0x1<<13) | 1614 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN (0x1<<13) |
1529 | #define TSTORM_ISCSI_AG_CONTEXT_AUX5_CF_EN_SHIFT 13 | 1615 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN_SHIFT 13 |
1530 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN (0x1<<14) | 1616 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN (0x1<<14) |
1531 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN_SHIFT 14 | 1617 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN_SHIFT 14 |
1532 | #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN (0x1<<15) | 1618 | #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN (0x1<<15) |
1533 | #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN_SHIFT 15 | 1619 | #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN_SHIFT 15 |
1534 | #elif defined(__LITTLE_ENDIAN) | 1620 | #elif defined(__LITTLE_ENDIAN) |
1535 | u16 agg_vars2; | 1621 | u16 agg_vars2; |
1536 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_FLAG (0x1<<0) | 1622 | #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG (0x1<<0) |
1537 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_FLAG_SHIFT 0 | 1623 | #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG_SHIFT 0 |
1538 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_FLAG (0x1<<1) | 1624 | #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG (0x1<<1) |
1539 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_FLAG_SHIFT 1 | 1625 | #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG_SHIFT 1 |
1540 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_CF (0x3<<2) | 1626 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF (0x3<<2) |
1541 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX4_CF_SHIFT 2 | 1627 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_SHIFT 2 |
1542 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_CF (0x3<<4) | 1628 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF (0x3<<4) |
1543 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX5_CF_SHIFT 4 | 1629 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_SHIFT 4 |
1544 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF (0x3<<6) | 1630 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF (0x3<<6) |
1545 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_SHIFT 6 | 1631 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_SHIFT 6 |
1546 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF (0x3<<8) | 1632 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF (0x3<<8) |
1547 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_SHIFT 8 | 1633 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_SHIFT 8 |
1548 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG (0x1<<10) | 1634 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG (0x1<<10) |
1549 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG_SHIFT 10 | 1635 | #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG_SHIFT 10 |
1550 | #define TSTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN (0x1<<11) | 1636 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN (0x1<<11) |
1551 | #define TSTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN_SHIFT 11 | 1637 | #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN_SHIFT 11 |
1552 | #define TSTORM_ISCSI_AG_CONTEXT_AUX4_CF_EN (0x1<<12) | 1638 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN (0x1<<12) |
1553 | #define TSTORM_ISCSI_AG_CONTEXT_AUX4_CF_EN_SHIFT 12 | 1639 | #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN_SHIFT 12 |
1554 | #define TSTORM_ISCSI_AG_CONTEXT_AUX5_CF_EN (0x1<<13) | 1640 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN (0x1<<13) |
1555 | #define TSTORM_ISCSI_AG_CONTEXT_AUX5_CF_EN_SHIFT 13 | 1641 | #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN_SHIFT 13 |
1556 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN (0x1<<14) | 1642 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN (0x1<<14) |
1557 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN_SHIFT 14 | 1643 | #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN_SHIFT 14 |
1558 | #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN (0x1<<15) | 1644 | #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN (0x1<<15) |
@@ -1563,100 +1649,6 @@ struct tstorm_iscsi_ag_context { | |||
1563 | }; | 1649 | }; |
1564 | 1650 | ||
1565 | /* | 1651 | /* |
1566 | * The iscsi aggregative context of Cstorm | ||
1567 | */ | ||
1568 | struct cstorm_iscsi_ag_context { | ||
1569 | u32 agg_vars1; | ||
1570 | #define CSTORM_ISCSI_AG_CONTEXT_STATE (0xFF<<0) | ||
1571 | #define CSTORM_ISCSI_AG_CONTEXT_STATE_SHIFT 0 | ||
1572 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<8) | ||
1573 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 8 | ||
1574 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<9) | ||
1575 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 9 | ||
1576 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<10) | ||
1577 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 10 | ||
1578 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<11) | ||
1579 | #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 11 | ||
1580 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_SE_CF_EN (0x1<<12) | ||
1581 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_SE_CF_EN_SHIFT 12 | ||
1582 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_INV_CF_EN (0x1<<13) | ||
1583 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_INV_CF_EN_SHIFT 13 | ||
1584 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF (0x3<<14) | ||
1585 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF_SHIFT 14 | ||
1586 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED66 (0x3<<16) | ||
1587 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED66_SHIFT 16 | ||
1588 | #define __CSTORM_ISCSI_AG_CONTEXT_FIN_RECEIVED_CF_EN (0x1<<18) | ||
1589 | #define __CSTORM_ISCSI_AG_CONTEXT_FIN_RECEIVED_CF_EN_SHIFT 18 | ||
1590 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION0_CF_EN (0x1<<19) | ||
1591 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION0_CF_EN_SHIFT 19 | ||
1592 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION1_CF_EN (0x1<<20) | ||
1593 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION1_CF_EN_SHIFT 20 | ||
1594 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION2_CF_EN (0x1<<21) | ||
1595 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION2_CF_EN_SHIFT 21 | ||
1596 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF_EN (0x1<<22) | ||
1597 | #define __CSTORM_ISCSI_AG_CONTEXT_PENDING_COMPLETION3_CF_EN_SHIFT 22 | ||
1598 | #define __CSTORM_ISCSI_AG_CONTEXT_REL_SEQ_RULE (0x7<<23) | ||
1599 | #define __CSTORM_ISCSI_AG_CONTEXT_REL_SEQ_RULE_SHIFT 23 | ||
1600 | #define CSTORM_ISCSI_AG_CONTEXT_HQ_PROD_RULE (0x3<<26) | ||
1601 | #define CSTORM_ISCSI_AG_CONTEXT_HQ_PROD_RULE_SHIFT 26 | ||
1602 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED52 (0x3<<28) | ||
1603 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED52_SHIFT 28 | ||
1604 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED53 (0x3<<30) | ||
1605 | #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED53_SHIFT 30 | ||
1606 | #if defined(__BIG_ENDIAN) | ||
1607 | u8 __aux1_th; | ||
1608 | u8 __aux1_val; | ||
1609 | u16 __agg_vars2; | ||
1610 | #elif defined(__LITTLE_ENDIAN) | ||
1611 | u16 __agg_vars2; | ||
1612 | u8 __aux1_val; | ||
1613 | u8 __aux1_th; | ||
1614 | #endif | ||
1615 | u32 rel_seq; | ||
1616 | u32 rel_seq_th; | ||
1617 | #if defined(__BIG_ENDIAN) | ||
1618 | u16 hq_cons; | ||
1619 | u16 hq_prod; | ||
1620 | #elif defined(__LITTLE_ENDIAN) | ||
1621 | u16 hq_prod; | ||
1622 | u16 hq_cons; | ||
1623 | #endif | ||
1624 | #if defined(__BIG_ENDIAN) | ||
1625 | u8 __reserved62; | ||
1626 | u8 __reserved61; | ||
1627 | u8 __reserved60; | ||
1628 | u8 __reserved59; | ||
1629 | #elif defined(__LITTLE_ENDIAN) | ||
1630 | u8 __reserved59; | ||
1631 | u8 __reserved60; | ||
1632 | u8 __reserved61; | ||
1633 | u8 __reserved62; | ||
1634 | #endif | ||
1635 | #if defined(__BIG_ENDIAN) | ||
1636 | u16 __reserved64; | ||
1637 | u16 __cq_u_prod0; | ||
1638 | #elif defined(__LITTLE_ENDIAN) | ||
1639 | u16 __cq_u_prod0; | ||
1640 | u16 __reserved64; | ||
1641 | #endif | ||
1642 | u32 __cq_u_prod1; | ||
1643 | #if defined(__BIG_ENDIAN) | ||
1644 | u16 __agg_vars3; | ||
1645 | u16 __cq_u_prod2; | ||
1646 | #elif defined(__LITTLE_ENDIAN) | ||
1647 | u16 __cq_u_prod2; | ||
1648 | u16 __agg_vars3; | ||
1649 | #endif | ||
1650 | #if defined(__BIG_ENDIAN) | ||
1651 | u16 __aux2_th; | ||
1652 | u16 __cq_u_prod3; | ||
1653 | #elif defined(__LITTLE_ENDIAN) | ||
1654 | u16 __cq_u_prod3; | ||
1655 | u16 __aux2_th; | ||
1656 | #endif | ||
1657 | }; | ||
1658 | |||
1659 | /* | ||
1660 | * The iscsi aggregative context of Ustorm | 1652 | * The iscsi aggregative context of Ustorm |
1661 | */ | 1653 | */ |
1662 | struct ustorm_iscsi_ag_context { | 1654 | struct ustorm_iscsi_ag_context { |
@@ -1746,8 +1738,8 @@ struct ustorm_iscsi_ag_context { | |||
1746 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE_SHIFT 0 | 1738 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE_SHIFT 0 |
1747 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3) | 1739 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3) |
1748 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3 | 1740 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3 |
1749 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG (0x1<<6) | 1741 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG (0x1<<6) |
1750 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG_SHIFT 6 | 1742 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG_SHIFT 6 |
1751 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1 (0x1<<7) | 1743 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1 (0x1<<7) |
1752 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1_SHIFT 7 | 1744 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1_SHIFT 7 |
1753 | u8 decision_rule_enable_bits; | 1745 | u8 decision_rule_enable_bits; |
@@ -1790,8 +1782,8 @@ struct ustorm_iscsi_ag_context { | |||
1790 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE_SHIFT 0 | 1782 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE_SHIFT 0 |
1791 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3) | 1783 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3) |
1792 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3 | 1784 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3 |
1793 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG (0x1<<6) | 1785 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG (0x1<<6) |
1794 | #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG_SHIFT 6 | 1786 | #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG_SHIFT 6 |
1795 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1 (0x1<<7) | 1787 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1 (0x1<<7) |
1796 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1_SHIFT 7 | 1788 | #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1_SHIFT 7 |
1797 | u16 __reserved2; | 1789 | u16 __reserved2; |
@@ -1799,22 +1791,6 @@ struct ustorm_iscsi_ag_context { | |||
1799 | }; | 1791 | }; |
1800 | 1792 | ||
1801 | /* | 1793 | /* |
1802 | * Timers connection context | ||
1803 | */ | ||
1804 | struct iscsi_timers_block_context { | ||
1805 | u32 __reserved_0; | ||
1806 | u32 __reserved_1; | ||
1807 | u32 __reserved_2; | ||
1808 | u32 flags; | ||
1809 | #define __ISCSI_TIMERS_BLOCK_CONTEXT_NUM_OF_ACTIVE_TIMERS (0x3<<0) | ||
1810 | #define __ISCSI_TIMERS_BLOCK_CONTEXT_NUM_OF_ACTIVE_TIMERS_SHIFT 0 | ||
1811 | #define ISCSI_TIMERS_BLOCK_CONTEXT_CONN_VALID_FLG (0x1<<2) | ||
1812 | #define ISCSI_TIMERS_BLOCK_CONTEXT_CONN_VALID_FLG_SHIFT 2 | ||
1813 | #define __ISCSI_TIMERS_BLOCK_CONTEXT_RESERVED0 (0x1FFFFFFF<<3) | ||
1814 | #define __ISCSI_TIMERS_BLOCK_CONTEXT_RESERVED0_SHIFT 3 | ||
1815 | }; | ||
1816 | |||
1817 | /* | ||
1818 | * Ethernet context section, shared in TOE, RDMA and ISCSI | 1794 | * Ethernet context section, shared in TOE, RDMA and ISCSI |
1819 | */ | 1795 | */ |
1820 | struct xstorm_eth_context_section { | 1796 | struct xstorm_eth_context_section { |
@@ -1963,7 +1939,7 @@ struct xstorm_tcp_context_section { | |||
1963 | #endif | 1939 | #endif |
1964 | #if defined(__BIG_ENDIAN) | 1940 | #if defined(__BIG_ENDIAN) |
1965 | u8 original_nagle_1b; | 1941 | u8 original_nagle_1b; |
1966 | u8 ts_enabled_1b; | 1942 | u8 ts_enabled; |
1967 | u16 tcp_params; | 1943 | u16 tcp_params; |
1968 | #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE (0xFF<<0) | 1944 | #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE (0xFF<<0) |
1969 | #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE_SHIFT 0 | 1945 | #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE_SHIFT 0 |
@@ -1973,8 +1949,8 @@ struct xstorm_tcp_context_section { | |||
1973 | #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED_SHIFT 9 | 1949 | #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED_SHIFT 9 |
1974 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED (0x1<<10) | 1950 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED (0x1<<10) |
1975 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED_SHIFT 10 | 1951 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED_SHIFT 10 |
1976 | #define XSTORM_TCP_CONTEXT_SECTION_KA_STATE (0x1<<11) | 1952 | #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV (0x1<<11) |
1977 | #define XSTORM_TCP_CONTEXT_SECTION_KA_STATE_SHIFT 11 | 1953 | #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV_SHIFT 11 |
1978 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<12) | 1954 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<12) |
1979 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 12 | 1955 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 12 |
1980 | #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED (0x1<<13) | 1956 | #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED (0x1<<13) |
@@ -1991,15 +1967,15 @@ struct xstorm_tcp_context_section { | |||
1991 | #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED_SHIFT 9 | 1967 | #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED_SHIFT 9 |
1992 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED (0x1<<10) | 1968 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED (0x1<<10) |
1993 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED_SHIFT 10 | 1969 | #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED_SHIFT 10 |
1994 | #define XSTORM_TCP_CONTEXT_SECTION_KA_STATE (0x1<<11) | 1970 | #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV (0x1<<11) |
1995 | #define XSTORM_TCP_CONTEXT_SECTION_KA_STATE_SHIFT 11 | 1971 | #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV_SHIFT 11 |
1996 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<12) | 1972 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<12) |
1997 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 12 | 1973 | #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 12 |
1998 | #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED (0x1<<13) | 1974 | #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED (0x1<<13) |
1999 | #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED_SHIFT 13 | 1975 | #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED_SHIFT 13 |
2000 | #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER (0x3<<14) | 1976 | #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER (0x3<<14) |
2001 | #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER_SHIFT 14 | 1977 | #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER_SHIFT 14 |
2002 | u8 ts_enabled_1b; | 1978 | u8 ts_enabled; |
2003 | u8 original_nagle_1b; | 1979 | u8 original_nagle_1b; |
2004 | #endif | 1980 | #endif |
2005 | #if defined(__BIG_ENDIAN) | 1981 | #if defined(__BIG_ENDIAN) |
@@ -2030,8 +2006,8 @@ struct xstorm_common_context_section { | |||
2030 | #define XSTORM_COMMON_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 1 | 2006 | #define XSTORM_COMMON_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 1 |
2031 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID (0x1F<<2) | 2007 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID (0x1F<<2) |
2032 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID_SHIFT 2 | 2008 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID_SHIFT 2 |
2033 | #define XSTORM_COMMON_CONTEXT_SECTION_RESERVED0 (0x1<<7) | 2009 | #define XSTORM_COMMON_CONTEXT_SECTION_DCB_EXISTS (0x1<<7) |
2034 | #define XSTORM_COMMON_CONTEXT_SECTION_RESERVED0_SHIFT 7 | 2010 | #define XSTORM_COMMON_CONTEXT_SECTION_DCB_EXISTS_SHIFT 7 |
2035 | u8 ip_version_1b; | 2011 | u8 ip_version_1b; |
2036 | #elif defined(__LITTLE_ENDIAN) | 2012 | #elif defined(__LITTLE_ENDIAN) |
2037 | u8 ip_version_1b; | 2013 | u8 ip_version_1b; |
@@ -2042,8 +2018,8 @@ struct xstorm_common_context_section { | |||
2042 | #define XSTORM_COMMON_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 1 | 2018 | #define XSTORM_COMMON_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 1 |
2043 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID (0x1F<<2) | 2019 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID (0x1F<<2) |
2044 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID_SHIFT 2 | 2020 | #define XSTORM_COMMON_CONTEXT_SECTION_STATISTICS_COUNTER_ID_SHIFT 2 |
2045 | #define XSTORM_COMMON_CONTEXT_SECTION_RESERVED0 (0x1<<7) | 2021 | #define XSTORM_COMMON_CONTEXT_SECTION_DCB_EXISTS (0x1<<7) |
2046 | #define XSTORM_COMMON_CONTEXT_SECTION_RESERVED0_SHIFT 7 | 2022 | #define XSTORM_COMMON_CONTEXT_SECTION_DCB_EXISTS_SHIFT 7 |
2047 | u16 reserved; | 2023 | u16 reserved; |
2048 | #endif | 2024 | #endif |
2049 | }; | 2025 | }; |
@@ -2284,7 +2260,7 @@ struct iscsi_context { | |||
2284 | struct tstorm_iscsi_ag_context tstorm_ag_context; | 2260 | struct tstorm_iscsi_ag_context tstorm_ag_context; |
2285 | struct cstorm_iscsi_ag_context cstorm_ag_context; | 2261 | struct cstorm_iscsi_ag_context cstorm_ag_context; |
2286 | struct ustorm_iscsi_ag_context ustorm_ag_context; | 2262 | struct ustorm_iscsi_ag_context ustorm_ag_context; |
2287 | struct iscsi_timers_block_context timers_context; | 2263 | struct timers_block_context timers_context; |
2288 | struct regpair upb_context; | 2264 | struct regpair upb_context; |
2289 | struct xstorm_iscsi_st_context xstorm_st_context; | 2265 | struct xstorm_iscsi_st_context xstorm_st_context; |
2290 | struct regpair xpb_context; | 2266 | struct regpair xpb_context; |
@@ -2434,16 +2410,16 @@ struct l5cm_packet_size { | |||
2434 | * l5cm connection parameters | 2410 | * l5cm connection parameters |
2435 | */ | 2411 | */ |
2436 | union l5cm_reduce_param_union { | 2412 | union l5cm_reduce_param_union { |
2437 | u32 passive_side_scramble_key; | 2413 | u32 opaque1; |
2438 | u32 pcs_id; | 2414 | u32 opaque2; |
2439 | }; | 2415 | }; |
2440 | 2416 | ||
2441 | /* | 2417 | /* |
2442 | * l5cm connection parameters | 2418 | * l5cm connection parameters |
2443 | */ | 2419 | */ |
2444 | struct l5cm_reduce_conn { | 2420 | struct l5cm_reduce_conn { |
2445 | union l5cm_reduce_param_union param; | 2421 | union l5cm_reduce_param_union opaque1; |
2446 | u32 isn; | 2422 | u32 opaque2; |
2447 | }; | 2423 | }; |
2448 | 2424 | ||
2449 | /* | 2425 | /* |