Commit ede6bc04 authored by Dotan Barak's avatar Dotan Barak Committed by Roland Dreier

IPoIB/cm: Clean up initialization of QP attr in ipoib_cm_create_tx_qp()

Make the way QP is being created in ipoib_cm_create_tx_qp()
consistent with ipoib_cm_create_rx_qp().
Signed-off-by: default avatarDotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 2e61c646
...@@ -810,14 +810,16 @@ static int ipoib_cm_rep_handler(struct ib_cm_id *cm_id, struct ib_cm_event *even ...@@ -810,14 +810,16 @@ static int ipoib_cm_rep_handler(struct ib_cm_id *cm_id, struct ib_cm_event *even
static struct ib_qp *ipoib_cm_create_tx_qp(struct net_device *dev, struct ib_cq *cq) static struct ib_qp *ipoib_cm_create_tx_qp(struct net_device *dev, struct ib_cq *cq)
{ {
struct ipoib_dev_priv *priv = netdev_priv(dev); struct ipoib_dev_priv *priv = netdev_priv(dev);
struct ib_qp_init_attr attr = {}; struct ib_qp_init_attr attr = {
attr.recv_cq = priv->cq; .send_cq = cq,
attr.srq = priv->cm.srq; .recv_cq = priv->cq,
attr.cap.max_send_wr = ipoib_sendq_size; .srq = priv->cm.srq,
attr.cap.max_send_sge = 1; .cap.max_send_wr = ipoib_sendq_size,
attr.sq_sig_type = IB_SIGNAL_ALL_WR; .cap.max_send_sge = 1,
attr.qp_type = IB_QPT_RC; .sq_sig_type = IB_SIGNAL_ALL_WR,
attr.send_cq = cq; .qp_type = IB_QPT_RC,
};
return ib_create_qp(priv->pd, &attr); return ib_create_qp(priv->pd, &attr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment