hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/infiniband/hw/hfi1/verbs_txreq.h
....@@ -91,10 +91,11 @@
9191 tx->mr = NULL;
9292 tx->sde = priv->s_sde;
9393 tx->psc = priv->s_sendcontext;
94
- /* so that we can test if the sdma decriptors are there */
94
+ /* so that we can test if the sdma descriptors are there */
9595 tx->txreq.num_desc = 0;
9696 /* Set the header type */
9797 tx->phdr.hdr.hdr_type = priv->hdr_type;
98
+ tx->txreq.flags = 0;
9899 return tx;
99100 }
100101
....@@ -103,22 +104,19 @@
103104 return &tx->txreq;
104105 }
105106
106
-static inline struct verbs_txreq *get_waiting_verbs_txreq(struct rvt_qp *qp)
107
+static inline struct verbs_txreq *get_waiting_verbs_txreq(struct iowait_work *w)
107108 {
108109 struct sdma_txreq *stx;
109
- struct hfi1_qp_priv *priv = qp->priv;
110110
111
- stx = iowait_get_txhead(&priv->s_iowait);
111
+ stx = iowait_get_txhead(w);
112112 if (stx)
113113 return container_of(stx, struct verbs_txreq, txreq);
114114 return NULL;
115115 }
116116
117
-static inline bool verbs_txreq_queued(struct rvt_qp *qp)
117
+static inline bool verbs_txreq_queued(struct iowait_work *w)
118118 {
119
- struct hfi1_qp_priv *priv = qp->priv;
120
-
121
- return iowait_packet_queued(&priv->s_iowait);
119
+ return iowait_packet_queued(w);
122120 }
123121
124122 void hfi1_put_txreq(struct verbs_txreq *tx);