Home
last modified time | relevance | path

Searched refs:mac_bw (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/uts/common/io/mac/
H A Dmac_sched.c3288 mac_bw_ctl_t *mac_bw; in mac_rx_srs_process() local
3322 mac_bw = mac_srs->srs_bw; in mac_rx_srs_process()
3323 ASSERT(mac_bw != NULL); in mac_rx_srs_process()
3324 mutex_enter(&mac_bw->mac_bw_lock); in mac_rx_srs_process()
3325 mac_bw->mac_bw_intr += sz; in mac_rx_srs_process()
3326 if (mac_bw->mac_bw_limit == 0) { in mac_rx_srs_process()
3329 mac_bw->mac_bw_drop_bytes += sz; in mac_rx_srs_process()
3330 mutex_exit(&mac_bw->mac_bw_lock); in mac_rx_srs_process()
3335 if ((mac_bw->mac_bw_sz + sz) <= in mac_rx_srs_process()
3336 mac_bw->mac_bw_drop_threshold) { in mac_rx_srs_process()
[all …]
H A Dmac_datapath_setup.c2081 mac_bw_ctl_t *mac_bw; in mac_srs_create() local
2161 mac_bw = mac_srs->srs_bw; in mac_srs_create()
2162 mutex_enter(&mac_bw->mac_bw_lock); in mac_srs_create()
2163 mac_bw->mac_bw_limit = FLOW_BYTES_PER_TICK(mrp->mrp_maxbw); in mac_srs_create()
2169 mac_bw->mac_bw_drop_threshold = mac_bw->mac_bw_limit << 1; in mac_srs_create()
2170 mutex_exit(&mac_bw->mac_bw_lock); in mac_srs_create()