示例#1
0
文件: saibuffer.c 项目: p4lang/switch
sai_status_t sai_buffer_initialize(sai_api_service_t *sai_api_service) {
  SAI_LOG_DEBUG("Initializing buffer");
  sai_api_service->buffer_api = buffer_api;
  return SAI_STATUS_SUCCESS;
}
示例#2
0
文件: saiipmc.c 项目: p4lang/switch
sai_status_t sai_ipmc_initialize(sai_api_service_t *sai_api_service) {
  SAI_LOG_DEBUG("Initializing ipmc");
  sai_api_service->ipmc_api = ipmc_api;
  return SAI_STATUS_SUCCESS;
}
示例#3
0
sai_status_t sai_port_initialize(sai_api_service_t *sai_api_service) {
    SAI_LOG_DEBUG("Initializing port");
    sai_api_service->port_api = port_api;
    return SAI_STATUS_SUCCESS;
}
示例#4
0
sai_status_t sai_router_interface_initialize(
    sai_api_service_t *sai_api_service) {
  SAI_LOG_DEBUG("Initializing router interface");
  sai_api_service->rif_api = rif_api;
  return SAI_STATUS_SUCCESS;
}
示例#5
0
sai_status_t sai_qos_map_initialize(sai_api_service_t *sai_api_service) {
  SAI_LOG_DEBUG("Initializing qos map");
  sai_api_service->qos_api = qos_api;
  return SAI_STATUS_SUCCESS;
}
示例#6
0
文件: sairouter.c 项目: krambn/switch
sai_status_t sai_virtual_router_initialize(sai_api_service_t *sai_api_service) {
  SAI_LOG_DEBUG("Initializing virtual router");
  sai_api_service->vr_api = vr_api;
  return SAI_STATUS_SUCCESS;
}