[IBAL] Set client reregister bit in port capabilities during CA addition.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 24 Feb 2006 01:20:36 +0000 (01:20 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 24 Feb 2006 01:20:36 +0000 (01:20 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@217 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_ci_ca_shared.c

index 25c639d..a6b1a9e 100644 (file)
@@ -112,7 +112,7 @@ get_port_info(
        ib_api_status_t         status;\r
        ib_ca_attr_t            *p_ca_attr;\r
        uint32_t                        attr_size;\r
-       uintn_t                         i;\r
+       uint8_t                         i;\r
 \r
        CL_ENTER( AL_DBG_CA, g_al_dbg_lvl );\r
 \r
@@ -162,6 +162,17 @@ get_port_info(
        for( i = 0; i < p_ca_attr->num_ports; i++ )\r
        {\r
                p_ci_ca->port_array[i] = p_ca_attr->p_port_attr[i].port_guid;\r
+\r
+#ifdef CL_KERNEL\r
+               /* Set the port's client reregister bit. */\r
+               {\r
+                       ib_port_attr_mod_t attr;\r
+\r
+                       attr.cap.client_reregister = TRUE;\r
+                       ib_modify_ca( p_ci_ca->h_ca, i + 1,\r
+                               IB_CA_MOD_IS_CLIENT_REREGISTER_SUPPORTED, &attr );\r
+               }\r
+#endif\r
        }\r
 \r
        cl_free( p_ca_attr );\r