Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
qp.h File Reference
#include <linux/types.h>
#include <linux/mlx4/device.h>

Go to the source code of this file.

Data Structures

struct  mlx4_rss_context
 
struct  mlx4_qp_path
 
struct  mlx4_qp_context
 
struct  mlx4_wqe_ctrl_seg
 
struct  mlx4_wqe_mlx_seg
 
struct  mlx4_wqe_datagram_seg
 
struct  mlx4_wqe_lso_seg
 
struct  mlx4_wqe_bind_seg
 
struct  mlx4_wqe_fmr_seg
 
struct  mlx4_wqe_fmr_ext_seg
 
struct  mlx4_wqe_local_inval_seg
 
struct  mlx4_wqe_raddr_seg
 
struct  mlx4_wqe_atomic_seg
 
struct  mlx4_wqe_masked_atomic_seg
 
struct  mlx4_wqe_data_seg
 
struct  mlx4_wqe_inline_seg
 

Macros

#define MLX4_INVALID_LKEY   0x100
 
#define MLX4_FW_VER_WQE_CTRL_NEC   mlx4_fw_ver(2, 2, 232)
 

Enumerations

enum  mlx4_qp_optpar {
  MLX4_QP_OPTPAR_ALT_ADDR_PATH = 1 << 0, MLX4_QP_OPTPAR_RRE = 1 << 1, MLX4_QP_OPTPAR_RAE = 1 << 2, MLX4_QP_OPTPAR_RWE = 1 << 3,
  MLX4_QP_OPTPAR_PKEY_INDEX = 1 << 4, MLX4_QP_OPTPAR_Q_KEY = 1 << 5, MLX4_QP_OPTPAR_RNR_TIMEOUT = 1 << 6, MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH = 1 << 7,
  MLX4_QP_OPTPAR_SRA_MAX = 1 << 8, MLX4_QP_OPTPAR_RRA_MAX = 1 << 9, MLX4_QP_OPTPAR_PM_STATE = 1 << 10, MLX4_QP_OPTPAR_RETRY_COUNT = 1 << 12,
  MLX4_QP_OPTPAR_RNR_RETRY = 1 << 13, MLX4_QP_OPTPAR_ACK_TIMEOUT = 1 << 14, MLX4_QP_OPTPAR_SCHED_QUEUE = 1 << 16, MLX4_QP_OPTPAR_COUNTER_INDEX = 1 << 20
}
 
enum  mlx4_qp_state {
  MLX4_QP_STATE_RST = 0, MLX4_QP_STATE_INIT = 1, MLX4_QP_STATE_RTR = 2, MLX4_QP_STATE_RTS = 3,
  MLX4_QP_STATE_SQER = 4, MLX4_QP_STATE_SQD = 5, MLX4_QP_STATE_ERR = 6, MLX4_QP_STATE_SQ_DRAINING = 7,
  MLX4_QP_NUM_STATE
}
 
enum  {
  MLX4_QP_ST_RC = 0x0, MLX4_QP_ST_UC = 0x1, MLX4_QP_ST_RD = 0x2, MLX4_QP_ST_UD = 0x3,
  MLX4_QP_ST_XRC = 0x6, MLX4_QP_ST_MLX = 0x7
}
 
enum  { MLX4_QP_PM_MIGRATED = 0x3, MLX4_QP_PM_ARMED = 0x0, MLX4_QP_PM_REARM = 0x1 }
 
enum  {
  MLX4_QP_BIT_SRE = 1 << 15, MLX4_QP_BIT_SWE = 1 << 14, MLX4_QP_BIT_SAE = 1 << 13, MLX4_QP_BIT_RRE = 1 << 15,
  MLX4_QP_BIT_RWE = 1 << 14, MLX4_QP_BIT_RAE = 1 << 13, MLX4_QP_BIT_RIC = 1 << 4
}
 
enum  {
  MLX4_RSS_HASH_XOR = 0, MLX4_RSS_HASH_TOP = 1, MLX4_RSS_UDP_IPV6 = 1 << 0, MLX4_RSS_UDP_IPV4 = 1 << 1,
  MLX4_RSS_TCP_IPV6 = 1 << 2, MLX4_RSS_IPV6 = 1 << 3, MLX4_RSS_TCP_IPV4 = 1 << 4, MLX4_RSS_IPV4 = 1 << 5,
  MLX4_RSS_OFFSET_IN_QPC_PRI_PATH = 0x24, MLX4_RSS_QPC_FLAG_OFFSET = 13
}
 
enum  {
  MLX4_WQE_CTRL_NEC = 1 << 29, MLX4_WQE_CTRL_FENCE = 1 << 6, MLX4_WQE_CTRL_CQ_UPDATE = 3 << 2, MLX4_WQE_CTRL_SOLICITED = 1 << 1,
  MLX4_WQE_CTRL_IP_CSUM = 1 << 4, MLX4_WQE_CTRL_TCP_UDP_CSUM = 1 << 5, MLX4_WQE_CTRL_INS_VLAN = 1 << 6, MLX4_WQE_CTRL_STRONG_ORDER = 1 << 7,
  MLX4_WQE_CTRL_FORCE_LOOPBACK = 1 << 0
}
 
enum  { MLX4_WQE_MLX_VL15 = 1 << 17, MLX4_WQE_MLX_SLR = 1 << 16 }
 
enum  {
  MLX4_WQE_FMR_PERM_LOCAL_READ = 1 << 27, MLX4_WQE_FMR_PERM_LOCAL_WRITE = 1 << 28, MLX4_WQE_FMR_PERM_REMOTE_READ = 1 << 29, MLX4_WQE_FMR_PERM_REMOTE_WRITE = 1 << 30,
  MLX4_WQE_FMR_PERM_ATOMIC = 1 << 31
}
 
enum  { MLX4_INLINE_ALIGN = 64, MLX4_INLINE_SEG = 1 << 31 }
 

Functions

int mlx4_qp_modify (struct mlx4_dev *dev, struct mlx4_mtt *mtt, enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, struct mlx4_qp_context *context, enum mlx4_qp_optpar optpar, int sqd_event, struct mlx4_qp *qp)
 
int mlx4_qp_query (struct mlx4_dev *dev, struct mlx4_qp *qp, struct mlx4_qp_context *context)
 
int mlx4_qp_to_ready (struct mlx4_dev *dev, struct mlx4_mtt *mtt, struct mlx4_qp_context *context, struct mlx4_qp *qp, enum mlx4_qp_state *qp_state)
 
void mlx4_qp_remove (struct mlx4_dev *dev, struct mlx4_qp *qp)
 

Macro Definition Documentation

#define MLX4_FW_VER_WQE_CTRL_NEC   mlx4_fw_ver(2, 2, 232)

Definition at line 189 of file qp.h.

#define MLX4_INVALID_LKEY   0x100

Definition at line 40 of file qp.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
MLX4_QP_ST_RC 
MLX4_QP_ST_UC 
MLX4_QP_ST_RD 
MLX4_QP_ST_UD 
MLX4_QP_ST_XRC 
MLX4_QP_ST_MLX 

Definition at line 73 of file qp.h.

anonymous enum
Enumerator:
MLX4_QP_PM_MIGRATED 
MLX4_QP_PM_ARMED 
MLX4_QP_PM_REARM 

Definition at line 82 of file qp.h.

anonymous enum
Enumerator:
MLX4_QP_BIT_SRE 
MLX4_QP_BIT_SWE 
MLX4_QP_BIT_SAE 
MLX4_QP_BIT_RRE 
MLX4_QP_BIT_RWE 
MLX4_QP_BIT_RAE 
MLX4_QP_BIT_RIC 

Definition at line 88 of file qp.h.

anonymous enum
Enumerator:
MLX4_RSS_HASH_XOR 
MLX4_RSS_HASH_TOP 
MLX4_RSS_UDP_IPV6 
MLX4_RSS_UDP_IPV4 
MLX4_RSS_TCP_IPV6 
MLX4_RSS_IPV6 
MLX4_RSS_TCP_IPV4 
MLX4_RSS_IPV4 
MLX4_RSS_OFFSET_IN_QPC_PRI_PATH 
MLX4_RSS_QPC_FLAG_OFFSET 

Definition at line 100 of file qp.h.

anonymous enum
Enumerator:
MLX4_WQE_CTRL_NEC 
MLX4_WQE_CTRL_FENCE 
MLX4_WQE_CTRL_CQ_UPDATE 
MLX4_WQE_CTRL_SOLICITED 
MLX4_WQE_CTRL_IP_CSUM 
MLX4_WQE_CTRL_TCP_UDP_CSUM 
MLX4_WQE_CTRL_INS_VLAN 
MLX4_WQE_CTRL_STRONG_ORDER 
MLX4_WQE_CTRL_FORCE_LOOPBACK 

Definition at line 191 of file qp.h.

anonymous enum
Enumerator:
MLX4_WQE_MLX_VL15 
MLX4_WQE_MLX_SLR 

Definition at line 229 of file qp.h.

anonymous enum
Enumerator:
MLX4_WQE_FMR_PERM_LOCAL_READ 
MLX4_WQE_FMR_PERM_LOCAL_WRITE 
MLX4_WQE_FMR_PERM_REMOTE_READ 
MLX4_WQE_FMR_PERM_REMOTE_WRITE 
MLX4_WQE_FMR_PERM_ATOMIC 

Definition at line 277 of file qp.h.

anonymous enum
Enumerator:
MLX4_INLINE_ALIGN 
MLX4_INLINE_SEG 

Definition at line 339 of file qp.h.

Enumerator:
MLX4_QP_OPTPAR_ALT_ADDR_PATH 
MLX4_QP_OPTPAR_RRE 
MLX4_QP_OPTPAR_RAE 
MLX4_QP_OPTPAR_RWE 
MLX4_QP_OPTPAR_PKEY_INDEX 
MLX4_QP_OPTPAR_Q_KEY 
MLX4_QP_OPTPAR_RNR_TIMEOUT 
MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH 
MLX4_QP_OPTPAR_SRA_MAX 
MLX4_QP_OPTPAR_RRA_MAX 
MLX4_QP_OPTPAR_PM_STATE 
MLX4_QP_OPTPAR_RETRY_COUNT 
MLX4_QP_OPTPAR_RNR_RETRY 
MLX4_QP_OPTPAR_ACK_TIMEOUT 
MLX4_QP_OPTPAR_SCHED_QUEUE 
MLX4_QP_OPTPAR_COUNTER_INDEX 

Definition at line 42 of file qp.h.

Enumerator:
MLX4_QP_STATE_RST 
MLX4_QP_STATE_INIT 
MLX4_QP_STATE_RTR 
MLX4_QP_STATE_RTS 
MLX4_QP_STATE_SQER 
MLX4_QP_STATE_SQD 
MLX4_QP_STATE_ERR 
MLX4_QP_STATE_SQ_DRAINING 
MLX4_QP_NUM_STATE 

Definition at line 61 of file qp.h.

Function Documentation

int mlx4_qp_modify ( struct mlx4_dev dev,
struct mlx4_mtt mtt,
enum mlx4_qp_state  cur_state,
enum mlx4_qp_state  new_state,
struct mlx4_qp_context context,
enum mlx4_qp_optpar  optpar,
int  sqd_event,
struct mlx4_qp qp 
)

Definition at line 199 of file qp.c.

int mlx4_qp_query ( struct mlx4_dev dev,
struct mlx4_qp qp,
struct mlx4_qp_context context 
)

Definition at line 542 of file qp.c.

void mlx4_qp_remove ( struct mlx4_dev dev,
struct mlx4_qp qp 
)

Definition at line 393 of file qp.c.

int mlx4_qp_to_ready ( struct mlx4_dev dev,
struct mlx4_mtt mtt,
struct mlx4_qp_context context,
struct mlx4_qp qp,
enum mlx4_qp_state qp_state 
)

Definition at line 563 of file qp.c.