Lines Matching refs:status

66  * Convert a error status returned by the IP over IB kernel driver to a
67 * valid dladm status.
115 dladm_status_t status = DLADM_STATUS_OK;
126 status = i_dladm_ib_ioctl(handle, IBD_INFO_IBPART, (ibd_ioctl_t *)&ioc);
127 if (status != DLADM_STATUS_OK)
150 return (status);
162 dladm_status_t status;
168 if ((status = dladm_datalink_id2info(handle, linkid, NULL, &class,
174 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
176 return (status);
182 status = dladm_get_conf_field(handle, conf, FLINKOVER, linkover,
184 if (status != DLADM_STATUS_OK) {
189 if ((status = dladm_name2info(handle, linkover,
196 status = dladm_get_conf_field(handle, conf, FPORTPKEY,
198 if (status != DLADM_STATUS_OK)
202 status = DLADM_STATUS_BADARG;
210 status = dladm_get_conf_field(handle, conf, FFORCE, &force,
212 if (status != DLADM_STATUS_OK) {
213 if (status != DLADM_STATUS_NOTFOUND)
219 status = DLADM_STATUS_OK;
222 return (status);
255 dladm_status_t status = DLADM_STATUS_OK;
282 status = i_dladm_ib_ioctl(handle, IBD_INFO_IBPART, (ibd_ioctl_t *)&ioc);
283 if (status != DLADM_STATUS_OK)
284 return (status);
292 status = dladm_errno2status(errno);
304 status = i_dladm_ib_ioctl(handle, IBD_INFO_IBPART, (ibd_ioctl_t *)&ioc);
305 if (status != DLADM_STATUS_OK)
315 return (status);
318 return (status);
364 dladm_status_t status;
368 status = dladm_create_conf(handle, pname, pattr->dia_partlinkid,
370 if (status != DLADM_STATUS_OK)
371 return (status);
377 status = dladm_datalink_id2info(handle, pattr->dia_physlinkid,
379 if (status != DLADM_STATUS_OK)
380 return (status);
383 status = dladm_set_conf_field(handle, conf, FLINKOVER, DLADM_TYPE_STR,
385 if (status != DLADM_STATUS_OK)
386 return (status);
391 status = dladm_set_conf_field(handle, conf, FPORTPKEY,
393 if (status != DLADM_STATUS_OK)
394 return (status);
399 status = dladm_set_conf_field(handle, conf, FFORCE,
401 if (status != DLADM_STATUS_OK)
405 status = dladm_write_conf(handle, conf);
406 if (status != DLADM_STATUS_OK)
407 return (status);
411 return (status);
429 dladm_status_t status;
453 if ((status = dladm_datalink_id2info(handle, pattr.dia_physlinkid, NULL,
455 return (status);
465 if ((status = dladm_phys_info(handle, pattr.dia_physlinkid, &dpa,
467 return (status);
474 if ((status = dladm_create_datalink_id(handle, pname,
477 return (status);
482 status = i_dladm_part_create(handle, &pattr);
483 if (status != DLADM_STATUS_OK)
493 status = dladm_part_persist_conf(handle, pname, &pattr);
494 if (status != DLADM_STATUS_OK)
507 status = dladm_set_linkprop(handle,
510 if (status != DLADM_STATUS_OK)
515 if (status != DLADM_STATUS_OK) {
528 return (status);
552 dladm_status_t status = DLADM_STATUS_OK;
570 status = i_dladm_part_delete(handle, partid);
571 if (status == DLADM_STATUS_OK) {
576 } else if (status != DLADM_STATUS_NOTFOUND ||
578 return (status);
589 * failed. In that case, we update the status to be returned
590 * to that of the status returned for deleting the persistent
593 if (status == DLADM_STATUS_NOTFOUND)
594 status = db_status;
600 return (status);
616 dladm_status_t status;
625 if ((status = dladm_getsnap_conf(handle, plinkid, &conf)) !=
627 return (status);
633 status = dladm_get_conf_field(handle, conf, FLINKOVER, linkover,
635 if (status != DLADM_STATUS_OK)
638 if ((status = dladm_name2info(handle, linkover, &linkid, NULL, NULL,
652 status = dladm_get_conf_field(handle, conf, FPORTPKEY, &u64,
654 if (status != DLADM_STATUS_OK)
698 dladm_status_t status = DLADM_STATUS_OK;
702 &status, DATALINK_CLASS_PART, DATALINK_ANY_MEDIATYPE,
706 (void) i_dladm_part_up(handle, linkid, &status);
707 return (status);