| .. | .. |
|---|
| 91 | 91 | tx->mr = NULL; |
|---|
| 92 | 92 | tx->sde = priv->s_sde; |
|---|
| 93 | 93 | 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 */ |
|---|
| 95 | 95 | tx->txreq.num_desc = 0; |
|---|
| 96 | 96 | /* Set the header type */ |
|---|
| 97 | 97 | tx->phdr.hdr.hdr_type = priv->hdr_type; |
|---|
| 98 | + tx->txreq.flags = 0; |
|---|
| 98 | 99 | return tx; |
|---|
| 99 | 100 | } |
|---|
| 100 | 101 | |
|---|
| .. | .. |
|---|
| 103 | 104 | return &tx->txreq; |
|---|
| 104 | 105 | } |
|---|
| 105 | 106 | |
|---|
| 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) |
|---|
| 107 | 108 | { |
|---|
| 108 | 109 | struct sdma_txreq *stx; |
|---|
| 109 | | - struct hfi1_qp_priv *priv = qp->priv; |
|---|
| 110 | 110 | |
|---|
| 111 | | - stx = iowait_get_txhead(&priv->s_iowait); |
|---|
| 111 | + stx = iowait_get_txhead(w); |
|---|
| 112 | 112 | if (stx) |
|---|
| 113 | 113 | return container_of(stx, struct verbs_txreq, txreq); |
|---|
| 114 | 114 | return NULL; |
|---|
| 115 | 115 | } |
|---|
| 116 | 116 | |
|---|
| 117 | | -static inline bool verbs_txreq_queued(struct rvt_qp *qp) |
|---|
| 117 | +static inline bool verbs_txreq_queued(struct iowait_work *w) |
|---|
| 118 | 118 | { |
|---|
| 119 | | - struct hfi1_qp_priv *priv = qp->priv; |
|---|
| 120 | | - |
|---|
| 121 | | - return iowait_packet_queued(&priv->s_iowait); |
|---|
| 119 | + return iowait_packet_queued(w); |
|---|
| 122 | 120 | } |
|---|
| 123 | 121 | |
|---|
| 124 | 122 | void hfi1_put_txreq(struct verbs_txreq *tx); |
|---|