Lines Matching refs:status

248 	dladm_status_t	status = DLADM_STATUS_OK;
253 if ((status = dladm_datalink_id2info(handle, linkid, NULL, &class,
267 status = dladm_vnic_info(handle, linkid, &vinfo,
269 if (status != DLADM_STATUS_OK)
568 dladm_status_t status = DLADM_STATUS_OK;
580 status = dladm_errno2status(errno);
581 return (status);
585 status = dladm_remap_datalink_id(handle, linkid1, link2);
586 if (status != DLADM_STATUS_OK && (flags & DLADM_OPT_ACTIVE)) {
590 return (status);
604 dladm_status_t status;
607 status = dladm_aggr_info(handle, aggrid, &ginfo, hold_arg->flags);
608 if (status != DLADM_STATUS_OK)
625 dladm_status_t status;
627 status = dladm_vlan_info(handle, vlanid, &vinfo, hold_arg->flags);
628 if (status != DLADM_STATUS_OK)
656 dladm_status_t status = DLADM_STATUS_OK;
685 status = dladm_errno2status(errno);
687 if (status != DLADM_STATUS_OK) {
688 return (status);
699 if (((status = dladm_getsnap_conf(handle, linkid1, &conf1)) !=
701 ((status = dladm_get_conf_field(handle, conf1, FDEVNAME, devname,
703 ((status = dladm_get_conf_field(handle, conf1, FPHYMAJ, &phymaj,
705 ((status = dladm_get_conf_field(handle, conf1, FPHYINST, &phyinst,
707 ((status = dladm_open_conf(handle, linkid2, &conf2)) !=
713 return (status);
739 status = DLADM_STATUS_FAILED;
750 status = DLADM_STATUS_OK;
758 return (status);
772 dladm_status_t status;
777 status = dladm_open_conf(handle, linkid2, &conf);
778 if (status != DLADM_STATUS_OK)
781 if ((status = dladm_set_conf_field(handle, conf, FDEVNAME,
783 status = dladm_write_conf(handle, conf, linkid2);
789 return (status);
801 dladm_status_t status;
820 status = i_dladm_rename_link_c1(handle, linkid1, link1,
830 status = DLADM_STATUS_BADARG;
832 status = i_dladm_rename_link_c2(handle, linkid1,
836 status = DLADM_STATUS_EXIST;
839 status = i_dladm_rename_link_c3(handle, link1, linkid2);
841 status = DLADM_STATUS_NOTFOUND;
843 return (status);
855 dladm_status_t status;
857 status = dladm_vlan_info(handle, vlanid, &vinfo, DLADM_OPT_PERSIST);
858 if (status != DLADM_STATUS_OK)
871 dladm_status_t status;
873 status = dladm_part_info(handle, partid, &pinfo, DLADM_OPT_PERSIST);
874 if (status != DLADM_STATUS_OK)
887 dladm_status_t status;
891 status = dladm_aggr_info(handle, aggrid, &ginfo, DLADM_OPT_PERSIST);
892 if (status != DLADM_STATUS_OK)
932 dladm_status_t status = DLADM_STATUS_OK;
936 if ((status = dladm_datalink_id2info(handle, linkid, &flags, &class,
946 status = DLADM_STATUS_BADARG;
967 del_phys_arg->rval = status;
991 dladm_status_t status;
999 status = dladm_getsnap_conf(handle, linkid, &conf);
1000 if (status != DLADM_STATUS_OK)
1001 return (status);
1003 status = dladm_get_conf_field(handle, conf, FDEVNAME,
1006 if (status == DLADM_STATUS_OK) {
1011 return (status);
1018 status = dladm_errno2status(errno);
1019 return (status);
1045 dladm_status_t status;
1048 status = dladm_phys_info(handle, linkid, &dpa, DLADM_OPT_PERSIST);
1049 if ((status == DLADM_STATUS_OK) &&
1112 dladm_status_t status;
1114 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1116 if (status != DLADM_STATUS_OK)
1126 status = dladm_vlan_info(handle, linkid, &dva,
1128 if (status != DLADM_STATUS_OK)
1133 if ((status = dladm_datalink_id2info(handle, linkid, NULL,
1143 status = dladm_aggr_info(handle, linkid, &dga,
1145 if (status != DLADM_STATUS_OK)
1153 status = DLADM_STATUS_BADARG;
1162 status = dladm_phys_info(handle, linkid, &dpa,
1164 if (status != DLADM_STATUS_OK)
1171 status = DLADM_STATUS_BADARG;
1180 status = DLADM_STATUS_BADARG;
1184 status = DLADM_STATUS_TOOSMALL;
1187 status = DLADM_STATUS_TOOSMALL;
1191 return (status);