Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
cpl5_cmd.h File Reference
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

union  opcode_tid
 
struct  tcp_options
 
struct  cpl_pass_open_req
 
struct  cpl_pass_open_rpl
 
struct  cpl_pass_establish
 
struct  cpl_pass_accept_req
 
struct  cpl_pass_accept_rpl
 
struct  cpl_act_open_req
 
struct  cpl_act_open_rpl
 
struct  cpl_act_establish
 
struct  cpl_get_tcb
 
struct  cpl_get_tcb_rpl
 
struct  cpl_set_tcb
 
struct  cpl_set_tcb_field
 
struct  cpl_set_tcb_rpl
 
struct  cpl_pcmd
 
struct  cpl_pcmd_read
 
struct  cpl_pcmd_read_rpl
 
struct  cpl_close_con_req
 
struct  cpl_close_con_rpl
 
struct  cpl_close_listserv_req
 
struct  cpl_close_listserv_rpl
 
struct  cpl_abort_req
 
struct  cpl_abort_rpl
 
struct  cpl_peer_close
 
struct  cpl_tx_data
 
struct  cpl_tx_data_ack
 
struct  cpl_rx_data
 
struct  cpl_rx_data_ack
 
struct  cpl_rx_data_ddp
 
struct  cpl_tx_pkt
 
struct  cpl_tx_pkt_lso
 
struct  cpl_rx_pkt
 
struct  cpl_l2t_write_req
 
struct  cpl_l2t_write_rpl
 
struct  cpl_l2t_read_req
 
struct  cpl_l2t_read_rpl
 
struct  cpl_smt_write_req
 
struct  cpl_smt_write_rpl
 
struct  cpl_smt_read_req
 
struct  cpl_smt_read_rpl
 
struct  cpl_rte_delete_req
 
struct  cpl_rte_delete_rpl
 
struct  cpl_rte_write_req
 
struct  cpl_rte_write_rpl
 
struct  cpl_rte_read_req
 
struct  cpl_rte_read_rpl
 
struct  cpl_mss_change
 

Macros

#define NUM_CPL_CMDS   256
 
#define S_OPCODE   24
 
#define V_OPCODE(x)   ((x) << S_OPCODE)
 
#define G_OPCODE(x)   (((x) >> S_OPCODE) & 0xFF)
 
#define G_TID(x)   ((x) & 0xFFFFFF)
 
#define MK_OPCODE_TID(opcode, tid)   (V_OPCODE(opcode) | (tid))
 
#define OPCODE_TID(cmd)   ((cmd)->ot.opcode_tid)
 
#define GET_TID(cmd)   (G_TID(ntohl(OPCODE_TID(cmd))))
 

Enumerations

enum  CPL_opcode {
  CPL_PASS_OPEN_REQ = 0x1, CPL_PASS_OPEN_RPL = 0x2, CPL_PASS_ESTABLISH = 0x3, CPL_PASS_ACCEPT_REQ = 0xE,
  CPL_PASS_ACCEPT_RPL = 0x4, CPL_ACT_OPEN_REQ = 0x5, CPL_ACT_OPEN_RPL = 0x6, CPL_CLOSE_CON_REQ = 0x7,
  CPL_CLOSE_CON_RPL = 0x8, CPL_CLOSE_LISTSRV_REQ = 0x9, CPL_CLOSE_LISTSRV_RPL = 0xA, CPL_ABORT_REQ = 0xB,
  CPL_ABORT_RPL = 0xC, CPL_PEER_CLOSE = 0xD, CPL_ACT_ESTABLISH = 0x17, CPL_GET_TCB = 0x24,
  CPL_GET_TCB_RPL = 0x25, CPL_SET_TCB = 0x26, CPL_SET_TCB_FIELD = 0x27, CPL_SET_TCB_RPL = 0x28,
  CPL_PCMD = 0x29, CPL_PCMD_READ = 0x31, CPL_PCMD_READ_RPL = 0x32, CPL_RX_DATA = 0xA0,
  CPL_RX_DATA_DDP = 0xA1, CPL_RX_DATA_ACK = 0xA3, CPL_RX_PKT = 0xAD, CPL_RX_ISCSI_HDR = 0xAF,
  CPL_TX_DATA_ACK = 0xB0, CPL_TX_DATA = 0xB1, CPL_TX_PKT = 0xB2, CPL_TX_PKT_LSO = 0xB6,
  CPL_RTE_DELETE_REQ = 0xC0, CPL_RTE_DELETE_RPL = 0xC1, CPL_RTE_WRITE_REQ = 0xC2, CPL_RTE_WRITE_RPL = 0xD3,
  CPL_RTE_READ_REQ = 0xC3, CPL_RTE_READ_RPL = 0xC4, CPL_L2T_WRITE_REQ = 0xC5, CPL_L2T_WRITE_RPL = 0xD4,
  CPL_L2T_READ_REQ = 0xC6, CPL_L2T_READ_RPL = 0xC7, CPL_SMT_WRITE_REQ = 0xC8, CPL_SMT_WRITE_RPL = 0xD5,
  CPL_SMT_READ_REQ = 0xC9, CPL_SMT_READ_RPL = 0xCA, CPL_ARP_MISS_REQ = 0xCD, CPL_ARP_MISS_RPL = 0xCE,
  CPL_MIGRATE_C2T_REQ = 0xDC, CPL_MIGRATE_C2T_RPL = 0xDD, CPL_ERROR = 0xD7, CPL_MSS_CHANGE = 0xE1,
  CPL_PASS_OPEN_REQ = 0x1, CPL_PASS_ACCEPT_RPL = 0x2, CPL_ACT_OPEN_REQ = 0x3, CPL_SET_TCB = 0x4,
  CPL_SET_TCB_FIELD = 0x5, CPL_GET_TCB = 0x6, CPL_PCMD = 0x7, CPL_CLOSE_CON_REQ = 0x8,
  CPL_CLOSE_LISTSRV_REQ = 0x9, CPL_ABORT_REQ = 0xA, CPL_ABORT_RPL = 0xB, CPL_TX_DATA = 0xC,
  CPL_RX_DATA_ACK = 0xD, CPL_TX_PKT = 0xE, CPL_RTE_DELETE_REQ = 0xF, CPL_RTE_WRITE_REQ = 0x10,
  CPL_RTE_READ_REQ = 0x11, CPL_L2T_WRITE_REQ = 0x12, CPL_L2T_READ_REQ = 0x13, CPL_SMT_WRITE_REQ = 0x14,
  CPL_SMT_READ_REQ = 0x15, CPL_TX_PKT_LSO = 0x16, CPL_PCMD_READ = 0x17, CPL_BARRIER = 0x18,
  CPL_TID_RELEASE = 0x1A, CPL_CLOSE_LISTSRV_RPL = 0x20, CPL_ERROR = 0x21, CPL_GET_TCB_RPL = 0x22,
  CPL_L2T_WRITE_RPL = 0x23, CPL_PCMD_READ_RPL = 0x24, CPL_PCMD_RPL = 0x25, CPL_PEER_CLOSE = 0x26,
  CPL_RTE_DELETE_RPL = 0x27, CPL_RTE_WRITE_RPL = 0x28, CPL_RX_DDP_COMPLETE = 0x29, CPL_RX_PHYS_ADDR = 0x2A,
  CPL_RX_PKT = 0x2B, CPL_RX_URG_NOTIFY = 0x2C, CPL_SET_TCB_RPL = 0x2D, CPL_SMT_WRITE_RPL = 0x2E,
  CPL_TX_DATA_ACK = 0x2F, CPL_ABORT_REQ_RSS = 0x30, CPL_ABORT_RPL_RSS = 0x31, CPL_CLOSE_CON_RPL = 0x32,
  CPL_ISCSI_HDR = 0x33, CPL_L2T_READ_RPL = 0x34, CPL_RDMA_CQE = 0x35, CPL_RDMA_CQE_READ_RSP = 0x36,
  CPL_RDMA_CQE_ERR = 0x37, CPL_RTE_READ_RPL = 0x38, CPL_RX_DATA = 0x39, CPL_ACT_OPEN_RPL = 0x40,
  CPL_PASS_OPEN_RPL = 0x41, CPL_RX_DATA_DDP = 0x42, CPL_SMT_READ_RPL = 0x43, CPL_ACT_ESTABLISH = 0x50,
  CPL_PASS_ESTABLISH = 0x51, CPL_PASS_ACCEPT_REQ = 0x70, CPL_ASYNC_NOTIF = 0x80, CPL_TX_DMA_ACK = 0xA0,
  CPL_RDMA_READ_REQ = 0xA1, CPL_RDMA_TERMINATE = 0xA2, CPL_TRACE_PKT = 0xA3, CPL_RDMA_EC_STATUS = 0xA5,
  NUM_CPL_CMDS
}
 
enum  CPL_error {
  CPL_ERR_NONE = 0, CPL_ERR_TCAM_PARITY = 1, CPL_ERR_TCAM_FULL = 3, CPL_ERR_CONN_RESET = 20,
  CPL_ERR_CONN_EXIST = 22, CPL_ERR_ARP_MISS = 23, CPL_ERR_BAD_SYN = 24, CPL_ERR_CONN_TIMEDOUT = 30,
  CPL_ERR_XMIT_TIMEDOUT = 31, CPL_ERR_PERSIST_TIMEDOUT = 32, CPL_ERR_FINWAIT2_TIMEDOUT = 33, CPL_ERR_KEEPALIVE_TIMEDOUT = 34,
  CPL_ERR_ABORT_FAILED = 42, CPL_ERR_GENERAL = 99, CPL_ERR_NONE = 0, CPL_ERR_TCAM_PARITY = 1,
  CPL_ERR_TCAM_FULL = 3, CPL_ERR_CONN_RESET = 20, CPL_ERR_CONN_EXIST = 22, CPL_ERR_ARP_MISS = 23,
  CPL_ERR_BAD_SYN = 24, CPL_ERR_CONN_TIMEDOUT = 30, CPL_ERR_XMIT_TIMEDOUT = 31, CPL_ERR_PERSIST_TIMEDOUT = 32,
  CPL_ERR_FINWAIT2_TIMEDOUT = 33, CPL_ERR_KEEPALIVE_TIMEDOUT = 34, CPL_ERR_RTX_NEG_ADVICE = 35, CPL_ERR_PERSIST_NEG_ADVICE = 36,
  CPL_ERR_ABORT_FAILED = 42, CPL_ERR_GENERAL = 99, CPL_ERR_NONE = 0, CPL_ERR_TCAM_FULL = 3,
  CPL_ERR_BAD_LENGTH = 15, CPL_ERR_BAD_ROUTE = 18, CPL_ERR_CONN_RESET = 20, CPL_ERR_CONN_EXIST_SYNRECV = 21,
  CPL_ERR_CONN_EXIST = 22, CPL_ERR_ARP_MISS = 23, CPL_ERR_BAD_SYN = 24, CPL_ERR_CONN_TIMEDOUT = 30,
  CPL_ERR_XMIT_TIMEDOUT = 31, CPL_ERR_PERSIST_TIMEDOUT = 32, CPL_ERR_FINWAIT2_TIMEDOUT = 33, CPL_ERR_KEEPALIVE_TIMEDOUT = 34,
  CPL_ERR_RTX_NEG_ADVICE = 35, CPL_ERR_PERSIST_NEG_ADVICE = 36, CPL_ERR_ABORT_FAILED = 42, CPL_ERR_IWARP_FLM = 50
}
 
enum  { CPL_CONN_POLICY_AUTO = 0, CPL_CONN_POLICY_ASK = 1, CPL_CONN_POLICY_DENY = 3 }
 
enum  {
  ULP_MODE_NONE = 0, ULP_MODE_TCPDDP = 1, ULP_MODE_ISCSI = 2, ULP_MODE_IWARP = 3,
  ULP_MODE_SSL = 4
}
 
enum  { CPL_PASS_OPEN_ACCEPT, CPL_PASS_OPEN_REJECT }
 
enum  { CPL_ABORT_SEND_RST = 0, CPL_ABORT_NO_RST, CPL_ABORT_POST_CLOSE_REQ = 2 }
 
enum  { CPL_ETH_II, CPL_ETH_II_VLAN, CPL_ETH_802_3, CPL_ETH_802_3_VLAN }
 

Macro Definition Documentation

#define G_OPCODE (   x)    (((x) >> S_OPCODE) & 0xFF)

Definition at line 168 of file cpl5_cmd.h.

#define G_TID (   x)    ((x) & 0xFFFFFF)

Definition at line 169 of file cpl5_cmd.h.

#define GET_TID (   cmd)    (G_TID(ntohl(OPCODE_TID(cmd))))

Definition at line 177 of file cpl5_cmd.h.

#define MK_OPCODE_TID (   opcode,
  tid 
)    (V_OPCODE(opcode) | (tid))

Definition at line 172 of file cpl5_cmd.h.

#define NUM_CPL_CMDS   256

Definition at line 110 of file cpl5_cmd.h.

#define OPCODE_TID (   cmd)    ((cmd)->ot.opcode_tid)

Definition at line 174 of file cpl5_cmd.h.

#define S_OPCODE   24

Definition at line 166 of file cpl5_cmd.h.

#define V_OPCODE (   x)    ((x) << S_OPCODE)

Definition at line 167 of file cpl5_cmd.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CPL_CONN_POLICY_AUTO 
CPL_CONN_POLICY_ASK 
CPL_CONN_POLICY_DENY 

Definition at line 129 of file cpl5_cmd.h.

anonymous enum
Enumerator:
ULP_MODE_NONE 
ULP_MODE_TCPDDP 
ULP_MODE_ISCSI 
ULP_MODE_IWARP 
ULP_MODE_SSL 

Definition at line 135 of file cpl5_cmd.h.

anonymous enum
Enumerator:
CPL_PASS_OPEN_ACCEPT 
CPL_PASS_OPEN_REJECT 

Definition at line 143 of file cpl5_cmd.h.

anonymous enum
Enumerator:
CPL_ABORT_SEND_RST 
CPL_ABORT_NO_RST 
CPL_ABORT_POST_CLOSE_REQ 

Definition at line 148 of file cpl5_cmd.h.

anonymous enum
Enumerator:
CPL_ETH_II 
CPL_ETH_II_VLAN 
CPL_ETH_802_3 
CPL_ETH_802_3_VLAN 

Definition at line 154 of file cpl5_cmd.h.

enum CPL_error
Enumerator:
CPL_ERR_NONE 
CPL_ERR_TCAM_PARITY 
CPL_ERR_TCAM_FULL 
CPL_ERR_CONN_RESET 
CPL_ERR_CONN_EXIST 
CPL_ERR_ARP_MISS 
CPL_ERR_BAD_SYN 
CPL_ERR_CONN_TIMEDOUT 
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