diff options
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r-- | drivers/infiniband/core/cm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index fe1171226c13..00c90d4f27bb 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c | |||
@@ -3671,7 +3671,8 @@ error: spin_unlock_irqrestore(&cm_id_priv->lock, flags); | |||
3671 | } | 3671 | } |
3672 | EXPORT_SYMBOL(ib_send_cm_sidr_rep); | 3672 | EXPORT_SYMBOL(ib_send_cm_sidr_rep); |
3673 | 3673 | ||
3674 | static void cm_format_sidr_rep_event(struct cm_work *work) | 3674 | static void cm_format_sidr_rep_event(struct cm_work *work, |
3675 | const struct cm_id_private *cm_id_priv) | ||
3675 | { | 3676 | { |
3676 | struct cm_sidr_rep_msg *sidr_rep_msg; | 3677 | struct cm_sidr_rep_msg *sidr_rep_msg; |
3677 | struct ib_cm_sidr_rep_event_param *param; | 3678 | struct ib_cm_sidr_rep_event_param *param; |
@@ -3684,6 +3685,7 @@ static void cm_format_sidr_rep_event(struct cm_work *work) | |||
3684 | param->qpn = be32_to_cpu(cm_sidr_rep_get_qpn(sidr_rep_msg)); | 3685 | param->qpn = be32_to_cpu(cm_sidr_rep_get_qpn(sidr_rep_msg)); |
3685 | param->info = &sidr_rep_msg->info; | 3686 | param->info = &sidr_rep_msg->info; |
3686 | param->info_len = sidr_rep_msg->info_length; | 3687 | param->info_len = sidr_rep_msg->info_length; |
3688 | param->sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; | ||
3687 | work->cm_event.private_data = &sidr_rep_msg->private_data; | 3689 | work->cm_event.private_data = &sidr_rep_msg->private_data; |
3688 | } | 3690 | } |
3689 | 3691 | ||
@@ -3707,7 +3709,7 @@ static int cm_sidr_rep_handler(struct cm_work *work) | |||
3707 | ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); | 3709 | ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); |
3708 | spin_unlock_irq(&cm_id_priv->lock); | 3710 | spin_unlock_irq(&cm_id_priv->lock); |
3709 | 3711 | ||
3710 | cm_format_sidr_rep_event(work); | 3712 | cm_format_sidr_rep_event(work, cm_id_priv); |
3711 | cm_process_work(cm_id_priv, work); | 3713 | cm_process_work(cm_id_priv, work); |
3712 | return 0; | 3714 | return 0; |
3713 | out: | 3715 | out: |