diff options
Diffstat (limited to 'drivers/net/ehea/ehea_qmr.h')
-rw-r--r-- | drivers/net/ehea/ehea_qmr.h | 16 |
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 | ||
146 | struct ehea_cqe { | 148 | struct 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 | ||
325 | static inline void ehea_inc_cq(struct ehea_cq *cq) | ||
326 | { | ||
327 | hw_qeit_inc(&cq->hw_queue); | ||
328 | } | ||
329 | |||
323 | static inline void ehea_inc_rq1(struct ehea_qp *qp) | 330 | static 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 | ||
328 | static inline struct ehea_cqe *ehea_poll_cq(struct ehea_cq *my_cq) | 335 | static 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 | ||
357 | int ehea_destroy_qp(struct ehea_qp *qp); | 364 | int ehea_destroy_qp(struct ehea_qp *qp); |
358 | 365 | ||
359 | int ehea_reg_mr_adapter(struct ehea_adapter *adapter); | 366 | int ehea_reg_kernel_mr(struct ehea_adapter *adapter, struct ehea_mr *mr); |
367 | |||
368 | int ehea_gen_smr(struct ehea_adapter *adapter, struct ehea_mr *old_mr, | ||
369 | struct ehea_mr *shared_mr); | ||
370 | |||
371 | int ehea_rem_mr(struct ehea_mr *mr); | ||
360 | 372 | ||
361 | void ehea_error_data(struct ehea_adapter *adapter, u64 res_handle); | 373 | void ehea_error_data(struct ehea_adapter *adapter, u64 res_handle); |
362 | 374 | ||