#include "erdma_verbs.h"
static void *get_next_valid_cqe(struct erdma_cq *cq)
{ … }
static void notify_cq(struct erdma_cq *cq, u8 solcitied)
{ … }
int erdma_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags)
{ … }
static const enum ib_wc_opcode wc_mapping_table[ERDMA_NUM_OPCODES] = …;
static const struct { … } map_cqe_status[ERDMA_NUM_WC_STATUS] = …;
#define ERDMA_POLLCQ_NO_QP …
static int erdma_poll_one_cqe(struct erdma_cq *cq, struct ib_wc *wc)
{ … }
int erdma_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
{ … }