Lines Matching refs:status

124 	dladm_status_t	status;
126 if ((status = dladm_datalink_id2info(handle, portid, NULL, NULL, NULL,
128 return (status);
131 status = DLADM_STATUS_TOOSMALL;
132 return (status);
138 dladm_status_t status;
144 status = dladm_name2info(handle, pname, portid, NULL, NULL, NULL);
145 return (status);
217 dladm_status_t status = DLADM_STATUS_OK;
243 status = dladm_errno2status(errno);
252 status = dladm_errno2status(errno);
258 return (status);
272 dladm_status_t status;
278 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
280 return (status);
282 status = dladm_get_conf_field(handle, conf, FKEY, &u64, sizeof (u64));
283 if (status != DLADM_STATUS_OK)
287 status = dladm_get_conf_field(handle, conf, FPOLICY, &u64,
289 if (status != DLADM_STATUS_OK)
293 status = dladm_get_conf_field(handle, conf, FFIXMACADDR,
295 if (status != DLADM_STATUS_OK)
301 if ((status = dladm_get_conf_field(handle, conf, FMACADDR,
306 status = DLADM_STATUS_REPOSITORYINVAL;
311 status = dladm_get_conf_field(handle, conf, FFORCE, &attrp->lg_force,
313 if (status != DLADM_STATUS_OK)
316 status = dladm_get_conf_field(handle, conf, FLACPMODE, &u64,
318 if (status != DLADM_STATUS_OK)
322 status = dladm_get_conf_field(handle, conf, FLACPTIMER, &u64,
324 if (status != DLADM_STATUS_OK)
328 status = dladm_get_conf_field(handle, conf, FNPORTS, &u64,
330 if (status != DLADM_STATUS_OK)
337 status = DLADM_STATUS_NOMEM;
341 status = dladm_get_conf_field(handle, conf, FPORTS, portstr, size);
342 if (status != DLADM_STATUS_OK)
347 status = DLADM_STATUS_NOMEM;
352 if ((status = read_port(handle, &next,
360 return (status);
387 dladm_status_t status = DLADM_STATUS_OK;
415 status = dladm_open_conf(handle, linkid, &conf);
416 if (status != DLADM_STATUS_OK)
417 return (status);
422 status = dladm_get_conf_field(handle, conf, FNPORTS, &u64,
424 if (status != DLADM_STATUS_OK)
432 status = DLADM_STATUS_BADARG;
438 status = dladm_errno2status(errno);
442 status = dladm_get_conf_field(handle, conf, FPORTS,
444 if (status != DLADM_STATUS_OK)
452 status = dladm_errno2status(errno);
463 status = write_port(handle, portstr,
465 if (status != DLADM_STATUS_OK) {
480 status = read_port(handle, &next, &portid);
481 if (status != DLADM_STATUS_OK) {
495 status = write_port(handle, portstr,
497 if (status != DLADM_STATUS_OK) {
506 status = DLADM_STATUS_LINKINVAL;
514 if ((status = dladm_set_conf_field(handle, conf, FNPORTS,
520 status = dladm_set_conf_field(handle, conf, FPORTS,
523 if (status != DLADM_STATUS_OK)
529 status = dladm_write_conf(handle, conf);
533 if (status != DLADM_STATUS_OK) {
535 return (status);
551 status = DLADM_STATUS_NOMEM;
565 status = dladm_errno2status(errno);
574 if ((status != DLADM_STATUS_OK) && (flags & DLADM_OPT_PERSIST)) {
587 return (status);
639 dladm_status_t status = DLADM_STATUS_OK;
659 status = DLADM_STATUS_MACADDRINVAL;
667 status = dladm_errno2status(errno);
671 return (status);
685 dladm_status_t status;
687 status = dladm_aggr_info(handle, linkid, &attr, DLADM_OPT_PERSIST);
688 if (status != DLADM_STATUS_OK) {
689 *statusp = status;
698 status = DLADM_STATUS_NOMEM;
724 status = DLADM_STATUS_BADARG;
731 if ((status = i_dladm_aggr_create_sys(handle, linkid,
738 if ((status = dladm_up_datalink_id(handle, linkid)) !=
749 *statusp = status;
760 dladm_status_t status;
763 (void) dladm_walk_datalink_id(i_dladm_aggr_up, handle, &status,
768 (void) i_dladm_aggr_up(handle, linkid, &status);
769 return (status);
1018 dladm_status_t status;
1022 if ((status = dladm_create_conf(handle, link, linkid,
1024 return (status);
1028 status = dladm_set_conf_field(handle, conf, FKEY, DLADM_TYPE_UINT64,
1030 if (status != DLADM_STATUS_OK)
1034 status = dladm_set_conf_field(handle, conf, FNPORTS, DLADM_TYPE_UINT64,
1036 if (status != DLADM_STATUS_OK)
1041 status = DLADM_STATUS_NOMEM;
1046 status = write_port(handle, portstr, ports[i].lp_linkid, size);
1047 if (status != DLADM_STATUS_OK) {
1052 status = dladm_set_conf_field(handle, conf, FPORTS, DLADM_TYPE_STR,
1056 if (status != DLADM_STATUS_OK)
1060 status = dladm_set_conf_field(handle, conf, FPOLICY, DLADM_TYPE_UINT64,
1062 if (status != DLADM_STATUS_OK)
1065 status = dladm_set_conf_field(handle, conf, FFIXMACADDR,
1067 if (status != DLADM_STATUS_OK)
1072 status = DLADM_STATUS_MACADDRINVAL;
1077 status = dladm_set_conf_field(handle, conf, FMACADDR,
1079 if (status != DLADM_STATUS_OK)
1083 status = dladm_set_conf_field(handle, conf, FFORCE, DLADM_TYPE_BOOLEAN,
1085 if (status != DLADM_STATUS_OK)
1089 status = dladm_set_conf_field(handle, conf, FLACPMODE,
1091 if (status != DLADM_STATUS_OK)
1095 status = dladm_set_conf_field(handle, conf, FLACPTIMER,
1097 if (status != DLADM_STATUS_OK)
1103 status = dladm_write_conf(handle, conf);
1107 return (status);
1124 dladm_status_t status;
1143 if ((status = dladm_create_datalink_id(handle, name,
1150 (status = dladm_aggr_persist_aggr_conf(handle, name, linkid, key,
1159 status = i_dladm_aggr_create_sys(handle, linkid, key, nports, ports,
1162 if (status != DLADM_STATUS_OK) {
1174 return (status);
1181 dladm_status_t status = DLADM_STATUS_OK;
1186 status = dladm_get_conf_field(handle, conf, FPOLICY, &u64,
1188 if (status != DLADM_STATUS_OK)
1189 return (status);
1194 status = dladm_get_conf_field(handle, conf, FFIXMACADDR,
1196 if (status != DLADM_STATUS_OK)
1197 return (status);
1202 status = dladm_get_conf_field(handle, conf, FMACADDR,
1204 if (status != DLADM_STATUS_OK)
1205 return (status);
1215 status = dladm_get_conf_field(handle, conf, FLACPMODE, &u64,
1217 if (status != DLADM_STATUS_OK)
1218 return (status);
1223 status = dladm_get_conf_field(handle, conf, FLACPTIMER, &u64,
1225 if (status != DLADM_STATUS_OK)
1226 return (status);
1230 return (status);
1237 dladm_status_t status = DLADM_STATUS_OK;
1243 status = dladm_set_conf_field(handle, conf, FPOLICY,
1245 if (status != DLADM_STATUS_OK)
1246 return (status);
1250 status = dladm_set_conf_field(handle, conf, FFIXMACADDR,
1252 if (status != DLADM_STATUS_OK)
1253 return (status);
1257 status = dladm_set_conf_field(handle, conf, FMACADDR,
1259 if (status != DLADM_STATUS_OK)
1260 return (status);
1266 status = dladm_set_conf_field(handle, conf, FLACPMODE,
1268 if (status != DLADM_STATUS_OK)
1269 return (status);
1274 status = dladm_set_conf_field(handle, conf, FLACPTIMER,
1276 if (status != DLADM_STATUS_OK)
1277 return (status);
1280 return (status);
1295 dladm_status_t status;
1304 status = dladm_open_conf(handle, linkid, &conf);
1305 if (status != DLADM_STATUS_OK)
1306 return (status);
1308 if ((status = i_dladm_aggr_get_aggr_attr(handle, conf,
1313 if ((status = i_dladm_aggr_set_aggr_attr(handle, conf,
1318 status = dladm_write_conf(handle, conf);
1322 if (status != DLADM_STATUS_OK)
1323 return (status);
1329 status = i_dladm_aggr_modify_sys(handle, linkid, modify_mask,
1331 if ((status != DLADM_STATUS_OK) && (flags & DLADM_OPT_PERSIST)) {
1341 return (status);
1378 dladm_status_t status;
1389 status = dladm_errno2status(errno);
1390 return (status);
1461 dladm_status_t status;
1468 status = dladm_get_conf_field(handle, conf, FKEY, &u64, sizeof (u64));
1472 if ((status == DLADM_STATUS_OK) && (key == statep->key)) {