Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ehca_qp.c File Reference
#include <linux/slab.h>
#include "ehca_classes.h"
#include "ehca_tools.h"
#include "ehca_qes.h"
#include "ehca_iverbs.h"
#include "hcp_if.h"
#include "hipz_fns.h"

Go to the source code of this file.

Macros

#define QP_ATTR_QUERY_NOT_SUPPORTED
 

Enumerations

enum  ehca_qp_state {
  EHCA_QPS_RESET = 1, EHCA_QPS_INIT = 2, EHCA_QPS_RTR = 3, EHCA_QPS_RTS = 5,
  EHCA_QPS_SQD = 6, EHCA_QPS_SQE = 8, EHCA_QPS_ERR = 128
}
 
enum  ib_qp_statetrans {
  IB_QPST_ANY2RESET, IB_QPST_ANY2ERR, IB_QPST_RESET2INIT, IB_QPST_INIT2RTR,
  IB_QPST_INIT2INIT, IB_QPST_RTR2RTS, IB_QPST_RTS2SQD, IB_QPST_RTS2RTS,
  IB_QPST_SQD2RTS, IB_QPST_SQE2RTS, IB_QPST_SQD2SQD, IB_QPST_MAX
}
 
enum  ehca_qp_type {
  QPT_RC = 0, QPT_UC = 1, QPT_UD = 2, QPT_SQP = 3,
  QPT_MAX
}
 

Functions

void ehca_add_to_err_list (struct ehca_qp *qp, int on_sq)
 
struct ib_qpehca_create_qp (struct ib_pd *pd, struct ib_qp_init_attr *qp_init_attr, struct ib_udata *udata)
 
struct ib_srqehca_create_srq (struct ib_pd *pd, struct ib_srq_init_attr *srq_init_attr, struct ib_udata *udata)
 
int ehca_modify_qp (struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata)
 
void ehca_recover_sqp (struct ib_qp *sqp)
 
int ehca_query_qp (struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr)
 
int ehca_modify_srq (struct ib_srq *ibsrq, struct ib_srq_attr *attr, enum ib_srq_attr_mask attr_mask, struct ib_udata *udata)
 
int ehca_query_srq (struct ib_srq *srq, struct ib_srq_attr *srq_attr)
 
int ehca_destroy_qp (struct ib_qp *qp)
 
int ehca_destroy_srq (struct ib_srq *srq)
 
int ehca_init_qp_cache (void)
 
void ehca_cleanup_qp_cache (void)
 

Macro Definition Documentation

#define QP_ATTR_QUERY_NOT_SUPPORTED
Value:
IB_QP_EN_SQD_ASYNC_NOTIFY)

Definition at line 60 of file ehca_qp.c.

Enumeration Type Documentation

Enumerator:
EHCA_QPS_RESET 
EHCA_QPS_INIT 
EHCA_QPS_RTR 
EHCA_QPS_RTS 
EHCA_QPS_SQD 
EHCA_QPS_SQE 
EHCA_QPS_ERR 

Definition at line 66 of file ehca_qp.c.

Enumerator:
QPT_RC 
QPT_UC 
QPT_UD 
QPT_SQP 
QPT_MAX 

Definition at line 153 of file ehca_qp.c.

Enumerator:
IB_QPST_ANY2RESET 
IB_QPST_ANY2ERR 
IB_QPST_RESET2INIT 
IB_QPST_INIT2RTR 
IB_QPST_INIT2INIT 
IB_QPST_RTR2RTS 
IB_QPST_RTS2SQD 
IB_QPST_RTS2RTS 
IB_QPST_SQD2RTS 
IB_QPST_SQE2RTS 
IB_QPST_SQD2SQD 
IB_QPST_MAX 

Definition at line 79 of file ehca_qp.c.

Function Documentation

void ehca_add_to_err_list ( struct ehca_qp qp,
int  on_sq 
)

Definition at line 400 of file ehca_qp.c.

void ehca_cleanup_qp_cache ( void  )

Definition at line 2257 of file ehca_qp.c.

struct ib_qp* ehca_create_qp ( struct ib_pd pd,
struct ib_qp_init_attr qp_init_attr,
struct ib_udata udata 
)
read

Definition at line 955 of file ehca_qp.c.

struct ib_srq* ehca_create_srq ( struct ib_pd pd,
struct ib_srq_init_attr srq_init_attr,
struct ib_udata udata 
)
read

Definition at line 968 of file ehca_qp.c.

int ehca_destroy_qp ( struct ib_qp qp)

Definition at line 2232 of file ehca_qp.c.

int ehca_destroy_srq ( struct ib_srq srq)

Definition at line 2239 of file ehca_qp.c.

int ehca_init_qp_cache ( void  )

Definition at line 2246 of file ehca_qp.c.

int ehca_modify_qp ( struct ib_qp ibqp,
struct ib_qp_attr attr,
int  attr_mask,
struct ib_udata udata 
)

Definition at line 1782 of file ehca_qp.c.

int ehca_modify_srq ( struct ib_srq ibsrq,
struct ib_srq_attr attr,
enum ib_srq_attr_mask  attr_mask,
struct ib_udata udata 
)

Definition at line 2036 of file ehca_qp.c.

int ehca_query_qp ( struct ib_qp qp,
struct ib_qp_attr qp_attr,
int  qp_attr_mask,
struct ib_qp_init_attr qp_init_attr 
)

Definition at line 1891 of file ehca_qp.c.

int ehca_query_srq ( struct ib_srq srq,
struct ib_srq_attr srq_attr 
)

Definition at line 2094 of file ehca_qp.c.

void ehca_recover_sqp ( struct ib_qp sqp)

Definition at line 1847 of file ehca_qp.c.