[MLX4] bugfix: fill alt_port_num field in qp_modify
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 1 Jun 2008 17:29:33 +0000 (17:29 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 1 Jun 2008 17:29:33 +0000 (17:29 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1227 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/hca/data.c

index 2d9ff82..ae97df3 100644 (file)
@@ -701,6 +701,7 @@ to_qp_attr(
                                                break;\r
                                        }\r
                                        p_ib_qp_attr->alt_timeout                = p_ib_qp_mod->state.rtr.alternate_av.conn.local_ack_timeout; // XXX: conv\r
+                                       p_ib_qp_attr->alt_port_num              = p_ib_qp_mod->state.rtr.alternate_av.port_num;\r
                                }\r
 \r
                                // IB_QP_PKEY_INDEX \r
@@ -746,6 +747,8 @@ to_qp_attr(
                                                status = IB_ERROR;\r
                                                break;\r
                                        }\r
+                                       p_ib_qp_attr->alt_timeout               = p_ib_qp_mod->state.rtr.alternate_av.conn.local_ack_timeout; // XXX: conv\r
+                                       p_ib_qp_attr->alt_port_num              = p_ib_qp_mod->state.rtr.alternate_av.port_num;\r
                                }\r
 \r
                                // IB_QP_PKEY_INDEX \r