Lines Matching refs:status

108 	dladm_status_t status = DLADM_STATUS_OK;
131 status = dladm_errno2status(errno);
133 if (status != DLADM_STATUS_OK) {
135 status = dladm_vnic_diag2status(ioc.vc_diag);
137 if (status != DLADM_STATUS_OK)
138 return (status);
150 return (status);
163 dladm_status_t status = DLADM_STATUS_OK;
171 status = dladm_errno2status(errno);
188 return (status);
196 dladm_status_t status;
203 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
205 return (status);
207 status = dladm_get_conf_field(handle, conf, FLINKOVER, linkover,
209 if (status != DLADM_STATUS_OK) {
216 if ((status = dladm_name2info(handle, linkover,
221 if ((status = dladm_datalink_id2info(handle, linkid, NULL, &class,
227 status = DLADM_STATUS_BADARG;
233 status = dladm_get_conf_field(handle, conf, FMADDRTYPE, &u64,
235 if (status != DLADM_STATUS_OK)
240 if ((status = dladm_get_conf_field(handle, conf, FVRID,
247 if ((status = dladm_get_conf_field(handle, conf, FVRAF,
254 status = dladm_get_conf_field(handle, conf, FMADDRLEN, &u64,
256 attrp->va_mac_len = ((status == DLADM_STATUS_OK) ?
259 status = dladm_get_conf_field(handle, conf, FMADDRSLOT, &u64,
261 attrp->va_mac_slot = ((status == DLADM_STATUS_OK) ?
264 status = dladm_get_conf_field(handle, conf, FMADDRPREFIXLEN,
266 attrp->va_mac_prefix_len = ((status == DLADM_STATUS_OK) ?
269 status = dladm_get_conf_field(handle, conf, FMACADDR, macstr,
271 if (status != DLADM_STATUS_OK)
274 status = dladm_vnic_str2macaddr(macstr, attrp->va_mac_addr);
275 if (status != DLADM_STATUS_OK)
279 status = dladm_get_conf_field(handle, conf, FVLANID, &u64,
281 attrp->va_vid = ((status == DLADM_STATUS_OK) ? (uint16_t)u64 : 0);
283 status = DLADM_STATUS_OK;
286 return (status);
308 dladm_status_t status = DLADM_STATUS_OK;
315 status = dladm_errno2status(errno);
317 return (status);
410 dladm_status_t status;
433 if ((status = dladm_datalink_id2info(handle, linkid, NULL,
435 return (status);
484 status = i_dladm_vnic_vrrp_mac(vrid, af, mac_addr, mac_len);
485 if (status != DLADM_STATUS_OK)
486 return (status);
501 if ((status = dladm_create_datalink_id(handle, name, class,
503 return (status);
514 status = dladm_link_proplist_extract(handle, proplist,
516 if (status != DLADM_STATUS_OK)
536 status = i_dladm_vnic_create_sys(handle, &attr);
537 if (status != DLADM_STATUS_OK)
545 status = dladm_vnic_persist_conf(handle, name, &attr, class);
546 if (status != DLADM_STATUS_OK)
554 status = dladm_set_linkprop(handle, vnic_id,
557 if (status != DLADM_STATUS_OK)
563 if (status != DLADM_STATUS_OK) {
580 if (status == DLADM_STATUS_OK && stat2 != DLADM_STATUS_OK)
581 status = stat2;
583 return (status);
592 dladm_status_t status;
612 status = i_dladm_vnic_delete_sys(handle, linkid);
613 if (status == DLADM_STATUS_OK) {
618 } else if (status != DLADM_STATUS_NOTFOUND ||
620 return (status);
667 dladm_status_t status;
672 if ((status = dladm_create_conf(handle, name, attrp->va_vnic_id,
674 return (status);
677 status = dladm_datalink_id2info(handle, attrp->va_link_id, NULL,
679 if (status != DLADM_STATUS_OK)
681 status = dladm_set_conf_field(handle, conf, FLINKOVER,
683 if (status != DLADM_STATUS_OK)
689 status = dladm_set_conf_field(handle, conf, FMADDRTYPE,
691 if (status != DLADM_STATUS_OK)
695 status = dladm_set_conf_field(handle, conf, FVRID,
697 if (status != DLADM_STATUS_OK)
701 status = dladm_set_conf_field(handle, conf, FVRAF,
703 if (status != DLADM_STATUS_OK)
708 status = dladm_set_conf_field(handle, conf, FMADDRLEN,
710 if (status != DLADM_STATUS_OK)
716 status = dladm_set_conf_field(handle, conf,
718 if (status != DLADM_STATUS_OK)
725 status = dladm_set_conf_field(handle, conf,
727 if (status != DLADM_STATUS_OK)
732 status = dladm_set_conf_field(handle, conf, FMACADDR,
734 if (status != DLADM_STATUS_OK)
740 status = dladm_set_conf_field(handle, conf, FVLANID,
742 if (status != DLADM_STATUS_OK)
749 status = dladm_write_conf(handle, conf);
753 return (status);
758 dladm_status_t status;
764 dladm_status_t *statusp = &(((dladm_vnic_up_arg_t *)arg)->status);
766 dladm_status_t status;
771 status = dladm_vnic_info(handle, linkid, &attr, DLADM_OPT_PERSIST);
772 if (status != DLADM_STATUS_OK)
776 status = dladm_link_get_proplist(handle, linkid, &proplist);
777 if (status != DLADM_STATUS_OK)
781 status = dladm_link_proplist_extract(handle, proplist,
785 status = i_dladm_vnic_create_sys(handle, &attr);
786 if (status == DLADM_STATUS_OK) {
787 status = dladm_up_datalink_id(handle, linkid);
788 if (status != DLADM_STATUS_OK)
793 *statusp = status;
813 return (vnic_arg.status);