Message ID | 201108100927.45568.dotanb@sw.voltaire.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Index: ofed_kernel/drivers/infiniband/core/mad.c =================================================================== --- ofed_kernel.orig/drivers/infiniband/core/mad.c +++ ofed_kernel/drivers/infiniband/core/mad.c @@ -679,8 +679,7 @@ static int handle_outgoing_dr_smp(struct struct ib_wc mad_wc; struct ib_send_wr *send_wr = &mad_send_wr->send_wr; - if (device->node_type == RDMA_NODE_IB_SWITCH && - smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) + if (device->node_type == RDMA_NODE_IB_SWITCH) port_num = send_wr->wr.ud.port_num; else port_num = mad_agent_priv->agent.port_num;