Lines Matching defs:linkid
874 check_prop(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
898 i_dladm_set_single_prop(dladm_handle_t handle, datalink_id_t linkid,
929 status = pdp->pd_check(handle, pdp, linkid, prop_val,
932 status = check_prop(handle, pdp, linkid, prop_val,
958 status = pdp->pd_check(handle, pdp, linkid,
964 status = i_dladm_getset_defval(handle, pdp, linkid,
973 status = pdp->pd_set(handle, pdp, linkid, vdp, cnt, flags,
985 i_dladm_set_linkprop(dladm_handle_t handle, datalink_id_t linkid,
994 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1007 s = i_dladm_set_single_prop(handle, linkid, class, media, pdp,
1022 status = i_dladm_set_private_prop(handle, linkid,
1035 dladm_set_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1040 if ((linkid == DATALINK_INVALID_LINKID) || (flags == 0) ||
1051 status = i_dladm_set_linkprop(handle, linkid, prop_name, prop_val,
1057 status = i_dladm_set_linkprop_db(handle, linkid, prop_name,
1070 status = pdp->pd_set(handle, pdp, linkid, NULL,
1087 dladm_walk_linkprop(dladm_handle_t handle, datalink_id_t linkid, void *arg,
1095 if (linkid == DATALINK_INVALID_LINKID || func == NULL)
1098 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1111 if (func(handle, linkid, prop_table[i].pd_name, arg) ==
1118 status = i_dladm_walk_linkprop_priv_db(handle, linkid, arg, func);
1127 dladm_get_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1144 if (linkid == DATALINK_INVALID_LINKID || prop_name == NULL ||
1158 return (i_dladm_get_linkprop_db(handle, linkid,
1161 return (i_dladm_get_priv_prop(handle, linkid,
1171 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1184 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1192 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1216 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1226 status = pdp->pd_getmod(handle, pdp, linkid, prop_val,
1246 status = i_dladm_get_linkprop_db(handle, linkid, prop_name,
1263 dladm_get_linkprop_values(dladm_handle_t handle, datalink_id_t linkid,
1276 if (linkid == DATALINK_INVALID_LINKID || prop_name == NULL ||
1290 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1313 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1336 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1344 status = i_dladm_get_linkprop_db(handle, linkid,
1361 status = pdp->pd_check(handle, pdp, linkid,
1393 i_dladm_init_one_prop(dladm_handle_t handle, datalink_id_t linkid,
1413 if (dladm_get_linkprop(handle, linkid, DLADM_PROP_VAL_PERSISTENT,
1418 status = dladm_set_linkprop(handle, linkid, prop_name, propvals,
1433 i_dladm_init_linkprop(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1438 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1444 (void) dladm_init_linkprop(handle, linkid, B_TRUE);
1450 dladm_init_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1466 if (linkid == DATALINK_ALL_LINKID) {
1470 ((dladm_datalink_id2info(handle, linkid, NULL, NULL, &media, NULL,
1473 (void) dladm_walk_linkprop(handle, linkid, (void *)dla,
1483 get_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1494 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1542 datalink_id_t linkid, boolean_t add)
1558 status = dladm_linkid2legacyname(handle, linkid, name, MAXLINKNAMELEN);
1583 set_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1595 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1604 if ((status = set_public_prop(handle, pdp, linkid, vdp, val_cnt,
1613 (void) i_dladm_update_deventry(handle, zid_old, linkid,
1617 (void) i_dladm_update_deventry(handle, zid_new, linkid, B_TRUE);
1624 check_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1666 dzp->diz_linkid = linkid;
1677 get_maxbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1684 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
1701 check_maxbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1750 get_cpus(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1760 status = i_dladm_get_public_prop(handle, linkid,
1764 status = i_dladm_get_public_prop(handle, linkid,
1800 check_cpus(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1817 status = i_dladm_get_public_prop(handle, linkid, "resource", 0,
1931 get_pool(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1939 status = i_dladm_get_public_prop(handle, linkid,
1943 status = i_dladm_get_public_prop(handle, linkid,
1963 check_pool(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1976 status = i_dladm_get_public_prop(handle, linkid, "resource", 0,
2046 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2053 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
2110 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
2133 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2144 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
2187 get_rxrings(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2199 status = i_dladm_get_public_prop(handle, linkid,
2206 status = i_dladm_get_public_prop(handle, linkid, "rxrings",
2211 status = i_dladm_get_public_prop(handle, linkid,
2253 get_txrings(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2266 status = i_dladm_get_public_prop(handle, linkid,
2273 status = i_dladm_get_public_prop(handle, linkid, "txrings",
2281 status = i_dladm_get_public_prop(handle, linkid, "resource",
2323 get_cntavail(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2330 return (get_uint32(handle, pdp, linkid, prop_val, val_cnt, media,
2337 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt,
2346 dip = i_dladm_buf_alloc_by_name(0, linkid, "resource",
2376 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2384 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
2408 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2416 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
2584 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
2869 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2877 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
2922 datalink_id_t linkid, char **prop_val, uint_t *val_cntp,
2958 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2965 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
2988 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
3025 set_secondary_macs(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
3033 dip = i_dladm_buf_alloc_by_name(0, linkid, "secondary-macs", 0,
3057 get_autopush(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3068 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
3136 check_autopush(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3179 datalink_id_t linkid, char **prop_val, uint_t *val_cnt, uint_t id,
3190 status = i_dladm_wlan_param(handle, linkid, wrp, id, WLDP_BUFSIZE,
3220 get_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3225 return (get_speed(handle, pdp, linkid, prop_val,
3229 return (get_rate_common(handle, pdp, linkid, prop_val, val_cnt,
3235 get_rate_mod(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3248 return (get_rate_common(handle, pdp, linkid, prop_val,
3256 set_wlan_rate(dladm_handle_t handle, datalink_id_t linkid,
3275 status = i_dladm_wlan_param(handle, linkid, wrp,
3284 set_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3302 status = set_wlan_rate(handle, linkid, &rates);
3309 check_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3337 status = get_rate_mod(handle, NULL, linkid, modval, &modval_cnt,
3358 get_phyconf(dladm_handle_t handle, datalink_id_t linkid, void *buf,
3361 return (i_dladm_wlan_param(handle, linkid, buf, MAC_PROP_WL_PHY_CONFIG,
3368 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3376 if ((status = get_phyconf(handle, linkid, buf, sizeof (buf)))
3393 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3401 if ((status = i_dladm_wlan_param(handle, linkid, buf,
3428 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt, uint_t flags,
3452 return (i_dladm_wlan_param(handle, linkid, &ps_mode,
3458 get_radio(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3467 if ((status = i_dladm_wlan_param(handle, linkid, buf,
3490 set_radio(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3509 return (i_dladm_wlan_param(handle, linkid, &r, MAC_PROP_WL_RADIO,
3516 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
3538 check_encaplim(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3563 i_dladm_set_linkprop_db(dladm_handle_t handle, datalink_id_t linkid,
3571 status = dladm_open_conf(handle, linkid, &conf);
3603 i_dladm_get_linkprop_db(dladm_handle_t handle, datalink_id_t linkid,
3611 status = dladm_getsnap_conf(handle, linkid, &conf);
3640 i_dladm_walk_linkprop_priv_db(dladm_handle_t handle, datalink_id_t linkid,
3650 if (linkid == DATALINK_INVALID_LINKID || func == NULL)
3653 status = dladm_getsnap_conf(handle, linkid, &conf);
3661 if (func(handle, linkid, attr, arg) ==
3697 i_dladm_buf_alloc_impl(size_t valsize, datalink_id_t linkid,
3714 dip->pr_linkid = linkid;
3721 i_dladm_buf_alloc_by_name(size_t valsize, datalink_id_t linkid,
3728 return (i_dladm_buf_alloc_impl(valsize, linkid, prop_name, p->pp_id,
3733 i_dladm_buf_alloc_by_id(size_t valsize, datalink_id_t linkid,
3740 return (i_dladm_buf_alloc_impl(valsize, linkid, p->pp_name, propid,
3747 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt, uint_t flags,
3757 dip = i_dladm_buf_alloc_by_name(0, linkid, pdp->pd_name, 0, &status);
3812 i_dladm_get_public_prop(dladm_handle_t handle, datalink_id_t linkid,
3818 dip = i_dladm_buf_alloc_by_name(0, linkid, prop_name, flags, &status);
3840 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
3855 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3861 if ((status = dladm_get_single_mac_stat(handle, linkid, "link_duplex",
3882 get_speed(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3889 if ((status = dladm_get_single_mac_stat(handle, linkid, "ifspeed",
3908 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3914 status = dladm_get_state(handle, linkid, &link_state);
3937 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3943 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
3956 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3962 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
3975 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3993 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
4054 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4060 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4082 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4088 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4114 i_dladm_set_private_prop(dladm_handle_t handle, datalink_id_t linkid,
4150 dip = i_dladm_buf_alloc_by_name(bufsize + 1, linkid, prop_name,
4184 i_dladm_get_priv_prop(dladm_handle_t handle, datalink_id_t linkid,
4203 dip = i_dladm_buf_alloc_by_name(DLADM_PROP_BUF_CHUNK, linkid, prop_name,
4230 datalink_id_t linkid, datalink_media_t media, uint_t flags)
4264 status = pdp->pd_get(handle, pdp, linkid, prop_vals, &cnt, media,
4268 status = i_dladm_set_single_prop(handle, linkid,
4280 get_stp(dladm_handle_t handle, struct prop_desc *pd, datalink_id_t linkid,
4295 retv = dladm_bridge_get_port_cfg(handle, linkid, bpp->bpp_code, &val);
4298 if (i_dladm_get_linkprop_db(handle, linkid, pd->pd_name,
4326 set_stp_prop(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
4337 return (dladm_bridge_refresh(handle, linkid));
4346 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
4395 if (dladm_bridge_getlink(handle, linkid, bridge,
4410 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4420 retv = dladm_bridge_get_forwarding(handle, linkid, &val);
4422 if (i_dladm_get_linkprop_db(handle, linkid, pd->pd_name,
4437 set_bridge_forward(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
4441 return (dladm_bridge_refresh(handle, linkid));
4447 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4458 dip = i_dladm_buf_alloc_by_id(sizeof (uint16_t), linkid, MAC_PROP_PVID,
4475 set_bridge_pvid(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
4482 dip = i_dladm_buf_alloc_by_id(sizeof (uint16_t), linkid, MAC_PROP_PVID,
4494 return (dladm_bridge_refresh(handle, linkid));
4500 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
4524 i_dladm_wlan_param(dladm_handle_t handle, datalink_id_t linkid, void *buf,
4533 if ((status = dladm_datalink_id2info(handle, linkid, &flags, NULL,
4547 dip = i_dladm_buf_alloc_by_id(len, linkid, cmd, 0, &status);
4576 i_dladm_get_one_prop(dladm_handle_t handle, datalink_id_t linkid,
4589 (void) dladm_get_linkprop(handle, linkid, DLADM_PROP_VAL_PERSISTENT,
4604 dladm_link_get_proplist(dladm_handle_t handle, datalink_id_t linkid,
4614 status = dladm_walk_linkprop(handle, linkid, list,
4722 dladm_get_state(dladm_handle_t handle, datalink_id_t linkid,
4727 return (i_dladm_get_public_prop(handle, linkid, "state", 0,
4761 dladm_linkprop_is_set(dladm_handle_t handle, datalink_id_t linkid,
4784 if (dladm_get_linkprop(handle, linkid, type, prop_name, propvals,
4817 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4824 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4849 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4856 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4874 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt, uint_t flags,
4880 dip = i_dladm_buf_alloc_by_name(0, linkid, pdp->pd_name,