Lines Matching defs:linkid

976 check_prop(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1000 i_dladm_set_single_prop(dladm_handle_t handle, datalink_id_t linkid,
1027 if (dladm_open_conf(handle, linkid, &conf) != DLADM_STATUS_OK)
1051 status = pdp->pd_check(handle, pdp, linkid, prop_val,
1054 status = check_prop(handle, pdp, linkid, prop_val,
1081 status = pdp->pd_check(handle, pdp, linkid,
1091 status = i_dladm_getset_defval(handle, pdp, linkid,
1101 status = pdp->pd_set(handle, pdp, linkid, vdp, cnt,
1115 i_dladm_set_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1124 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1137 s = i_dladm_set_single_prop(handle, linkid, class, media, pdp,
1152 status = i_dladm_set_private_prop(handle, linkid,
1165 dladm_set_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1170 if ((linkid == DATALINK_INVALID_LINKID) || (flags == 0) ||
1181 status = i_dladm_set_linkprop(handle, linkid, prop_name, prop_val,
1197 status = i_dladm_set_linkprop_db(handle, linkid, prop_name,
1202 status = pdp->pd_set(handle, pdp, linkid, NULL,
1211 i_dladm_reset_one_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1217 status = dladm_set_linkprop(handle, linkid, propname, NULL, 0,
1228 i_dladm_reset_all_linkprops(dladm_handle_t handle, datalink_id_t linkid,
1233 (void) dladm_reset_all_linkprops(handle, linkid, dla->dla_flags);
1241 dladm_reset_all_linkprops(dladm_handle_t handle, datalink_id_t linkid,
1252 if (linkid == DATALINK_ALL_LINKID) {
1257 (void) dladm_walk_linkprop(handle, linkid, &dla,
1273 dladm_walk_linkprop(dladm_handle_t handle, datalink_id_t linkid, void *arg,
1281 if (linkid == DATALINK_INVALID_LINKID || func == NULL)
1284 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1297 if (func(handle, linkid, prop_table[i].pd_name, arg) ==
1304 status = i_dladm_walk_linkprop_priv_db(handle, linkid, arg, func);
1313 dladm_get_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1330 if (linkid == DATALINK_INVALID_LINKID || prop_name == NULL ||
1344 return (i_dladm_get_linkprop_db(handle, linkid,
1347 return (i_dladm_get_priv_prop(handle, linkid,
1357 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1370 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1378 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1402 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1412 status = pdp->pd_getmod(handle, pdp, linkid, prop_val,
1433 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1436 status = i_dladm_get_linkprop_db(handle, linkid,
1454 dladm_get_linkprop_values(dladm_handle_t handle, datalink_id_t linkid,
1467 if (linkid == DATALINK_INVALID_LINKID || prop_name == NULL ||
1481 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1504 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1527 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1535 status = i_dladm_get_linkprop_db(handle, linkid,
1552 status = pdp->pd_check(handle, pdp, linkid,
1584 i_dladm_init_one_prop(dladm_handle_t handle, datalink_id_t linkid,
1604 if (dladm_get_linkprop(handle, linkid, DLADM_PROP_VAL_PERSISTENT,
1609 status = dladm_set_linkprop(handle, linkid, prop_name, propvals,
1624 i_dladm_init_linkprop(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1629 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1635 (void) dladm_init_linkprop(handle, linkid, B_TRUE);
1641 dladm_init_linkprop(dladm_handle_t handle, datalink_id_t linkid,
1657 if (linkid == DATALINK_ALL_LINKID) {
1661 ((dladm_datalink_id2info(handle, linkid, NULL, NULL, &media, NULL,
1664 (void) dladm_walk_linkprop(handle, linkid, (void *)dla,
1674 get_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1685 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1733 datalink_id_t linkid, boolean_t add)
1749 status = dladm_linkid2legacyname(handle, linkid, name, MAXLINKNAMELEN);
1812 set_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1824 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1838 (void) dladm_walk_flow(gz_rm_flow_wrapper, handle, linkid,
1841 if ((status = set_public_prop(handle, pdp, linkid, vdp, val_cnt,
1850 (void) i_dladm_update_deventry(handle, zid_old, linkid,
1854 (void) i_dladm_update_deventry(handle, zid_new, linkid, B_TRUE);
1860 (void) dladm_walk_flow(gz_add_flow_wrapper, handle, linkid,
1869 check_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1911 dzp->diz_linkid = linkid;
1922 get_cos(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1929 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
1961 check_cos(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1989 get_maxbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1996 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
2013 check_maxbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2062 check_pfcmap(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2096 dladm_get_etsbat(dladm_handle_t handle, datalink_id_t linkid, uint8_t *bw_arr,
2104 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
2112 status = i_dladm_get_public_prop(handle, linkid, "etsbat", 0,
2132 dladm_set_etsbat(dladm_handle_t handle, datalink_id_t linkid,
2146 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
2184 dip = i_dladm_buf_alloc_by_name(0, linkid, "etsbat", 0, &status);
2199 get_etsbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2218 status = i_dladm_get_public_prop(handle, linkid, restype, flags,
2253 check_etsbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2319 get_cpus(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2329 status = i_dladm_get_public_prop(handle, linkid,
2333 status = i_dladm_get_public_prop(handle, linkid,
2373 check_cpus(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2390 status = i_dladm_get_public_prop(handle, linkid, "resource", 0,
2498 get_rxfanout(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2507 status = i_dladm_get_public_prop(handle, linkid,
2514 status = i_dladm_get_public_prop(handle, linkid,
2535 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
2574 get_pool(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2582 status = i_dladm_get_public_prop(handle, linkid,
2586 status = i_dladm_get_public_prop(handle, linkid,
2606 check_pool(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2618 status = i_dladm_get_public_prop(handle, linkid, "resource", 0,
2683 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2690 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
2747 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
2770 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2781 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
2824 get_rxrings(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2836 status = i_dladm_get_public_prop(handle, linkid,
2843 status = i_dladm_get_public_prop(handle, linkid, "rxrings",
2848 status = i_dladm_get_public_prop(handle, linkid,
2890 get_txrings(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2903 status = i_dladm_get_public_prop(handle, linkid,
2910 status = i_dladm_get_public_prop(handle, linkid, "txrings",
2918 status = i_dladm_get_public_prop(handle, linkid, "resource",
2960 get_cntavail(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2967 return (get_uint32(handle, pdp, linkid, prop_val, val_cnt, media,
2974 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt,
2983 dip = i_dladm_buf_alloc_by_name(0, linkid, "resource",
3015 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3023 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
3062 datalink_id_t linkid, char **prop_val, uint_t *val_cntp,
3068 status = i_dladm_get_public_prop(handle, linkid, "lro",
3083 datalink_id_t linkid, char **prop_val, uint_t *val_cntp,
3089 status = i_dladm_get_public_prop(handle, linkid, "lro-effective",
3104 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt, uint_t flags,
3107 return (set_public_prop(handle, pdp, linkid, vdp, val_cnt,
3113 check_mac_addr(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3126 status = dladm_datalink_id2info(handle, linkid, NULL, &class,
3162 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt, uint_t flags,
3165 return (set_public_prop(handle, pdp, linkid, vdp, val_cnt,
3172 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3180 status = dladm_datalink_id2info(handle, linkid, NULL, &class,
3185 status = i_dladm_get_public_prop(handle, linkid, "mac-address",
3206 set_nwam(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3219 get_nwam(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3227 if (i_dladm_get_linkprop_db(handle, linkid, pdp->pd_name, prop_val,
3245 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3253 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
3352 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
3637 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3645 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
3690 datalink_id_t linkid, char **prop_val, uint_t *val_cntp,
3725 get_autopush(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3736 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
3804 check_autopush(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3847 datalink_id_t linkid, char **prop_val, uint_t *val_cnt, uint_t id,
3858 status = i_dladm_wlan_param(handle, linkid, wrp, id, WLDP_BUFSIZE,
3888 get_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3893 return (get_speed(handle, pdp, linkid, prop_val,
3897 return (get_rate_common(handle, pdp, linkid, prop_val, val_cnt,
3903 get_rate_mod(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3916 return (get_rate_common(handle, pdp, linkid, prop_val,
3924 set_wlan_rate(dladm_handle_t handle, datalink_id_t linkid,
3943 status = i_dladm_wlan_param(handle, linkid, wrp,
3952 set_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3970 status = set_wlan_rate(handle, linkid, &rates);
3977 check_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
4005 status = get_rate_mod(handle, NULL, linkid, modval, &modval_cnt,
4026 get_phyconf(dladm_handle_t handle, datalink_id_t linkid, void *buf,
4029 return (i_dladm_wlan_param(handle, linkid, buf, MAC_PROP_WL_PHY_CONFIG,
4036 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4044 if ((status = get_phyconf(handle, linkid, buf, sizeof (buf)))
4061 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4069 if ((status = i_dladm_wlan_param(handle, linkid, buf,
4096 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt, uint_t flags,
4120 return (i_dladm_wlan_param(handle, linkid, &ps_mode,
4126 get_radio(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
4135 if ((status = i_dladm_wlan_param(handle, linkid, buf,
4158 set_radio(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
4177 return (i_dladm_wlan_param(handle, linkid, &r, MAC_PROP_WL_RADIO,
4184 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
4206 check_encaplim(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
4231 i_dladm_set_linkprop_db(dladm_handle_t handle, datalink_id_t linkid,
4239 status = dladm_open_conf(handle, linkid, &conf);
4249 status = dladm_write_conf(handle, conf, linkid);
4264 status = dladm_write_conf(handle, conf, linkid);
4272 i_dladm_get_linkprop_db(dladm_handle_t handle, datalink_id_t linkid,
4280 status = dladm_getsnap_conf(handle, linkid, &conf);
4309 i_dladm_walk_linkprop_priv_db(dladm_handle_t handle, datalink_id_t linkid,
4319 if (linkid == DATALINK_INVALID_LINKID || func == NULL)
4322 status = dladm_getsnap_conf(handle, linkid, &conf);
4330 if (func(handle, linkid, attr, arg) ==
4366 i_dladm_buf_alloc_impl(size_t valsize, datalink_id_t linkid,
4383 dip->pr_linkid = linkid;
4390 i_dladm_buf_alloc_by_name(size_t valsize, datalink_id_t linkid,
4397 return (i_dladm_buf_alloc_impl(valsize, linkid, prop_name, p->pp_id,
4402 i_dladm_buf_alloc_by_id(size_t valsize, datalink_id_t linkid,
4409 return (i_dladm_buf_alloc_impl(valsize, linkid, p->pp_name, propid,
4416 datalink_id_t linkid, val_desc_t *vdp, uint_t val_cnt, uint_t flags,
4426 dip = i_dladm_buf_alloc_by_name(0, linkid, pdp->pd_name, 0, &status);
4482 i_dladm_get_public_prop(dladm_handle_t handle, datalink_id_t linkid,
4488 dip = i_dladm_buf_alloc_by_name(0, linkid, prop_name, flags, &status);
4510 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
4525 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4531 if ((status = dladm_get_single_mac_stat(handle, linkid, "link_duplex",
4552 get_speed(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
4559 if ((status = dladm_get_single_mac_stat(handle, linkid, "ifspeed",
4578 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4584 status = dladm_get_state(handle, linkid, &link_state);
4607 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4613 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4626 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4648 status = i_dladm_get_public_prop(handle, linkid, restype,
4673 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4683 status = dladm_datalink_id2info(handle, linkid, NULL,
4704 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4717 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4723 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4736 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4742 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4755 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4773 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
4834 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4840 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4862 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4868 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4936 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
4995 get_vsimgrenc(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
5003 status = i_dladm_get_public_prop(handle, linkid,
5009 status = i_dladm_get_public_prop(handle, linkid, "resource",
5027 get_vsimgrid(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
5035 status = i_dladm_get_public_prop(handle, linkid,
5041 status = i_dladm_get_public_prop(handle, linkid, "resource",
5058 get_vsitypeid(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
5066 status = i_dladm_get_public_prop(handle, linkid,
5072 status = i_dladm_get_public_prop(handle, linkid, "resource",
5089 get_vsiversion(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
5097 status = i_dladm_get_public_prop(handle, linkid,
5103 status = i_dladm_get_public_prop(handle, linkid, "resource",
5140 i_dladm_set_private_prop(dladm_handle_t handle, datalink_id_t linkid,
5176 dip = i_dladm_buf_alloc_by_name(bufsize + 1, linkid, prop_name,
5210 i_dladm_get_priv_prop(dladm_handle_t handle, datalink_id_t linkid,
5229 dip = i_dladm_buf_alloc_by_name(DLADM_PROP_BUF_CHUNK, linkid, prop_name,
5256 datalink_id_t linkid, datalink_media_t media, uint_t flags)
5290 status = pdp->pd_get(handle, pdp, linkid, prop_vals, &cnt, media,
5294 status = i_dladm_set_single_prop(handle, linkid,
5305 get_stp(dladm_handle_t handle, struct prop_desc *pd, datalink_id_t linkid,
5320 retv = dladm_bridge_get_port_cfg(handle, linkid, bpp->bpp_code, &val);
5323 if (i_dladm_get_linkprop_db(handle, linkid, pd->pd_name,
5351 set_stp_prop(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
5362 return (dladm_bridge_refresh(handle, linkid));
5371 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
5420 if (dladm_bridge_getlink(handle, linkid, bridge,
5435 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
5445 retv = dladm_bridge_get_forwarding(handle, linkid, &val);
5447 if (i_dladm_get_linkprop_db(handle, linkid, pd->pd_name,
5462 set_bridge_forward(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
5466 return (dladm_bridge_refresh(handle, linkid));
5472 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
5483 dip = i_dladm_buf_alloc_by_id(sizeof (uint16_t), linkid, MAC_PROP_PVID,
5500 set_bridge_pvid(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
5507 dip = i_dladm_buf_alloc_by_id(sizeof (uint16_t), linkid, MAC_PROP_PVID,
5519 return (dladm_bridge_refresh(handle, linkid));
5525 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
5550 set_vlan_announce(dladm_handle_t handle, prop_desc_t *pd, datalink_id_t linkid,
5558 linkid, MAC_PROP_VLAN_ANNOUNCE, 0, &status);
5569 return (dladm_bridge_refresh(handle, linkid));
5575 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
5586 dip = i_dladm_buf_alloc_by_id(sizeof (mac_vlan_announce_t), linkid,
5607 i_dladm_wlan_param(dladm_handle_t handle, datalink_id_t linkid, void *buf,
5616 if ((status = dladm_datalink_id2info(handle, linkid, &flags, NULL,
5630 dip = i_dladm_buf_alloc_by_id(len, linkid, cmd, 0, &status);
5659 i_dladm_get_one_prop(dladm_handle_t handle, datalink_id_t linkid,
5672 (void) dladm_get_linkprop(handle, linkid, DLADM_PROP_VAL_PERSISTENT,
5687 dladm_link_get_proplist(dladm_handle_t handle, datalink_id_t linkid,
5697 status = dladm_walk_linkprop(handle, linkid, list,
5805 dladm_get_state(dladm_handle_t handle, datalink_id_t linkid,
5810 return (i_dladm_get_public_prop(handle, linkid, "state", 0,
5849 dladm_linkprop_is_set(dladm_handle_t handle, datalink_id_t linkid,
5872 if (dladm_get_linkprop(handle, linkid, type, prop_name, propvals,
5903 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
5910 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,