[HCA] Add client reregister support.
[mirror/winof/.git] / hw / mt23108 / kernel / hca_data.c
index f7228c9..029813b 100644 (file)
@@ -693,6 +693,10 @@ mlnx_map_vapi_event_type(
                if (event_class_p) *event_class_p = E_EV_CA;\r
                return IB_AE_PORT_ACTIVE; /* ACTIVE STATE */\r
 \r
+       case VAPI_CLIENT_REREGISTER:\r
+               if (event_class_p) *event_class_p = E_EV_CA;\r
+               return IB_AE_CLIENT_REREGISTER; /* ACTIVE STATE */\r
+\r
        default:\r
                CL_TRACE(MLNX_DBG_INFO, g_mlnx_dbg_lvl, ("FAIL to map %d (last known %d) returning %d\n",\r
                        event_id, VAPI_PORT_ACTIVE, IB_AE_LOCAL_FATAL));\r
@@ -2046,6 +2050,8 @@ vapi_port_cap_to_ibal(
                ibal_port_cap_p->sm_disable = TRUE;\r
        if (vapi_port_cap & IB_CAP_MASK_IS_SM)\r
                ibal_port_cap_p->sm = TRUE;\r
+       if (vapi_port_cap & IB_CAP_MASK_IS_CLIENT_REREGISTRATION_SUP)\r
+               ibal_port_cap_p->client_reregister= TRUE;\r
 }\r
 \r
 /////////////////////////////////////////////////////////\r