Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
nes_context.h File Reference

Go to the source code of this file.

Data Structures

struct  nes_qp_context
 

Macros

#define NES_QPCONTEXT_MISC_IWARP_VER_MASK   0x00000003
 
#define NES_QPCONTEXT_MISC_IWARP_VER_SHIFT   0
 
#define NES_QPCONTEXT_MISC_EFB_SIZE_MASK   0x000000C0
 
#define NES_QPCONTEXT_MISC_EFB_SIZE_SHIFT   6
 
#define NES_QPCONTEXT_MISC_RQ_SIZE_MASK   0x00000300
 
#define NES_QPCONTEXT_MISC_RQ_SIZE_SHIFT   8
 
#define NES_QPCONTEXT_MISC_SQ_SIZE_MASK   0x00000c00
 
#define NES_QPCONTEXT_MISC_SQ_SIZE_SHIFT   10
 
#define NES_QPCONTEXT_MISC_PCI_FCN_MASK   0x00007000
 
#define NES_QPCONTEXT_MISC_PCI_FCN_SHIFT   12
 
#define NES_QPCONTEXT_MISC_DUP_ACKS_MASK   0x00070000
 
#define NES_QPCONTEXT_MISC_DUP_ACKS_SHIFT   16
 
#define NES_QPCONTEXT_MISC2_TTL_MASK   0x000000ff
 
#define NES_QPCONTEXT_MISC2_TTL_SHIFT   0
 
#define NES_QPCONTEXT_MISC2_HOP_LIMIT_MASK   0x000000ff
 
#define NES_QPCONTEXT_MISC2_HOP_LIMIT_SHIFT   0
 
#define NES_QPCONTEXT_MISC2_LIMIT_MASK   0x00000300
 
#define NES_QPCONTEXT_MISC2_LIMIT_SHIFT   8
 
#define NES_QPCONTEXT_MISC2_NIC_INDEX_MASK   0x0000fc00
 
#define NES_QPCONTEXT_MISC2_NIC_INDEX_SHIFT   10
 
#define NES_QPCONTEXT_MISC2_SRC_IP_MASK   0x001f0000
 
#define NES_QPCONTEXT_MISC2_SRC_IP_SHIFT   16
 
#define NES_QPCONTEXT_MISC2_TOS_MASK   0xff000000
 
#define NES_QPCONTEXT_MISC2_TOS_SHIFT   24
 
#define NES_QPCONTEXT_MISC2_TRAFFIC_CLASS_MASK   0xff000000
 
#define NES_QPCONTEXT_MISC2_TRAFFIC_CLASS_SHIFT   24
 
#define NES_QPCONTEXT_TCPFLOW_FLOW_LABEL_MASK   0x000fffff
 
#define NES_QPCONTEXT_TCPFLOW_FLOW_LABEL_SHIFT   0
 
#define NES_QPCONTEXT_TCPFLOW_TCP_STATE_MASK   0xf0000000
 
#define NES_QPCONTEXT_TCPFLOW_TCP_STATE_SHIFT   28
 
#define NES_QPCONTEXT_PDWSCALE_RCV_WSCALE_MASK   0x0000000f
 
#define NES_QPCONTEXT_PDWSCALE_RCV_WSCALE_SHIFT   0
 
#define NES_QPCONTEXT_PDWSCALE_SND_WSCALE_MASK   0x00000f00
 
#define NES_QPCONTEXT_PDWSCALE_SND_WSCALE_SHIFT   8
 
#define NES_QPCONTEXT_PDWSCALE_PDINDEX_MASK   0xffff0000
 
#define NES_QPCONTEXT_PDWSCALE_PDINDEX_SHIFT   16
 
#define NES_QPCONTEXT_KEEPALIVE_DELTA_MASK   0x0000ffff
 
#define NES_QPCONTEXT_KEEPALIVE_DELTA_SHIFT   0
 
#define NES_QPCONTEXT_KEEPALIVE_PROBE_CNT_MASK   0x00ff0000
 
#define NES_QPCONTEXT_KEEPALIVE_PROBE_CNT_SHIFT   16
 
#define NES_QPCONTEXT_KEEPALIVE_INTV_MASK   0xff000000
 
#define NES_QPCONTEXT_KEEPALIVE_INTV_SHIFT   24
 
#define NES_QPCONTEXT_ORDIRD_ORDSIZE_MASK   0x0000007f
 
#define NES_QPCONTEXT_ORDIRD_ORDSIZE_SHIFT   0
 
#define NES_QPCONTEXT_ORDIRD_IRDSIZE_MASK   0x00030000
 
#define NES_QPCONTEXT_ORDIRD_IRDSIZE_SHIFT   16
 
#define NES_QPCONTEXT_ORDIRD_IWARP_MODE_MASK   0x30000000
 
#define NES_QPCONTEXT_ORDIRD_IWARP_MODE_SHIFT   28
 

Enumerations

enum  nes_qp_context_misc_bits {
  NES_QPCONTEXT_MISC_RX_WQE_SIZE = 0x00000004, NES_QPCONTEXT_MISC_IPV4 = 0x00000008, NES_QPCONTEXT_MISC_DO_NOT_FRAG = 0x00000010, NES_QPCONTEXT_MISC_INSERT_VLAN = 0x00000020,
  NES_QPCONTEXT_MISC_DROS = 0x00008000, NES_QPCONTEXT_MISC_WSCALE = 0x00080000, NES_QPCONTEXT_MISC_KEEPALIVE = 0x00100000, NES_QPCONTEXT_MISC_TIMESTAMP = 0x00200000,
  NES_QPCONTEXT_MISC_SACK = 0x00400000, NES_QPCONTEXT_MISC_RDMA_WRITE_EN = 0x00800000, NES_QPCONTEXT_MISC_RDMA_READ_EN = 0x01000000, NES_QPCONTEXT_MISC_WBIND_EN = 0x10000000,
  NES_QPCONTEXT_MISC_FAST_REGISTER_EN = 0x20000000, NES_QPCONTEXT_MISC_PRIV_EN = 0x40000000, NES_QPCONTEXT_MISC_NO_NAGLE = 0x80000000
}
 
enum  nes_qp_acc_wq_sizes { HCONTEXT_TSA_WQ_SIZE_4 = 0, HCONTEXT_TSA_WQ_SIZE_32 = 1, HCONTEXT_TSA_WQ_SIZE_128 = 2, HCONTEXT_TSA_WQ_SIZE_512 = 3 }
 
enum  nes_qp_tcp_state { NES_QPCONTEXT_TCPSTATE_CLOSED = 1, NES_QPCONTEXT_TCPSTATE_EST = 5, NES_QPCONTEXT_TCPSTATE_TIME_WAIT = 11 }
 
enum  nes_ord_ird_bits {
  NES_QPCONTEXT_ORDIRD_WRPDU = 0x02000000, NES_QPCONTEXT_ORDIRD_LSMM_PRESENT = 0x04000000, NES_QPCONTEXT_ORDIRD_ALSMM = 0x08000000, NES_QPCONTEXT_ORDIRD_AAH = 0x40000000,
  NES_QPCONTEXT_ORDIRD_RNMC = 0x80000000
}
 
enum  nes_iwarp_qp_state {
  NES_QPCONTEXT_IWARP_STATE_NONEXIST = 0, NES_QPCONTEXT_IWARP_STATE_IDLE = 1, NES_QPCONTEXT_IWARP_STATE_RTS = 2, NES_QPCONTEXT_IWARP_STATE_CLOSING = 3,
  NES_QPCONTEXT_IWARP_STATE_TERMINATE = 5, NES_QPCONTEXT_IWARP_STATE_ERROR = 6
}
 

Macro Definition Documentation

#define NES_QPCONTEXT_KEEPALIVE_DELTA_MASK   0x0000ffff

Definition at line 160 of file nes_context.h.

#define NES_QPCONTEXT_KEEPALIVE_DELTA_SHIFT   0

Definition at line 161 of file nes_context.h.

#define NES_QPCONTEXT_KEEPALIVE_INTV_MASK   0xff000000

Definition at line 164 of file nes_context.h.

#define NES_QPCONTEXT_KEEPALIVE_INTV_SHIFT   24

Definition at line 165 of file nes_context.h.

#define NES_QPCONTEXT_KEEPALIVE_PROBE_CNT_MASK   0x00ff0000

Definition at line 162 of file nes_context.h.

#define NES_QPCONTEXT_KEEPALIVE_PROBE_CNT_SHIFT   16

Definition at line 163 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_HOP_LIMIT_MASK   0x000000ff

Definition at line 126 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_HOP_LIMIT_SHIFT   0

Definition at line 127 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_LIMIT_MASK   0x00000300

Definition at line 128 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_LIMIT_SHIFT   8

Definition at line 129 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_NIC_INDEX_MASK   0x0000fc00

Definition at line 130 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_NIC_INDEX_SHIFT   10

Definition at line 131 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_SRC_IP_MASK   0x001f0000

Definition at line 132 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_SRC_IP_SHIFT   16

Definition at line 133 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_TOS_MASK   0xff000000

Definition at line 134 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_TOS_SHIFT   24

Definition at line 135 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_TRAFFIC_CLASS_MASK   0xff000000

Definition at line 136 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_TRAFFIC_CLASS_SHIFT   24

Definition at line 137 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_TTL_MASK   0x000000ff

Definition at line 124 of file nes_context.h.

#define NES_QPCONTEXT_MISC2_TTL_SHIFT   0

Definition at line 125 of file nes_context.h.

#define NES_QPCONTEXT_MISC_DUP_ACKS_MASK   0x00070000

Definition at line 95 of file nes_context.h.

#define NES_QPCONTEXT_MISC_DUP_ACKS_SHIFT   16

Definition at line 96 of file nes_context.h.

#define NES_QPCONTEXT_MISC_EFB_SIZE_MASK   0x000000C0

Definition at line 87 of file nes_context.h.

#define NES_QPCONTEXT_MISC_EFB_SIZE_SHIFT   6

Definition at line 88 of file nes_context.h.

#define NES_QPCONTEXT_MISC_IWARP_VER_MASK   0x00000003

Definition at line 85 of file nes_context.h.

#define NES_QPCONTEXT_MISC_IWARP_VER_SHIFT   0

Definition at line 86 of file nes_context.h.

#define NES_QPCONTEXT_MISC_PCI_FCN_MASK   0x00007000

Definition at line 93 of file nes_context.h.

#define NES_QPCONTEXT_MISC_PCI_FCN_SHIFT   12

Definition at line 94 of file nes_context.h.

#define NES_QPCONTEXT_MISC_RQ_SIZE_MASK   0x00000300

Definition at line 89 of file nes_context.h.

#define NES_QPCONTEXT_MISC_RQ_SIZE_SHIFT   8

Definition at line 90 of file nes_context.h.

#define NES_QPCONTEXT_MISC_SQ_SIZE_MASK   0x00000c00

Definition at line 91 of file nes_context.h.

#define NES_QPCONTEXT_MISC_SQ_SIZE_SHIFT   10

Definition at line 92 of file nes_context.h.

#define NES_QPCONTEXT_ORDIRD_IRDSIZE_MASK   0x00030000

Definition at line 170 of file nes_context.h.

#define NES_QPCONTEXT_ORDIRD_IRDSIZE_SHIFT   16

Definition at line 171 of file nes_context.h.

#define NES_QPCONTEXT_ORDIRD_IWARP_MODE_MASK   0x30000000

Definition at line 172 of file nes_context.h.

#define NES_QPCONTEXT_ORDIRD_IWARP_MODE_SHIFT   28

Definition at line 173 of file nes_context.h.

#define NES_QPCONTEXT_ORDIRD_ORDSIZE_MASK   0x0000007f

Definition at line 168 of file nes_context.h.

#define NES_QPCONTEXT_ORDIRD_ORDSIZE_SHIFT   0

Definition at line 169 of file nes_context.h.

#define NES_QPCONTEXT_PDWSCALE_PDINDEX_MASK   0xffff0000

Definition at line 156 of file nes_context.h.

#define NES_QPCONTEXT_PDWSCALE_PDINDEX_SHIFT   16

Definition at line 157 of file nes_context.h.

#define NES_QPCONTEXT_PDWSCALE_RCV_WSCALE_MASK   0x0000000f

Definition at line 152 of file nes_context.h.

#define NES_QPCONTEXT_PDWSCALE_RCV_WSCALE_SHIFT   0

Definition at line 153 of file nes_context.h.

#define NES_QPCONTEXT_PDWSCALE_SND_WSCALE_MASK   0x00000f00

Definition at line 154 of file nes_context.h.

#define NES_QPCONTEXT_PDWSCALE_SND_WSCALE_SHIFT   8

Definition at line 155 of file nes_context.h.

#define NES_QPCONTEXT_TCPFLOW_FLOW_LABEL_MASK   0x000fffff

Definition at line 140 of file nes_context.h.

#define NES_QPCONTEXT_TCPFLOW_FLOW_LABEL_SHIFT   0

Definition at line 141 of file nes_context.h.

#define NES_QPCONTEXT_TCPFLOW_TCP_STATE_MASK   0xf0000000

Definition at line 142 of file nes_context.h.

#define NES_QPCONTEXT_TCPFLOW_TCP_STATE_SHIFT   28

Definition at line 143 of file nes_context.h.

Enumeration Type Documentation

Enumerator:
NES_QPCONTEXT_IWARP_STATE_NONEXIST 
NES_QPCONTEXT_IWARP_STATE_IDLE 
NES_QPCONTEXT_IWARP_STATE_RTS 
NES_QPCONTEXT_IWARP_STATE_CLOSING 
NES_QPCONTEXT_IWARP_STATE_TERMINATE 
NES_QPCONTEXT_IWARP_STATE_ERROR 

Definition at line 183 of file nes_context.h.

Enumerator:
NES_QPCONTEXT_ORDIRD_WRPDU 
NES_QPCONTEXT_ORDIRD_LSMM_PRESENT 
NES_QPCONTEXT_ORDIRD_ALSMM 
NES_QPCONTEXT_ORDIRD_AAH 
NES_QPCONTEXT_ORDIRD_RNMC 

Definition at line 175 of file nes_context.h.

Enumerator:
HCONTEXT_TSA_WQ_SIZE_4 
HCONTEXT_TSA_WQ_SIZE_32 
HCONTEXT_TSA_WQ_SIZE_128 
HCONTEXT_TSA_WQ_SIZE_512 

Definition at line 116 of file nes_context.h.

Enumerator:
NES_QPCONTEXT_MISC_RX_WQE_SIZE 
NES_QPCONTEXT_MISC_IPV4 
NES_QPCONTEXT_MISC_DO_NOT_FRAG 
NES_QPCONTEXT_MISC_INSERT_VLAN 
NES_QPCONTEXT_MISC_DROS 
NES_QPCONTEXT_MISC_WSCALE 
NES_QPCONTEXT_MISC_KEEPALIVE 
NES_QPCONTEXT_MISC_TIMESTAMP 
NES_QPCONTEXT_MISC_SACK 
NES_QPCONTEXT_MISC_RDMA_WRITE_EN 
NES_QPCONTEXT_MISC_RDMA_READ_EN 
NES_QPCONTEXT_MISC_WBIND_EN 
NES_QPCONTEXT_MISC_FAST_REGISTER_EN 
NES_QPCONTEXT_MISC_PRIV_EN 
NES_QPCONTEXT_MISC_NO_NAGLE 

Definition at line 98 of file nes_context.h.

Enumerator:
NES_QPCONTEXT_TCPSTATE_CLOSED 
NES_QPCONTEXT_TCPSTATE_EST 
NES_QPCONTEXT_TCPSTATE_TIME_WAIT 

Definition at line 145 of file nes_context.h.