Lines Matching defs:linkid

214 i_dladm_aggr_info_active(dladm_handle_t handle, datalink_id_t linkid,
227 ioc->li_group_linkid = linkid;
269 i_dladm_aggr_info_persist(dladm_handle_t handle, datalink_id_t linkid,
280 attrp->lg_linkid = linkid;
281 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
381 i_dladm_aggr_is_dcbmode(dladm_handle_t handle, datalink_id_t linkid)
389 if (dladm_get_linkprop(handle, linkid, DLADM_PROP_VAL_CURRENT,
398 dladm_aggr_info(dladm_handle_t handle, datalink_id_t linkid,
404 return (i_dladm_aggr_info_active(handle, linkid, attrp));
406 return (i_dladm_aggr_info_persist(handle, linkid, attrp));
413 i_dladm_aggr_add_rmv(dladm_handle_t handle, datalink_id_t linkid,
465 status = dladm_open_conf(handle, linkid, &conf);
579 status = dladm_write_conf(handle, conf, linkid);
605 iocp->la_linkid = linkid;
625 if (dladm_open_conf(handle, linkid, &conf) == DLADM_STATUS_OK) {
631 (void) dladm_write_conf(handle, conf, linkid);
644 i_dladm_aggr_modify_sys(dladm_handle_t handle, datalink_id_t linkid,
649 ioc.lu_linkid = linkid;
684 i_dladm_aggr_create_sys(dladm_handle_t handle, datalink_id_t linkid,
701 iocp->lc_linkid = linkid;
733 i_dladm_aggr_up(dladm_handle_t handle, datalink_id_t linkid, void *arg)
742 status = dladm_aggr_info(handle, linkid, &attr, DLADM_OPT_PERSIST);
791 if ((status = i_dladm_aggr_create_sys(handle, linkid,
798 if ((status = dladm_up_datalink_id(handle, linkid)) !=
802 ioc.ld_linkid = linkid;
818 dladm_aggr_up(dladm_handle_t handle, datalink_id_t linkid)
822 if (linkid == DATALINK_ALL_LINKID) {
828 (void) i_dladm_aggr_up(handle, linkid, &status);
834 i_dladm_aggr_delete_sys(dladm_handle_t handle, datalink_id_t linkid)
840 ioc.ld_linkid = linkid;
846 (void) dladm_destroy_datalink_id(handle, linkid, DLADM_OPT_ACTIVE);
855 i_dladm_aggr_down(dladm_handle_t handle, datalink_id_t linkid, void *arg)
860 status = i_dladm_aggr_delete_sys(handle, linkid);
868 * configuration and linkid mapping in dlmgmtd is not removed. Downed
872 dladm_aggr_down(dladm_handle_t handle, datalink_id_t linkid)
876 if (linkid == DATALINK_ALL_LINKID) {
881 (void) i_dladm_aggr_down(handle, linkid, &status);
1123 datalink_id_t linkid, uint16_t key, uint32_t nports,
1135 if ((status = dladm_create_conf(handle, link, linkid,
1221 status = dladm_write_conf(handle, conf, linkid);
1238 datalink_id_t linkid = DATALINK_INVALID_LINKID;
1277 DATALINK_CLASS_AGGR, DL_ETHER, flags, &linkid)) !=
1283 (status = dladm_aggr_persist_aggr_conf(handle, name, linkid, key,
1292 status = i_dladm_aggr_create_sys(handle, linkid, key, nports, ports,
1298 (void) dladm_remove_conf(handle, linkid);
1305 if (linkid != DATALINK_INVALID_LINKID)
1306 (void) dladm_destroy_datalink_id(handle, linkid, flags);
1448 dladm_aggr_modify(dladm_handle_t handle, datalink_id_t linkid,
1465 status = dladm_open_conf(handle, linkid, &conf);
1479 status = dladm_write_conf(handle, conf, linkid);
1490 status = i_dladm_aggr_modify_sys(handle, linkid, modify_mask,
1493 if (dladm_open_conf(handle, linkid, &conf) == DLADM_STATUS_OK) {
1496 (void) dladm_write_conf(handle, conf, linkid);
1511 i_dladm_aggr_is_held(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1516 if (dladm_vlan_info(handle, linkid, &dva, DLADM_OPT_PERSIST) !=
1532 aggr_port_lldp_enabled(dladm_handle_t handle, datalink_id_t linkid)
1539 status = dladm_aggr_info(handle, linkid, &attr, DLADM_OPT_ACTIVE);
1564 dladm_aggr_delete(dladm_handle_t handle, datalink_id_t linkid, uint32_t flags)
1569 if ((dladm_datalink_id2info(handle, linkid, NULL, &class, NULL, NULL,
1578 if (aggr_port_lldp_enabled(handle, linkid))
1582 status = i_dladm_aggr_delete_sys(handle, linkid);
1585 (void) dladm_set_linkprop(handle, linkid, NULL, NULL, 0,
1602 arg.aggrid = linkid;
1611 (void) dladm_remove_conf(handle, linkid);
1612 (void) dladm_destroy_datalink_id(handle, linkid,
1623 dladm_aggr_add(dladm_handle_t handle, datalink_id_t linkid, uint32_t nports,
1626 return (i_dladm_aggr_add_rmv(handle, linkid, nports, ports, flags,
1634 dladm_aggr_remove(dladm_handle_t handle, datalink_id_t linkid, uint32_t nports,
1637 return (i_dladm_aggr_add_rmv(handle, linkid, nports, ports, flags,
1643 datalink_id_t linkid;
1648 i_dladm_walk_key2linkid(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1656 if (dladm_getsnap_conf(handle, linkid, &conf) != DLADM_STATUS_OK)
1665 statep->linkid = linkid;
1687 *linkidp = state.linkid;