aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea_qmr.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ehea/ehea_qmr.h')
-rw-r--r--drivers/net/ehea/ehea_qmr.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/net/ehea/ehea_qmr.h b/drivers/net/ehea/ehea_qmr.h
index 1ff60983504d..c0eb3e03a102 100644
--- a/drivers/net/ehea/ehea_qmr.h
+++ b/drivers/net/ehea/ehea_qmr.h
@@ -142,6 +142,8 @@ struct ehea_rwqe {
142#define EHEA_CQE_STAT_ERR_MASK 0x721F 142#define EHEA_CQE_STAT_ERR_MASK 0x721F
143#define EHEA_CQE_STAT_FAT_ERR_MASK 0x1F 143#define EHEA_CQE_STAT_FAT_ERR_MASK 0x1F
144#define EHEA_CQE_STAT_ERR_TCP 0x4000 144#define EHEA_CQE_STAT_ERR_TCP 0x4000
145#define EHEA_CQE_STAT_ERR_IP 0x2000
146#define EHEA_CQE_STAT_ERR_CRC 0x1000
145 147
146struct ehea_cqe { 148struct ehea_cqe {
147 u64 wr_id; /* work request ID from WQE */ 149 u64 wr_id; /* work request ID from WQE */
@@ -320,6 +322,11 @@ static inline struct ehea_cqe *ehea_poll_rq1(struct ehea_qp *qp, int *wqe_index)
320 return hw_qeit_get_valid(queue); 322 return hw_qeit_get_valid(queue);
321} 323}
322 324
325static inline void ehea_inc_cq(struct ehea_cq *cq)
326{
327 hw_qeit_inc(&cq->hw_queue);
328}
329
323static inline void ehea_inc_rq1(struct ehea_qp *qp) 330static inline void ehea_inc_rq1(struct ehea_qp *qp)
324{ 331{
325 hw_qeit_inc(&qp->hw_rqueue1); 332 hw_qeit_inc(&qp->hw_rqueue1);
@@ -327,7 +334,7 @@ static inline void ehea_inc_rq1(struct ehea_qp *qp)
327 334
328static inline struct ehea_cqe *ehea_poll_cq(struct ehea_cq *my_cq) 335static inline struct ehea_cqe *ehea_poll_cq(struct ehea_cq *my_cq)
329{ 336{
330 return hw_qeit_get_inc_valid(&my_cq->hw_queue); 337 return hw_qeit_get_valid(&my_cq->hw_queue);
331} 338}
332 339
333#define EHEA_CQ_REGISTER_ORIG 0 340#define EHEA_CQ_REGISTER_ORIG 0
@@ -356,7 +363,12 @@ struct ehea_qp *ehea_create_qp(struct ehea_adapter * adapter, u32 pd,
356 363
357int ehea_destroy_qp(struct ehea_qp *qp); 364int ehea_destroy_qp(struct ehea_qp *qp);
358 365
359int ehea_reg_mr_adapter(struct ehea_adapter *adapter); 366int ehea_reg_kernel_mr(struct ehea_adapter *adapter, struct ehea_mr *mr);
367
368int ehea_gen_smr(struct ehea_adapter *adapter, struct ehea_mr *old_mr,
369 struct ehea_mr *shared_mr);
370
371int ehea_rem_mr(struct ehea_mr *mr);
360 372
361void ehea_error_data(struct ehea_adapter *adapter, u64 res_handle); 373void ehea_error_data(struct ehea_adapter *adapter, u64 res_handle);
362 374