@@ -114,17 +114,6 @@ void i40iw_qp_post_wr(struct i40iw_qp_uk *qp)
114114 qp -> initial_ring .head = qp -> sq_ring .head ;
115115}
116116
117- /**
118- * i40iw_qp_ring_push_db - ring qp doorbell
119- * @qp: hw qp ptr
120- * @wqe_idx: wqe index
121- */
122- static void i40iw_qp_ring_push_db (struct i40iw_qp_uk * qp , u32 wqe_idx )
123- {
124- set_32bit_val (qp -> push_db , 0 , LS_32 ((wqe_idx >> 2 ), I40E_PFPE_WQEALLOC_WQE_DESC_INDEX ) | qp -> qp_id );
125- qp -> initial_ring .head = I40IW_RING_GETCURRENT_HEAD (qp -> sq_ring );
126- }
127-
128117/**
129118 * i40iw_qp_get_next_send_wqe - return next wqe ptr
130119 * @qp: hw qp ptr
@@ -426,7 +415,6 @@ static enum i40iw_status_code i40iw_inline_rdma_write(struct i40iw_qp_uk *qp,
426415 u64 * wqe ;
427416 u8 * dest , * src ;
428417 struct i40iw_inline_rdma_write * op_info ;
429- u64 * push ;
430418 u64 header = 0 ;
431419 u32 wqe_idx ;
432420 enum i40iw_status_code ret_code ;
@@ -453,7 +441,6 @@ static enum i40iw_status_code i40iw_inline_rdma_write(struct i40iw_qp_uk *qp,
453441 LS_64 (I40IWQP_OP_RDMA_WRITE , I40IWQPSQ_OPCODE ) |
454442 LS_64 (op_info -> len , I40IWQPSQ_INLINEDATALEN ) |
455443 LS_64 (1 , I40IWQPSQ_INLINEDATAFLAG ) |
456- LS_64 ((qp -> push_db ? 1 : 0 ), I40IWQPSQ_PUSHWQE ) |
457444 LS_64 (read_fence , I40IWQPSQ_READFENCE ) |
458445 LS_64 (info -> local_fence , I40IWQPSQ_LOCALFENCE ) |
459446 LS_64 (info -> signaled , I40IWQPSQ_SIGCOMPL ) |
@@ -475,14 +462,8 @@ static enum i40iw_status_code i40iw_inline_rdma_write(struct i40iw_qp_uk *qp,
475462
476463 set_64bit_val (wqe , 24 , header );
477464
478- if (qp -> push_db ) {
479- push = (u64 * )((uintptr_t )qp -> push_wqe + (wqe_idx & 0x3 ) * 0x20 );
480- memcpy (push , wqe , (op_info -> len > 16 ) ? op_info -> len + 16 : 32 );
481- i40iw_qp_ring_push_db (qp , wqe_idx );
482- } else {
483- if (post_sq )
484- i40iw_qp_post_wr (qp );
485- }
465+ if (post_sq )
466+ i40iw_qp_post_wr (qp );
486467
487468 return 0 ;
488469}
@@ -507,7 +488,6 @@ static enum i40iw_status_code i40iw_inline_send(struct i40iw_qp_uk *qp,
507488 enum i40iw_status_code ret_code ;
508489 bool read_fence = false;
509490 u8 wqe_size ;
510- u64 * push ;
511491
512492 op_info = & info -> op .inline_send ;
513493 if (op_info -> len > I40IW_MAX_INLINE_DATA_SIZE )
@@ -526,7 +506,6 @@ static enum i40iw_status_code i40iw_inline_send(struct i40iw_qp_uk *qp,
526506 LS_64 (info -> op_type , I40IWQPSQ_OPCODE ) |
527507 LS_64 (op_info -> len , I40IWQPSQ_INLINEDATALEN ) |
528508 LS_64 (1 , I40IWQPSQ_INLINEDATAFLAG ) |
529- LS_64 ((qp -> push_db ? 1 : 0 ), I40IWQPSQ_PUSHWQE ) |
530509 LS_64 (read_fence , I40IWQPSQ_READFENCE ) |
531510 LS_64 (info -> local_fence , I40IWQPSQ_LOCALFENCE ) |
532511 LS_64 (info -> signaled , I40IWQPSQ_SIGCOMPL ) |
@@ -548,14 +527,8 @@ static enum i40iw_status_code i40iw_inline_send(struct i40iw_qp_uk *qp,
548527
549528 set_64bit_val (wqe , 24 , header );
550529
551- if (qp -> push_db ) {
552- push = (u64 * )((uintptr_t )qp -> push_wqe + (wqe_idx & 0x3 ) * 0x20 );
553- memcpy (push , wqe , (op_info -> len > 16 ) ? op_info -> len + 16 : 32 );
554- i40iw_qp_ring_push_db (qp , wqe_idx );
555- } else {
556- if (post_sq )
557- i40iw_qp_post_wr (qp );
558- }
530+ if (post_sq )
531+ i40iw_qp_post_wr (qp );
559532
560533 return 0 ;
561534}
@@ -772,7 +745,6 @@ static enum i40iw_status_code i40iw_cq_poll_completion(struct i40iw_cq_uk *cq,
772745
773746 q_type = (u8 )RS_64 (qword3 , I40IW_CQ_SQ );
774747 info -> error = (bool )RS_64 (qword3 , I40IW_CQ_ERROR );
775- info -> push_dropped = (bool )RS_64 (qword3 , I40IWCQ_PSHDROP );
776748 if (info -> error ) {
777749 info -> comp_status = I40IW_COMPL_STATUS_FLUSHED ;
778750 info -> major_err = (bool )RS_64 (qword3 , I40IW_CQ_MAJERR );
@@ -951,7 +923,6 @@ enum i40iw_status_code i40iw_get_rqdepth(u32 rq_size, u8 shift, u32 *rqdepth)
951923
952924static const struct i40iw_qp_uk_ops iw_qp_uk_ops = {
953925 .iw_qp_post_wr = i40iw_qp_post_wr ,
954- .iw_qp_ring_push_db = i40iw_qp_ring_push_db ,
955926 .iw_rdma_write = i40iw_rdma_write ,
956927 .iw_rdma_read = i40iw_rdma_read ,
957928 .iw_send = i40iw_send ,
@@ -1009,11 +980,7 @@ enum i40iw_status_code i40iw_qp_uk_init(struct i40iw_qp_uk *qp,
1009980
1010981 qp -> wqe_alloc_reg = info -> wqe_alloc_reg ;
1011982 qp -> qp_id = info -> qp_id ;
1012-
1013983 qp -> sq_size = info -> sq_size ;
1014- qp -> push_db = info -> push_db ;
1015- qp -> push_wqe = info -> push_wqe ;
1016-
1017984 qp -> max_sq_frag_cnt = info -> max_sq_frag_cnt ;
1018985 sq_ring_size = qp -> sq_size << sqshift ;
1019986
0 commit comments