Lines Matching refs:status

126 	dladm_status_t	status;
128 if ((status = dladm_datalink_id2info(handle, portid, NULL, NULL, NULL,
130 return (status);
133 status = DLADM_STATUS_TOOSMALL;
134 return (status);
140 dladm_status_t status;
146 status = dladm_name2info(handle, pname, portid, NULL, NULL, NULL);
147 return (status);
220 dladm_status_t status = DLADM_STATUS_OK;
246 status = dladm_errno2status(errno);
255 status = dladm_errno2status(errno);
261 return (status);
275 dladm_status_t status;
281 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
283 return (status);
285 status = dladm_get_conf_field(handle, conf, FKEY, &u64, sizeof (u64));
286 if (status != DLADM_STATUS_OK)
290 status = dladm_get_conf_field(handle, conf, FAGGRMODE, &u64,
297 if (status != DLADM_STATUS_OK && status != DLADM_STATUS_NOTFOUND)
299 else if (status == DLADM_STATUS_NOTFOUND)
304 status = dladm_get_conf_field(handle, conf, FPOLICY, &u64,
306 if (status != DLADM_STATUS_OK)
310 status = dladm_get_conf_field(handle, conf, FFIXMACADDR,
312 if (status != DLADM_STATUS_OK)
318 if ((status = dladm_get_conf_field(handle, conf, FMACADDR,
323 status = DLADM_STATUS_REPOSITORYINVAL;
328 status = dladm_get_conf_field(handle, conf, FFORCE, &attrp->lg_force,
330 if (status != DLADM_STATUS_OK)
333 status = dladm_get_conf_field(handle, conf, FLACPMODE, &u64,
335 if (status != DLADM_STATUS_OK)
339 status = dladm_get_conf_field(handle, conf, FLACPTIMER, &u64,
341 if (status != DLADM_STATUS_OK)
345 status = dladm_get_conf_field(handle, conf, FNPORTS, &u64,
347 if (status != DLADM_STATUS_OK)
354 status = DLADM_STATUS_NOMEM;
358 status = dladm_get_conf_field(handle, conf, FPORTS, portstr, size);
359 if (status != DLADM_STATUS_OK)
364 status = DLADM_STATUS_NOMEM;
369 if ((status = read_port(handle, &next,
377 return (status);
423 dladm_status_t status = DLADM_STATUS_OK;
436 status = dladm_datalink_id2info(handle, ports[i].lp_linkid,
438 if (status != DLADM_STATUS_OK ||
465 status = dladm_open_conf(handle, linkid, &conf);
466 if (status != DLADM_STATUS_OK)
467 return (status);
472 status = dladm_get_conf_field(handle, conf, FNPORTS, &u64,
474 if (status != DLADM_STATUS_OK)
482 status = DLADM_STATUS_BADARG;
488 status = dladm_errno2status(errno);
492 status = dladm_get_conf_field(handle, conf, FPORTS,
494 if (status != DLADM_STATUS_OK)
502 status = dladm_errno2status(errno);
513 status = write_port(handle, portstr,
515 if (status != DLADM_STATUS_OK) {
530 status = read_port(handle, &next, &portid);
531 if (status != DLADM_STATUS_OK) {
545 status = write_port(handle, portstr,
547 if (status != DLADM_STATUS_OK) {
556 status = DLADM_STATUS_LINKINVAL;
564 if ((status = dladm_set_conf_field(handle, conf, FNPORTS,
570 status = dladm_set_conf_field(handle, conf, FPORTS,
573 if (status != DLADM_STATUS_OK)
579 status = dladm_write_conf(handle, conf, linkid);
583 if (status != DLADM_STATUS_OK) {
585 return (status);
601 status = DLADM_STATUS_NOMEM;
615 status = dladm_errno2status(errno);
624 if ((status != DLADM_STATUS_OK) && (flags & DLADM_OPT_PERSIST)) {
637 return (status);
693 dladm_status_t status = DLADM_STATUS_OK;
714 status = DLADM_STATUS_MACADDRINVAL;
722 status = dladm_errno2status(errno);
726 return (status);
740 dladm_status_t status;
742 status = dladm_aggr_info(handle, linkid, &attr, DLADM_OPT_PERSIST);
743 if (status != DLADM_STATUS_OK) {
744 *statusp = status;
753 status = DLADM_STATUS_NOMEM;
773 status = DLADM_STATUS_PORT_DCB_ENABLED;
784 status = DLADM_STATUS_BADARG;
791 if ((status = i_dladm_aggr_create_sys(handle, linkid,
798 if ((status = dladm_up_datalink_id(handle, linkid)) !=
809 *statusp = status;
820 dladm_status_t status;
823 (void) dladm_walk_datalink_id(i_dladm_aggr_up, handle, &status,
828 (void) i_dladm_aggr_up(handle, linkid, &status);
829 return (status);
858 dladm_status_t status;
860 status = i_dladm_aggr_delete_sys(handle, linkid);
862 *statusp = status;
874 dladm_status_t status = DLADM_STATUS_OK;
881 (void) i_dladm_aggr_down(handle, linkid, &status);
883 return (status);
1131 dladm_status_t status;
1135 if ((status = dladm_create_conf(handle, link, linkid,
1137 return (status);
1141 status = dladm_set_conf_field(handle, conf, FKEY, DLADM_TYPE_UINT64,
1143 if (status != DLADM_STATUS_OK)
1147 status = dladm_set_conf_field(handle, conf, FNPORTS, DLADM_TYPE_UINT64,
1149 if (status != DLADM_STATUS_OK)
1154 status = DLADM_STATUS_NOMEM;
1159 status = write_port(handle, portstr, ports[i].lp_linkid, size);
1160 if (status != DLADM_STATUS_OK) {
1165 status = dladm_set_conf_field(handle, conf, FPORTS, DLADM_TYPE_STR,
1168 if (status != DLADM_STATUS_OK)
1172 status = dladm_set_conf_field(handle, conf, FAGGRMODE,
1174 if (status != DLADM_STATUS_OK)
1178 status = dladm_set_conf_field(handle, conf, FPOLICY, DLADM_TYPE_UINT64,
1180 if (status != DLADM_STATUS_OK)
1183 status = dladm_set_conf_field(handle, conf, FFIXMACADDR,
1185 if (status != DLADM_STATUS_OK)
1190 status = DLADM_STATUS_MACADDRINVAL;
1195 status = dladm_set_conf_field(handle, conf, FMACADDR,
1197 if (status != DLADM_STATUS_OK)
1201 status = dladm_set_conf_field(handle, conf, FFORCE, DLADM_TYPE_BOOLEAN,
1203 if (status != DLADM_STATUS_OK)
1207 status = dladm_set_conf_field(handle, conf, FLACPMODE,
1209 if (status != DLADM_STATUS_OK)
1213 status = dladm_set_conf_field(handle, conf, FLACPTIMER,
1215 if (status != DLADM_STATUS_OK)
1221 status = dladm_write_conf(handle, conf, linkid);
1225 return (status);
1243 dladm_status_t status;
1253 status = dladm_datalink_id2info(handle, ports[i].lp_linkid,
1255 if (status != DLADM_STATUS_OK ||
1276 if ((status = dladm_create_datalink_id(handle, name,
1283 (status = dladm_aggr_persist_aggr_conf(handle, name, linkid, key,
1292 status = i_dladm_aggr_create_sys(handle, linkid, key, nports, ports,
1296 if (status != DLADM_STATUS_OK) {
1308 return (status);
1315 dladm_status_t status = DLADM_STATUS_OK;
1320 status = dladm_get_conf_field(handle, conf, FAGGRMODE, &u64,
1326 if (status != DLADM_STATUS_OK &&
1327 status != DLADM_STATUS_NOTFOUND) {
1328 return (status);
1329 } else if (status == DLADM_STATUS_NOTFOUND) {
1331 status = DLADM_STATUS_OK;
1338 status = dladm_get_conf_field(handle, conf, FPOLICY, &u64,
1340 if (status != DLADM_STATUS_OK)
1341 return (status);
1346 status = dladm_get_conf_field(handle, conf, FFIXMACADDR,
1348 if (status != DLADM_STATUS_OK)
1349 return (status);
1354 status = dladm_get_conf_field(handle, conf, FMACADDR,
1356 if (status != DLADM_STATUS_OK)
1357 return (status);
1367 status = dladm_get_conf_field(handle, conf, FLACPMODE, &u64,
1369 if (status != DLADM_STATUS_OK)
1370 return (status);
1375 status = dladm_get_conf_field(handle, conf, FLACPTIMER, &u64,
1377 if (status != DLADM_STATUS_OK)
1378 return (status);
1382 return (status);
1389 dladm_status_t status = DLADM_STATUS_OK;
1395 status = dladm_set_conf_field(handle, conf, FAGGRMODE,
1397 if (status != DLADM_STATUS_OK)
1398 return (status);
1403 status = dladm_set_conf_field(handle, conf, FPOLICY,
1405 if (status != DLADM_STATUS_OK)
1406 return (status);
1410 status = dladm_set_conf_field(handle, conf, FFIXMACADDR,
1412 if (status != DLADM_STATUS_OK)
1413 return (status);
1417 status = dladm_set_conf_field(handle, conf, FMACADDR,
1419 if (status != DLADM_STATUS_OK)
1420 return (status);
1426 status = dladm_set_conf_field(handle, conf, FLACPMODE,
1428 if (status != DLADM_STATUS_OK)
1429 return (status);
1434 status = dladm_set_conf_field(handle, conf, FLACPTIMER,
1436 if (status != DLADM_STATUS_OK)
1437 return (status);
1440 return (status);
1455 dladm_status_t status;
1465 status = dladm_open_conf(handle, linkid, &conf);
1466 if (status != DLADM_STATUS_OK)
1467 return (status);
1469 if ((status = i_dladm_aggr_get_aggr_attr(handle, conf,
1474 if ((status = i_dladm_aggr_set_aggr_attr(handle, conf,
1479 status = dladm_write_conf(handle, conf, linkid);
1483 if (status != DLADM_STATUS_OK)
1484 return (status);
1490 status = i_dladm_aggr_modify_sys(handle, linkid, modify_mask,
1492 if ((status != DLADM_STATUS_OK) && (flags & DLADM_OPT_PERSIST)) {
1502 return (status);
1535 dladm_status_t status;
1539 status = dladm_aggr_info(handle, linkid, &attr, DLADM_OPT_ACTIVE);
1540 if (status != DLADM_STATUS_OK)
1545 status = dladm_datalink_id2info(handle,
1548 if (status != DLADM_STATUS_OK)
1567 dladm_status_t status;
1582 status = i_dladm_aggr_delete_sys(handle, linkid);
1583 if (status == DLADM_STATUS_OK) {
1587 } else if (status != DLADM_STATUS_NOTFOUND ||
1589 return (status);
1652 dladm_status_t status;
1659 status = dladm_get_conf_field(handle, conf, FKEY, &u64, sizeof (u64));
1663 if ((status == DLADM_STATUS_OK) && (key == statep->key)) {