Lines Matching refs:flent

1491 	flow_entry_t		*flent = mcip->mci_flent;  in mac_hwrings_get()  local
1497 grp = flent->fe_rx_ring_group; in mac_hwrings_get()
1499 grp = flent->fe_tx_ring_group; in mac_hwrings_get()
1932 flow_entry_t *flent = srs->srs_flent; in mac_rx_srs_quiesce() local
1935 ASSERT(MAC_PERIM_HELD((mac_handle_t)FLENT_TO_MIP(flent))); in mac_rx_srs_quiesce()
1960 FLOW_MARK(flent, FE_QUIESCE); in mac_rx_srs_quiesce()
1961 mac_flow_wait(flent, FLOW_DRIVER_UPCALL); in mac_rx_srs_quiesce()
1980 flow_entry_t *flent = srs->srs_flent; in mac_rx_srs_remove() local
1989 mutex_enter(&flent->fe_lock); in mac_rx_srs_remove()
1990 for (i = 0; i < flent->fe_rx_srs_cnt; i++) { in mac_rx_srs_remove()
1991 if (flent->fe_rx_srs[i] == srs) in mac_rx_srs_remove()
1995 ASSERT(i != 0 && i < flent->fe_rx_srs_cnt); in mac_rx_srs_remove()
1996 if (i != flent->fe_rx_srs_cnt - 1) { in mac_rx_srs_remove()
1997 flent->fe_rx_srs[i] = in mac_rx_srs_remove()
1998 flent->fe_rx_srs[flent->fe_rx_srs_cnt - 1]; in mac_rx_srs_remove()
1999 i = flent->fe_rx_srs_cnt - 1; in mac_rx_srs_remove()
2002 flent->fe_rx_srs[i] = NULL; in mac_rx_srs_remove()
2003 flent->fe_rx_srs_cnt--; in mac_rx_srs_remove()
2004 mutex_exit(&flent->fe_lock); in mac_rx_srs_remove()
2020 flow_entry_t *flent = srs->srs_flent; in mac_rx_srs_restart() local
2023 ASSERT(MAC_PERIM_HELD((mac_handle_t)FLENT_TO_MIP(flent))); in mac_rx_srs_restart()
2054 FLOW_UNMARK(flent, FE_QUIESCE); in mac_rx_srs_restart()
2064 mac_rx_classify_flow_quiesce(flow_entry_t *flent, void *arg) in mac_rx_classify_flow_quiesce() argument
2068 for (i = 0; i < flent->fe_rx_srs_cnt; i++) { in mac_rx_classify_flow_quiesce()
2069 mac_rx_srs_quiesce((mac_soft_ring_set_t *)flent->fe_rx_srs[i], in mac_rx_classify_flow_quiesce()
2081 mac_rx_classify_flow_restart(flow_entry_t *flent, void *arg) in mac_rx_classify_flow_restart() argument
2085 for (i = 0; i < flent->fe_rx_srs_cnt; i++) in mac_rx_classify_flow_restart()
2086 mac_rx_srs_restart((mac_soft_ring_set_t *)flent->fe_rx_srs[i]); in mac_rx_classify_flow_restart()
2095 flow_entry_t *flent = mcip->mci_flent; in mac_srs_perm_quiesce() local
2102 if (flent == NULL) in mac_srs_perm_quiesce()
2105 for (i = 0; i < flent->fe_rx_srs_cnt; i++) { in mac_srs_perm_quiesce()
2106 mac_srs = flent->fe_rx_srs[i]; in mac_srs_perm_quiesce()
2195 mac_tx_flow_quiesce(flow_entry_t *flent, void *arg) in mac_tx_flow_quiesce() argument
2201 if (flent->fe_tx_srs != NULL) in mac_tx_flow_quiesce()
2202 mac_tx_srs_quiesce(flent->fe_tx_srs, SRS_QUIESCE); in mac_tx_flow_quiesce()
2208 mac_tx_flow_restart(flow_entry_t *flent, void *arg) in mac_tx_flow_restart() argument
2214 if (flent->fe_tx_srs != NULL) in mac_tx_flow_restart()
2215 mac_tx_srs_restart(flent->fe_tx_srs); in mac_tx_flow_restart()
2423 flow_entry_t *flent = NULL; in mac_rx_classify() local
2440 err = mac_flow_lookup(mip->mi_flow_tab, mp, flags, &flent); in mac_rx_classify()
2453 if ((mcip = flent->fe_mcip) != NULL && in mac_rx_classify()
2454 mcip->mci_flent != flent) { in mac_rx_classify()
2455 FLOW_REFRELE(flent); in mac_rx_classify()
2456 flent = mcip->mci_flent; in mac_rx_classify()
2457 FLOW_TRY_REFHOLD(flent, err); in mac_rx_classify()
2461 (flent->fe_cb_fn)(flent->fe_cb_arg1, flent->fe_cb_arg2, mp, in mac_rx_classify()
2463 FLOW_REFRELE(flent); in mac_rx_classify()
2495 mac_tx_flow_srs_wakeup(flow_entry_t *flent, void *arg) in mac_tx_flow_srs_wakeup() argument
2499 if (flent->fe_tx_srs) in mac_tx_flow_srs_wakeup()
2500 mac_tx_srs_wakeup(flent->fe_tx_srs, ring); in mac_tx_flow_srs_wakeup()
4415 flow_entry_t *flent; in i_mac_group_add_ring() local
4537 flent = mcip->mci_flent; in i_mac_group_add_ring()
4538 ASSERT(flent->fe_rx_srs_cnt > 0); in i_mac_group_add_ring()
4539 mac_rx_srs_group_setup(mcip, flent, SRST_LINK); in i_mac_group_add_ring()
4540 mac_fanout_setup(mcip, flent, in i_mac_group_add_ring()
4570 flent = mcip->mci_flent; in i_mac_group_add_ring()
4596 mac_fanout_setup(mcip, flent, MCIP_RESOURCE_PROPS(mcip), in i_mac_group_add_ring()
5271 mac_write_flow_desc(flow_entry_t *flent, mac_client_impl_t *mcip) in mac_write_flow_desc() argument
5291 mutex_enter(&flent->fe_lock); in mac_write_flow_desc()
5292 fdesc = &flent->fe_flow_desc; in mac_write_flow_desc()
5293 mrp = &flent->fe_resource_props; in mac_write_flow_desc()
5295 ndesc->nd_name = flent->fe_flow_name; in mac_write_flow_desc()
5312 mutex_exit(&flent->fe_lock); in mac_write_flow_desc()
5323 mac_write_flow_stats(flow_entry_t *flent) in mac_write_flow_stats() argument
5341 nstat->ns_name = flent->fe_flow_name; in mac_write_flow_stats()
5342 for (i = 0; i < flent->fe_rx_srs_cnt; i++) { in mac_write_flow_stats()
5343 mac_srs = (mac_soft_ring_set_t *)flent->fe_rx_srs[i]; in mac_write_flow_stats()
5353 mac_srs = (mac_soft_ring_set_t *)(flent->fe_tx_srs); in mac_write_flow_stats()
5375 flow_entry_t *flent = mcip->mci_flent; in mac_write_link_desc() local
5394 mutex_enter(&flent->fe_lock); in mac_write_link_desc()
5395 bcopy(flent->fe_flow_desc.fd_src_mac, ndesc->nd_ehost, ETHERADDRL); in mac_write_link_desc()
5396 mutex_exit(&flent->fe_lock); in mac_write_link_desc()
5411 flow_entry_t *flent; in mac_write_link_stats() local
5427 flent = mcip->mci_flent; in mac_write_link_stats()
5428 if (flent != NULL) { in mac_write_link_stats()
5429 for (i = 0; i < flent->fe_rx_srs_cnt; i++) { in mac_write_link_stats()
5430 mac_srs = (mac_soft_ring_set_t *)flent->fe_rx_srs[i]; in mac_write_link_stats()
5475 mac_log_flowinfo(flow_entry_t *flent, void *arg) in mac_log_flowinfo() argument
5477 mac_client_impl_t *mcip = flent->fe_mcip; in mac_log_flowinfo()
5490 if (strncasecmp(flent->fe_flow_name, "vnic", 4) == 0 && in mac_log_flowinfo()
5491 (flent->fe_type & FLOW_USER) != 0) { in mac_log_flowinfo()
5495 if (!flent->fe_desc_logged) { in mac_log_flowinfo()
5501 if ((ninfo = mac_write_flow_desc(flent, mcip)) == NULL) in mac_log_flowinfo()
5504 flent->fe_desc_logged = B_TRUE; in mac_log_flowinfo()
5511 ninfo = mac_write_flow_stats(flent); in mac_log_flowinfo()
5518 flent->fe_desc_logged = B_FALSE; in mac_log_flowinfo()
5826 mac_flow_update_priority(mac_client_impl_t *mcip, flow_entry_t *flent) in mac_flow_update_priority() argument
5832 if (flent->fe_rx_srs_cnt <= 0) in mac_flow_update_priority()
5835 if (((mac_soft_ring_set_t *)flent->fe_rx_srs[0])->srs_type == in mac_flow_update_priority()
5839 flent->fe_resource_props.mrp_priority); in mac_flow_update_priority()
5844 for (count = 0; count < flent->fe_rx_srs_cnt; count++) { in mac_flow_update_priority()
5845 mac_srs = flent->fe_rx_srs[count]; in mac_flow_update_priority()
5852 if (flent->fe_tx_srs != NULL) in mac_flow_update_priority()
5853 mac_update_srs_priority(flent->fe_tx_srs, pri); in mac_flow_update_priority()
7153 mac_tx_dismantle_soft_rings(mac_group_t *fgrp, flow_entry_t *flent) in mac_tx_dismantle_soft_rings() argument
7155 mac_client_impl_t *mcip = flent->fe_mcip; in mac_tx_dismantle_soft_rings()
7160 tx_srs = flent->fe_tx_srs; in mac_tx_dismantle_soft_rings()
7193 flow_entry_t *flent = mcip->mci_flent; in mac_tx_switch_group() local
7200 ASSERT(fgrp == flent->fe_tx_ring_group); in mac_tx_switch_group()
7208 mac_tx_dismantle_soft_rings(fgrp, flent); in mac_tx_switch_group()
7305 flent->fe_tx_ring_group = tgrp; in mac_tx_switch_group()
7309 mac_tx_srs_group_setup(mcip, flent, SRST_LINK); in mac_tx_switch_group()
7310 mac_fanout_setup(mcip, flent, MCIP_RESOURCE_PROPS(mcip), in mac_tx_switch_group()
7912 flow_entry_t *flent = mcip->mci_flent; in mac_set_rings_effective() local
7917 grp = flent->fe_rx_ring_group; in mac_set_rings_effective()
7957 grp = flent->fe_tx_ring_group; in mac_set_rings_effective()
8007 flow_entry_t *flent = mcip->mci_flent; in mac_check_primary_relocation() local
8017 if (flent->fe_rx_ring_group != defgrp || mrp->mrp_mask & MRP_RX_RINGS) in mac_check_primary_relocation()
8027 mac_addr = flent->fe_flow_desc.fd_dst_mac; in mac_check_primary_relocation()