Lines Matching refs:status
65 * Convert a error status returned by the IP over IB kernel driver to a
66 * valid dladm status.
114 dladm_status_t status = DLADM_STATUS_OK;
125 status = i_dladm_ib_ioctl(handle, IBD_INFO_IBPART, (ibd_ioctl_t *)&ioc);
126 if (status != DLADM_STATUS_OK)
151 return (status);
163 dladm_status_t status;
170 if ((status = dladm_datalink_id2info(handle, linkid, NULL, &class,
176 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
178 return (status);
184 status = dladm_get_conf_field(handle, conf, FLINKOVER, linkover,
186 if (status != DLADM_STATUS_OK) {
191 if ((status = dladm_name2info(handle, linkover,
198 status = dladm_get_conf_field(handle, conf, FPORTPKEY, &u64,
200 if (status != DLADM_STATUS_OK)
206 status = DLADM_STATUS_BADARG;
214 status = dladm_get_conf_field(handle, conf, FFORCE, &force,
216 if (status != DLADM_STATUS_OK) {
217 if (status != DLADM_STATUS_NOTFOUND)
223 status = DLADM_STATUS_OK;
226 return (status);
259 dladm_status_t status = DLADM_STATUS_OK;
286 status = i_dladm_ib_ioctl(handle, IBD_INFO_IBPART, (ibd_ioctl_t *)&ioc);
287 if (status != DLADM_STATUS_OK)
288 return (status);
296 status = dladm_errno2status(errno);
308 status = i_dladm_ib_ioctl(handle, IBD_INFO_IBPART, (ibd_ioctl_t *)&ioc);
309 if (status != DLADM_STATUS_OK)
319 return (status);
322 return (status);
370 dladm_status_t status;
374 status = dladm_create_conf(handle, pname, pattr->dia_partlinkid,
376 if (status != DLADM_STATUS_OK)
377 return (status);
383 status = dladm_datalink_id2info(handle, pattr->dia_physlinkid,
385 if (status != DLADM_STATUS_OK)
386 return (status);
389 status = dladm_set_conf_field(handle, conf, FLINKOVER, DLADM_TYPE_STR,
391 if (status != DLADM_STATUS_OK)
392 return (status);
397 status = dladm_set_conf_field(handle, conf, FPORTPKEY,
399 if (status != DLADM_STATUS_OK)
400 return (status);
405 status = dladm_set_conf_field(handle, conf, FFORCE,
407 if (status != DLADM_STATUS_OK)
411 status = dladm_write_conf(handle, conf, pattr->dia_partlinkid);
412 if (status != DLADM_STATUS_OK)
413 return (status);
417 return (status);
435 dladm_status_t status;
454 if ((status = dladm_datalink_id2info(handle, pattr.dia_physlinkid, NULL,
456 return (status);
466 if ((status = dladm_phys_info(handle, pattr.dia_physlinkid, &dpa,
468 return (status);
473 if ((status = dladm_create_datalink_id_zone(handle, pname,
476 return (status);
481 status = i_dladm_part_create(handle, &pattr);
482 if (status != DLADM_STATUS_OK)
492 status = dladm_part_persist_conf(handle, pname, &pattr);
493 if (status != DLADM_STATUS_OK)
506 status = dladm_set_linkprop(handle,
509 if (status != DLADM_STATUS_OK)
515 if (status != DLADM_STATUS_OK) {
528 return (status);
548 dladm_status_t status;
553 status = i_dladm_ib_ioctl(handle, IBD_DELETE_IBPART, &ioc.ibdioc);
554 if (status != DLADM_STATUS_OK)
555 return (status);
568 dladm_status_t status = DLADM_STATUS_OK;
586 status = i_dladm_part_delete(handle, partid);
587 if (status == DLADM_STATUS_OK ||
588 status == DLADM_STATUS_NOTFOUND) {
594 return (status);
605 * failed. In that case, we update the status to be returned
606 * to that of the status returned for deleting the persistent
609 if (status == DLADM_STATUS_NOTFOUND)
610 status = db_status;
616 return (status);
632 dladm_status_t status;
641 if ((status = dladm_getsnap_conf(handle, plinkid, &conf)) !=
643 return (status);
649 status = dladm_get_conf_field(handle, conf, FLINKOVER, linkover,
651 if (status != DLADM_STATUS_OK)
654 if ((status = dladm_name2info(handle, linkover, &linkid, NULL, NULL,
668 status = dladm_get_conf_field(handle, conf, FPORTPKEY, &u64,
670 if (status != DLADM_STATUS_OK)
715 dladm_status_t status = DLADM_STATUS_OK;
719 &status, DATALINK_CLASS_PART, DATALINK_ANY_MEDIATYPE,
723 (void) i_dladm_part_up(handle, linkid, &status);
724 return (status);
736 dladm_status_t status;
738 status = i_dladm_part_delete(handle, plinkid);
740 *statusp = status;
754 dladm_status_t status = DLADM_STATUS_OK;
761 (void) i_dladm_part_down(handle, linkid, &status);
763 return (status);