Go to the documentation of this file.
34 #include <linux/slab.h>
62 ipoib_warn(priv,
"failed to modify QP, ret = %d\n", ret);
70 ipoib_warn(priv,
"failed to attach to multicast group, ret = %d\n", ret);
98 ipoib_warn(priv,
"failed to modify QP to init, ret = %d\n", ret);
107 ipoib_warn(priv,
"failed to modify QP to RTR, ret = %d\n", ret);
117 ipoib_warn(priv,
"failed to modify QP to RTS, ret = %d\n", ret);
126 ipoib_warn(priv,
"Failed to modify QP to RESET state\n");
149 if (IS_ERR(priv->
pd)) {
155 if (IS_ERR(priv->
mr)) {
164 if (ipoib_cm_has_srq(dev))
180 goto out_free_recv_cq;
184 goto out_free_send_cq;
199 if (IS_ERR(priv->
qp)) {
201 goto out_free_send_cq;
204 priv->
dev->dev_addr[1] = (priv->
qp->qp_num >> 16) & 0xff;
205 priv->
dev->dev_addr[2] = (priv->
qp->qp_num >> 8) & 0xff;
206 priv->
dev->dev_addr[3] = (priv->
qp->qp_num ) & 0xff;
209 priv->
tx_sge[i].lkey = priv->
mr->lkey;
215 priv->
rx_sge[0].lkey = priv->
mr->lkey;
219 priv->
rx_sge[1].lkey = priv->
mr->lkey;
223 priv->
rx_wr.num_sge = 1;
258 ipoib_warn(priv,
"ib_cq_destroy (send) failed\n");
261 ipoib_warn(priv,
"ib_cq_destroy (recv) failed\n");