Lines Matching defs:linkid
48 datalink_id_t linkid;
169 dladm_get_single_mac_stat(dladm_handle_t handle, datalink_id_t linkid,
181 if ((status = dladm_datalink_id2info(handle, linkid, &flags, NULL,
188 status = dladm_phys_info(handle, linkid, &dpap, DLADM_OPT_PERSIST);
1232 i_dlstat_rx_swlane_stats(dladm_handle_t dh, datalink_id_t linkid,
1241 dlstat_rx_lane_stats(dladm_handle_t dh, datalink_id_t linkid)
1251 if (dladm_datalink_id2info(dh, linkid, NULL, NULL, NULL, linkname,
1257 if (dladm_linkprop_is_set(dh, linkid, DLADM_PROP_VAL_CURRENT,
1272 lane_stats = i_dlstat_rx_swlane_stats(dh, linkid, linkname);
1446 i_dlstat_tx_swlane_stats(dladm_handle_t dh, datalink_id_t linkid,
1455 dlstat_tx_lane_stats(dladm_handle_t dh, datalink_id_t linkid)
1464 if (dladm_datalink_id2info(dh, linkid, NULL, NULL, NULL, linkname,
1470 if (dladm_linkprop_is_set(dh, linkid, DLADM_PROP_VAL_CURRENT,
1484 lane_stats = i_dlstat_tx_swlane_stats(dh, linkid, linkname);
1495 dlstat_rx_lane_total_stats(dladm_handle_t dh, datalink_id_t linkid)
1502 rx_lane_head = dlstat_rx_lane_stats(dh, linkid);
1539 dlstat_tx_lane_total_stats(dladm_handle_t dh, datalink_id_t linkid)
1546 tx_lane_head = dlstat_tx_lane_stats(dh, linkid);
1638 i_dlstat_query_fanout_stats(dladm_handle_t dh, datalink_id_t linkid,
1650 if (dladm_datalink_id2info(dh, linkid, NULL, NULL, NULL, linkname,
1695 dlstat_fanout_swlane_and_local_stats(dladm_handle_t dh, datalink_id_t linkid,
1698 return (i_dlstat_query_fanout_stats(dh, linkid,
1704 dlstat_fanout_hwlane_stats(dladm_handle_t dh, datalink_id_t linkid,
1713 return (i_dlstat_query_fanout_stats(dh, linkid, rx_hwlane_idlist,
1718 dlstat_fanout_stats(dladm_handle_t dh, datalink_id_t linkid)
1726 if (dladm_datalink_id2info(dh, linkid, NULL, NULL, NULL, linkname,
1732 dlstat_fanout_swlane_and_local_stats(dh, linkid, linkname);
1733 fout_hwlane_stats = dlstat_fanout_hwlane_stats(dh, linkid, linkname);
1806 dlstat_rx_ring_stats(dladm_handle_t dh, datalink_id_t linkid)
1818 * Thus, given a linkid, we lookup the physical device name.
1822 if (dladm_datalink_id2info(dh, linkid, NULL, &class, NULL, linkname,
1828 if (dladm_phys_info(dh, linkid, &dpa, DLADM_OPT_ACTIVE) !=
1893 dlstat_tx_ring_stats(dladm_handle_t dh, datalink_id_t linkid)
1905 * Thus, given a linkid, we lookup the physical device name.
1909 if (dladm_datalink_id2info(dh, linkid, NULL, &class, NULL, linkname,
1915 if (dladm_phys_info(dh, linkid, &dpa, DLADM_OPT_ACTIVE) !=
1933 dlstat_rx_ring_total_stats(dladm_handle_t dh, datalink_id_t linkid)
1940 rx_ring_head = dlstat_rx_ring_stats(dh, linkid);
1976 dlstat_tx_ring_total_stats(dladm_handle_t dh, datalink_id_t linkid)
1983 tx_ring_head = dlstat_tx_ring_stats(dh, linkid);
2045 dlstat_total_stats(dladm_handle_t dh, datalink_id_t linkid)
2055 rx_total = dlstat_rx_lane_total_stats(dh, linkid);
2060 tx_total = dlstat_tx_lane_total_stats(dh, linkid);
2173 i_dlstat_single_port_stats(const char *portname, datalink_id_t linkid)
2197 /* Save port's linkid */
2198 aggr_port_stat_entry->ape_portlinkid = linkid;
2208 dlstat_aggr_port_stats(dladm_handle_t dh, datalink_id_t linkid)
2220 if (dladm_aggr_info(dh, linkid, &ginfo, DLADM_OPT_ACTIVE)
2271 dlstat_misc_stats(dladm_handle_t dh, datalink_id_t linkid)
2277 if (dladm_datalink_id2info(dh, linkid, NULL, NULL, NULL, linkname,
2303 dladm_link_stat_query(dladm_handle_t dh, datalink_id_t linkid,
2306 return (dladm_stat_table[stattype].ds_querystat(dh, linkid));
2469 dladm_link_stat_query_all(dladm_handle_t dh, datalink_id_t linkid,
2476 stat_head = dladm_link_stat_query(dh, linkid, stattype);