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

Go to the source code of this file.

Data Structures

struct  mlx4_cqe
 
struct  mlx4_err_cqe
 

Enumerations

enum  { MLX4_CQE_VLAN_PRESENT_MASK = 1 << 29, MLX4_CQE_QPN_MASK = 0xffffff }
 
enum  { MLX4_CQE_OWNER_MASK = 0x80, MLX4_CQE_IS_SEND_MASK = 0x40, MLX4_CQE_OPCODE_MASK = 0x1f }
 
enum  {
  MLX4_CQE_SYNDROME_LOCAL_LENGTH_ERR = 0x01, MLX4_CQE_SYNDROME_LOCAL_QP_OP_ERR = 0x02, MLX4_CQE_SYNDROME_LOCAL_PROT_ERR = 0x04, MLX4_CQE_SYNDROME_WR_FLUSH_ERR = 0x05,
  MLX4_CQE_SYNDROME_MW_BIND_ERR = 0x06, MLX4_CQE_SYNDROME_BAD_RESP_ERR = 0x10, MLX4_CQE_SYNDROME_LOCAL_ACCESS_ERR = 0x11, MLX4_CQE_SYNDROME_REMOTE_INVAL_REQ_ERR = 0x12,
  MLX4_CQE_SYNDROME_REMOTE_ACCESS_ERR = 0x13, MLX4_CQE_SYNDROME_REMOTE_OP_ERR = 0x14, MLX4_CQE_SYNDROME_TRANSPORT_RETRY_EXC_ERR = 0x15, MLX4_CQE_SYNDROME_RNR_RETRY_EXC_ERR = 0x16,
  MLX4_CQE_SYNDROME_REMOTE_ABORTED_ERR = 0x22
}
 
enum  {
  MLX4_CQE_STATUS_IPV4 = 1 << 6, MLX4_CQE_STATUS_IPV4F = 1 << 7, MLX4_CQE_STATUS_IPV6 = 1 << 8, MLX4_CQE_STATUS_IPV4OPT = 1 << 9,
  MLX4_CQE_STATUS_TCP = 1 << 10, MLX4_CQE_STATUS_UDP = 1 << 11, MLX4_CQE_STATUS_IPOK = 1 << 12
}
 
enum  { MLX4_CQE_LLC = 1, MLX4_CQE_SNAP = 1 << 1, MLX4_CQE_BAD_FCS = 1 << 4 }
 
enum  { MLX4_CQ_DB_REQ_NOT_SOL = 1 << 24, MLX4_CQ_DB_REQ_NOT = 2 << 24 }
 

Functions

int mlx4_cq_modify (struct mlx4_dev *dev, struct mlx4_cq *cq, u16 count, u16 period)
 
int mlx4_cq_resize (struct mlx4_dev *dev, struct mlx4_cq *cq, int entries, struct mlx4_mtt *mtt)
 

Enumeration Type Documentation

anonymous enum
Enumerator:
MLX4_CQE_VLAN_PRESENT_MASK 
MLX4_CQE_QPN_MASK 

Definition at line 67 of file cq.h.

anonymous enum
Enumerator:
MLX4_CQE_OWNER_MASK 
MLX4_CQE_IS_SEND_MASK 
MLX4_CQE_OPCODE_MASK 

Definition at line 72 of file cq.h.

anonymous enum
Enumerator:
MLX4_CQE_SYNDROME_LOCAL_LENGTH_ERR 
MLX4_CQE_SYNDROME_LOCAL_QP_OP_ERR 
MLX4_CQE_SYNDROME_LOCAL_PROT_ERR 
MLX4_CQE_SYNDROME_WR_FLUSH_ERR 
MLX4_CQE_SYNDROME_MW_BIND_ERR 
MLX4_CQE_SYNDROME_BAD_RESP_ERR 
MLX4_CQE_SYNDROME_LOCAL_ACCESS_ERR 
MLX4_CQE_SYNDROME_REMOTE_INVAL_REQ_ERR 
MLX4_CQE_SYNDROME_REMOTE_ACCESS_ERR 
MLX4_CQE_SYNDROME_REMOTE_OP_ERR 
MLX4_CQE_SYNDROME_TRANSPORT_RETRY_EXC_ERR 
MLX4_CQE_SYNDROME_RNR_RETRY_EXC_ERR 
MLX4_CQE_SYNDROME_REMOTE_ABORTED_ERR 

Definition at line 78 of file cq.h.

anonymous enum
Enumerator:
MLX4_CQE_STATUS_IPV4 
MLX4_CQE_STATUS_IPV4F 
MLX4_CQE_STATUS_IPV6 
MLX4_CQE_STATUS_IPV4OPT 
MLX4_CQE_STATUS_TCP 
MLX4_CQE_STATUS_UDP 
MLX4_CQE_STATUS_IPOK 

Definition at line 94 of file cq.h.

anonymous enum
Enumerator:
MLX4_CQE_LLC 
MLX4_CQE_SNAP 
MLX4_CQE_BAD_FCS 

Definition at line 104 of file cq.h.

anonymous enum
Enumerator:
MLX4_CQ_DB_REQ_NOT_SOL 
MLX4_CQ_DB_REQ_NOT 

Definition at line 140 of file cq.h.

Function Documentation

int mlx4_cq_modify ( struct mlx4_dev dev,
struct mlx4_cq cq,
u16  count,
u16  period 
)

Definition at line 119 of file cq.c.

int mlx4_cq_resize ( struct mlx4_dev dev,
struct mlx4_cq cq,
int  entries,
struct mlx4_mtt mtt 
)

Definition at line 143 of file cq.c.