[HCA] Set QP modify masks even for mandatory fields as THH depends on it.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 10 Oct 2005 19:30:13 +0000 (19:30 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 10 Oct 2005 19:30:13 +0000 (19:30 +0000)
Provided by: Yossi Leybovich (sleybo@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@105 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mt23108/kernel/hca_data.c

index 313c320..8c45395 100644 (file)
@@ -1772,6 +1772,7 @@ mlnx_conv_qp_modify_attr(
 \r
                if (modify_attr_p->state.rtr.opts & IB_MOD_QP_RNR_NAK_TIMEOUT)\r
                {\r
+                       *attr_mask_p |= QP_ATTR_MIN_RNR_TIMER;\r
                        qp_attr_p->min_rnr_timer   = modify_attr_p->state.rtr.rnr_nak_timeout;\r
                } else\r
                {\r
@@ -1792,9 +1793,11 @@ mlnx_conv_qp_modify_attr(
                {\r
                        *attr_mask_p |= QP_ATTR_PATH_MTU;\r
                        qp_attr_p->path_mtu     = modify_attr_p->state.rtr.primary_av.conn.path_mtu; // MTU\r
-\r
+                       *attr_mask_p |= QP_ATTR_TIMEOUT;\r
                        qp_attr_p->timeout     = modify_attr_p->state.rtr.primary_av.conn.local_ack_timeout; // XXX: conv\r
+                       *attr_mask_p |= QP_ATTR_RETRY_COUNT;\r
                        qp_attr_p->retry_count = modify_attr_p->state.rtr.primary_av.conn.seq_err_retry_cnt;\r
+                       *attr_mask_p |= QP_ATTR_RNR_RETRY;\r
                        qp_attr_p->rnr_retry   = modify_attr_p->state.rtr.primary_av.conn.rnr_retry_cnt;\r
                }\r
 \r
@@ -1836,6 +1839,7 @@ mlnx_conv_qp_modify_attr(
                *attr_mask_p |= QP_ATTR_SQ_PSN |\r
                        QP_ATTR_RETRY_COUNT |\r
                        QP_ATTR_RNR_RETRY |\r
+                       QP_ATTR_TIMEOUT|\r
                        QP_ATTR_OUS_DST_RD_ATOM |\r
                        QP_ATTR_MIN_RNR_TIMER;\r
 \r