Lines Matching refs:status

113 	dladm_status_t status = DLADM_STATUS_OK;
142 status = dladm_errno2status(errno);
144 if (status != DLADM_STATUS_OK) {
146 status = dladm_vnic_diag2status(ioc.vc_diag);
148 if (status != DLADM_STATUS_OK)
149 return (status);
161 return (status);
186 dladm_status_t status = DLADM_STATUS_OK;
194 status = dladm_errno2status(errno);
214 return (status);
222 dladm_status_t status;
229 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
231 return (status);
233 status = dladm_get_conf_field(handle, conf, FLINKOVER, linkover,
235 if (status != DLADM_STATUS_OK) {
242 if ((status = dladm_name2info(handle, linkover,
247 if ((status = dladm_datalink_id2info(handle, linkid, NULL, &class,
253 status = DLADM_STATUS_BADARG;
259 status = dladm_get_conf_field(handle, conf, FMADDRTYPE, &u64,
261 if (status != DLADM_STATUS_OK)
266 if ((status = dladm_get_conf_field(handle, conf, FVRID,
273 if ((status = dladm_get_conf_field(handle, conf, FVRAF,
280 status = dladm_get_conf_field(handle, conf, FMADDRLEN, &u64,
282 attrp->va_mac_len = ((status == DLADM_STATUS_OK) ?
285 status = dladm_get_conf_field(handle, conf, FMADDRSLOT, &u64,
287 attrp->va_mac_slot = ((status == DLADM_STATUS_OK) ?
290 status = dladm_get_conf_field(handle, conf, FMADDRPREFIXLEN,
292 attrp->va_mac_prefix_len = ((status == DLADM_STATUS_OK) ?
296 status = dladm_get_conf_field(handle, conf, FMACADDR,
298 if (status != DLADM_STATUS_OK)
303 status = dladm_vnic_str2macaddr(macstr,
305 if (status != DLADM_STATUS_OK)
313 status = dladm_get_conf_field(handle, conf, FVLANID, &u64,
315 attrp->va_vid = ((status == DLADM_STATUS_OK) ? (uint16_t)u64 : 0);
317 status = DLADM_STATUS_OK;
320 return (status);
430 dladm_status_t status;
478 status = i_dladm_vnic_vrrp_mac(vrid, af, *mac_addr, *mac_len);
479 if (status != DLADM_STATUS_OK)
480 return (status);
514 dladm_status_t status;
533 if ((status = dladm_datalink_id2info(handle, linkid, NULL,
535 return (status);
549 status = i_dladm_mac_addr_check(mac_addr_type, &mac_addr, &mac_len,
551 if (status != DLADM_STATUS_OK)
552 return (status);
563 if ((status = dladm_create_datalink_id_zone(handle, name, class,
565 return (status);
577 status = dladm_link_proplist_extract(handle, proplist,
579 if (status != DLADM_STATUS_OK)
600 status = i_dladm_vnic_create_sys(handle, &attr);
601 if (status != DLADM_STATUS_OK)
609 status = dladm_vnic_persist_conf(handle, name, &attr, class, B_TRUE);
610 if (status != DLADM_STATUS_OK)
618 status = dladm_set_linkprop(handle, vnic_id,
621 if (status != DLADM_STATUS_OK)
627 if (status != DLADM_STATUS_OK) {
648 if (status == DLADM_STATUS_OK && stat2 != DLADM_STATUS_OK)
649 status = stat2;
651 return (status);
665 dladm_status_t status;
676 if ((status = dladm_datalink_id2info(handle, linkid, NULL,
678 return (status);
691 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
693 return (status);
696 status = i_dladm_vnic_info_active(handle, linkid, &attr);
697 if (status != DLADM_STATUS_OK)
698 return (status);
707 status = i_dladm_mac_addr_check(mac_addr_type, &mac_addr,
710 if (status != DLADM_STATUS_OK)
711 return (status);
738 if ((status = dladm_datalink_id2info(handle, lower_linkid,
740 return (status);
763 status = i_dladm_vnic_modify_sys(handle, &new_attr);
764 if (status != DLADM_STATUS_OK)
790 status = dladm_vnic_persist_conf(handle, vnic_name, &attr, vnic_class,
793 if (status == DLADM_STATUS_OK) {
805 if (status == DLADM_STATUS_OK && stat2 != DLADM_STATUS_OK)
806 status = stat2;
808 return (status);
817 dladm_status_t status;
853 status = i_dladm_vnic_delete_sys(handle, linkid);
854 if (status == DLADM_STATUS_OK ||
855 status == DLADM_STATUS_NOTFOUND) {
861 return (status);
909 dladm_status_t status;
915 if ((status = dladm_create_conf(handle, name, attrp->va_vnic_id,
917 return (status);
919 if ((status = dladm_open_conf(handle, attrp->va_vnic_id,
921 return (status);
925 status = dladm_datalink_id2info(handle, attrp->va_link_id, NULL,
927 if (status != DLADM_STATUS_OK)
929 status = dladm_set_conf_field(handle, conf, FLINKOVER,
931 if (status != DLADM_STATUS_OK)
946 status = dladm_set_conf_field(handle, conf, FMADDRTYPE,
948 if (status != DLADM_STATUS_OK)
953 status = dladm_set_conf_field(handle, conf, FVRID,
955 if (status != DLADM_STATUS_OK)
961 status = dladm_set_conf_field(handle, conf, FVRAF,
963 if (status != DLADM_STATUS_OK)
969 status = dladm_set_conf_field(handle, conf, FMADDRLEN,
971 if (status != DLADM_STATUS_OK)
977 status = dladm_set_conf_field(handle, conf,
979 if (status != DLADM_STATUS_OK)
986 status = dladm_set_conf_field(handle, conf,
988 if (status != DLADM_STATUS_OK)
995 status = dladm_set_conf_field(handle, conf, FMACADDR,
997 if (status != DLADM_STATUS_OK)
1007 status = dladm_set_conf_field(handle, conf, FVLANID,
1009 if (status != DLADM_STATUS_OK)
1016 status = dladm_write_conf(handle, conf, attrp->va_vnic_id);
1020 return (status);
1025 dladm_status_t status;
1031 dladm_status_t *statusp = &(((dladm_vnic_up_arg_t *)arg)->status);
1033 dladm_status_t status;
1038 status = dladm_vnic_info(handle, linkid, &attr, DLADM_OPT_PERSIST);
1039 if (status != DLADM_STATUS_OK)
1043 status = dladm_link_get_proplist(handle, linkid, &proplist);
1044 if (status != DLADM_STATUS_OK)
1048 status = dladm_link_proplist_extract(handle, proplist,
1052 status = i_dladm_vnic_create_sys(handle, &attr);
1053 if (status == DLADM_STATUS_OK) {
1054 status = dladm_up_datalink_id(handle, linkid);
1055 if (status != DLADM_STATUS_OK)
1061 *statusp = status;
1081 return (vnic_arg.status);
1092 dladm_status_t status;
1094 status = i_dladm_vnic_delete_sys(handle, linkid);
1096 *statusp = status;
1097 if (status == DLADM_STATUS_OK) {
1113 dladm_status_t status = DLADM_STATUS_OK;
1125 (void) i_dladm_vnic_down(handle, linkid, &status);
1127 return (status);