/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_client.c | 172 mac_client_impl_t *mcip = buf; in i_mac_client_impl_ctor() local 175 mutex_init(&mcip->mci_tx_cb_lock, NULL, MUTEX_DRIVER, NULL); in i_mac_client_impl_ctor() 176 mcip->mci_tx_notify_cb_info.mcbi_lockp = &mcip->mci_tx_cb_lock; in i_mac_client_impl_ctor() 180 mutex_init(&mcip->mci_tx_pcpu[i].pcpu_tx_lock, NULL, in i_mac_client_impl_ctor() 183 cv_init(&mcip->mci_tx_cv, NULL, CV_DRIVER, NULL); in i_mac_client_impl_ctor() 193 mac_client_impl_t *mcip = buf; in i_mac_client_impl_dtor() local 195 ASSERT(mcip->mci_promisc_list == NULL); in i_mac_client_impl_dtor() 196 ASSERT(mcip->mci_unicast_list == NULL); in i_mac_client_impl_dtor() 197 ASSERT(mcip->mci_state_flags == 0); in i_mac_client_impl_dtor() 198 ASSERT(mcip->mci_tx_flag == 0); in i_mac_client_impl_dtor() [all …]
|
H A D | mac_protect.c | 358 find_dhcpv4_pending_txn(mac_client_impl_t *mcip, uint32_t xid) in find_dhcpv4_pending_txn() argument 362 ASSERT(MUTEX_HELD(&mcip->mci_protect_lock)); in find_dhcpv4_pending_txn() 364 return (avl_find(&mcip->mci_v4_pending_txn, &tmp_txn, NULL)); in find_dhcpv4_pending_txn() 368 insert_dhcpv4_pending_txn(mac_client_impl_t *mcip, dhcpv4_txn_t *txn) in insert_dhcpv4_pending_txn() argument 372 ASSERT(MUTEX_HELD(&mcip->mci_protect_lock)); in insert_dhcpv4_pending_txn() 373 if (avl_find(&mcip->mci_v4_pending_txn, txn, &where) != NULL) in insert_dhcpv4_pending_txn() 376 if (avl_numnodes(&mcip->mci_v4_pending_txn) >= dhcp_max_pending_txn) { in insert_dhcpv4_pending_txn() 377 BUMP_STAT(mcip, dhcpdropped); in insert_dhcpv4_pending_txn() 380 avl_insert(&mcip->mci_v4_pending_txn, txn, where); in insert_dhcpv4_pending_txn() 385 remove_dhcpv4_pending_txn(mac_client_impl_t *mcip, dhcpv4_txn_t *txn) in remove_dhcpv4_pending_txn() argument [all …]
|
H A D | mac_hio.c | 56 i_mac_share_alloc(mac_client_impl_t *mcip) in i_mac_share_alloc() argument 58 mac_impl_t *mip = mcip->mci_mip; in i_mac_share_alloc() 63 ASSERT(mcip->mci_share == 0); in i_mac_share_alloc() 65 if (mac_share_capable((mac_handle_t)mcip->mci_mip) == 0) { in i_mac_share_alloc() 67 mac_client_impl_t *, mcip); in i_mac_share_alloc() 73 &mcip->mci_share); in i_mac_share_alloc() 74 DTRACE_PROBE3(i__mac__share__alloc, mac_client_impl_t *, mcip, in i_mac_share_alloc() 75 int, rv, mac_share_handle_t, mcip->mci_share); in i_mac_share_alloc() 77 mcip->mci_state_flags &= ~MCIS_SHARE_BOUND; in i_mac_share_alloc() 88 i_mac_share_free(mac_client_impl_t *mcip) in i_mac_share_free() argument [all …]
|
H A D | mac_datapath_setup.c | 190 #define RETARGETABLE_CLIENT(group, mcip) \ argument 193 mac_is_primary_client(mcip)) 317 mac_srs_client_poll_quiesce(mac_client_impl_t *mcip, in mac_srs_client_poll_quiesce() argument 322 ASSERT(MAC_PERIM_HELD((mac_handle_t)mcip->mci_mip)); in mac_srs_client_poll_quiesce() 333 mcip->mci_resource_quiesce(mcip->mci_resource_arg, in mac_srs_client_poll_quiesce() 340 mac_srs_client_poll_restart(mac_client_impl_t *mcip, in mac_srs_client_poll_restart() argument 345 ASSERT(MAC_PERIM_HELD((mac_handle_t)mcip->mci_mip)); in mac_srs_client_poll_restart() 356 mcip->mci_resource_restart(mcip->mci_resource_arg, in mac_srs_client_poll_restart() 368 mac_srs_client_poll_enable(mac_client_impl_t *mcip, in mac_srs_client_poll_enable() argument 374 ASSERT(mac_srs->srs_mcip == mcip); in mac_srs_client_poll_enable() [all …]
|
H A D | mac.c | 822 mac_client_impl_t *mcip; in mac_callback_walker_exit() local 826 mcip = mpip->mpi_mcip; in mac_callback_walker_exit() 828 ASSERT3P(&mcip->mci_mip->mi_promisc_cb_info, in mac_callback_walker_exit() 830 ASSERT3P(&mcip->mci_mip->mi_promisc_list, in mac_callback_walker_exit() 834 &mcip->mci_promisc_list, in mac_callback_walker_exit() 943 mac_client_impl_t *mcip; in i_mac_perim_enter() local 950 mcip = mac_vnic_lower(mip); in i_mac_perim_enter() 951 mip = mcip->mci_mip; in i_mac_perim_enter() 1005 mac_client_impl_t *mcip; in i_mac_perim_exit() local 1012 mcip = mac_vnic_lower(mip); in i_mac_perim_exit() [all …]
|
H A D | mac_flow.c | 371 mac_client_impl_t *mcip = ft->ft_mcip; in mac_flow_rem_subflow() local 384 mcip->mci_subflow_tab = NULL; in mac_flow_rem_subflow() 388 mac_link_flow_clean((mac_client_handle_t)mcip, flent); in mac_flow_rem_subflow() 401 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_flow_add_subflow() local 402 mac_handle_t mh = (mac_handle_t)mcip->mci_mip; in mac_flow_add_subflow() 418 ft = mcip->mci_subflow_tab; in mac_flow_add_subflow() 431 mcip->mci_mip, &ft); in mac_flow_add_subflow() 445 ASSERT(MCIP_DATAPATH_SETUP(mcip)); in mac_flow_add_subflow() 446 err = mac_link_flow_init((mac_client_handle_t)mcip, flent); in mac_flow_add_subflow() 458 ASSERT(mcip->mci_subflow_tab == NULL); in mac_flow_add_subflow() [all …]
|
H A D | mac_bcast.c | 258 mac_bcast_add(mac_client_impl_t *mcip, const uint8_t *addr, uint16_t vid, in mac_bcast_add() argument 261 mac_impl_t *mip = mcip->mci_mip; in mac_bcast_add() 312 prev_mci_addr = &mcip->mci_mcast_addrs; in mac_bcast_add() 434 if (grp->mbg_clients[i].mgb_client == mcip) { in mac_bcast_add() 464 grp->mbg_clients[index].mgb_client = mcip; in mac_bcast_add() 498 mac_bcast_delete(mac_client_impl_t *mcip, const uint8_t *addr, uint16_t vid) in mac_bcast_delete() argument 500 mac_impl_t *mip = mcip->mci_mip; in mac_bcast_delete() 531 if (grp->mbg_clients[i].mgb_client == mcip) in mac_bcast_delete() 567 mprev = &mcip->mci_mcast_addrs; in mac_bcast_delete() 568 for (maddr = mcip->mci_mcast_addrs; maddr != NULL; in mac_bcast_delete() [all …]
|
H A D | mac_sched.c | 1503 mac_client_impl_t *mcip = mac_srs->srs_mcip; in mac_rx_srs_proto_fanout() local 1505 is_ether = (mcip->mci_mip->mi_info.mi_nativemedia == DL_ETHER); in mac_rx_srs_proto_fanout() 1525 ((mcip->mci_state_flags & MCIS_RX_BYPASS_DISABLE) == 0); in mac_rx_srs_proto_fanout() 1574 if (!mac_client_check_flow_vid(mcip, in mac_rx_srs_proto_fanout() 1588 if (mac_header_info((mac_handle_t)mcip->mci_mip, in mac_rx_srs_proto_fanout() 1610 if (hw_classified && mcip->mci_promisc_list != NULL) { in mac_rx_srs_proto_fanout() 1613 rw_enter(&mcip->mci_rw_lock, RW_READER); in mac_rx_srs_proto_fanout() 1614 map = mcip->mci_unicast; in mac_rx_srs_proto_fanout() 1618 rw_exit(&mcip->mci_rw_lock); in mac_rx_srs_proto_fanout() 1689 mac_rx_soft_ring_process(mcip, softring, in mac_rx_srs_proto_fanout() [all …]
|
H A D | mac_soft_ring.c | 151 pri_t pri, mac_client_impl_t *mcip, mac_soft_ring_set_t *mac_srs, in mac_soft_ring_create() argument 184 ringp->s_ring_mcip = mcip; in mac_soft_ring_create() 210 if (mcip->mci_state_flags & MCIS_IS_AGGR_CLIENT) { in mac_soft_ring_create() 708 mac_client_impl_t *mcip = ringp->s_ring_mcip; in mac_tx_soft_ring_drain() local 719 mac_tx_invoke_callbacks(mcip, (mac_tx_cookie_t)ringp); in mac_tx_soft_ring_drain() 725 mac_tx_notify(mcip->mci_upper_mip != NULL ? in mac_tx_soft_ring_drain() 726 mcip->mci_upper_mip : mcip->mci_mip); in mac_tx_soft_ring_drain()
|
H A D | mac_stat.c | 683 mac_client_impl_t *mcip = flent->fe_mcip; in i_mac_misc_stat_get() local 684 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in i_mac_misc_stat_get() 1160 mac_client_impl_t *mcip = mac_srs->srs_mcip; in mac_srs_stat_delete() local 1161 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in mac_srs_stat_delete() 1196 mac_client_impl_t *mcip = mac_srs->srs_mcip; in mac_soft_ring_stat_delete() local 1197 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in mac_soft_ring_stat_delete() 1239 mac_stat_rename(mac_client_impl_t *mcip) in mac_stat_rename() argument 1241 flow_entry_t *flent = mcip->mci_flent; in mac_stat_rename() 1282 mac_client_impl_t *mcip = tx_srs->srs_mcip; in mac_tx_srs_stat_recreate() local 1283 mac_misc_stats_t *mac_misc_stat = &mcip->mci_misc_stat; in mac_tx_srs_stat_recreate()
|
H A D | mac_util.c | 1932 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_set_intr_cpu() local 1935 flow_entry_t *flent = mcip->mci_flent; in mac_client_set_intr_cpu() 1941 mac_perim_enter_by_mh((mac_handle_t)mcip->mci_mip, &mph); in mac_client_set_intr_cpu() 1942 mrp = MCIP_RESOURCE_PROPS(mcip); in mac_client_set_intr_cpu() 1955 mac_client_impl_t *mcip = (mac_client_impl_t *)mch; in mac_client_intr_cpu() local 1958 flow_entry_t *flent = mcip->mci_flent; in mac_client_intr_cpu() 1959 mac_resource_props_t *mrp = MCIP_RESOURCE_PROPS(mcip); in mac_client_intr_cpu() 1968 if (mac_is_primary_client(mcip) && flent->fe_rx_srs_cnt == 2) { in mac_client_intr_cpu()
|
H A D | mac_provider.c | 1103 mac_client_impl_t *mcip; in mac_ring_intr_retarget() local 1109 if (((mcip = MAC_GROUP_ONLY_CLIENT(group)) != NULL) && in mac_ring_intr_retarget() 1113 flent = mcip->mci_flent; in mac_ring_intr_retarget()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | mac_client_impl.h | 218 #define MCIP_TX_SRS(mcip) \ argument 219 ((mcip)->mci_flent == NULL ? NULL : (mcip)->mci_flent->fe_tx_srs) 223 #define MCIP_DATAPATH_SETUP(mcip) \ argument 224 ((mcip)->mci_flent == NULL ? B_FALSE : \ 225 !((mcip)->mci_flent->fe_flags & FE_MC_NO_DATAPATH)) 227 #define MCIP_RESOURCE_PROPS(mcip) \ argument 228 ((mcip)->mci_flent == NULL ? NULL : \ 229 &(mcip)->mci_flent->fe_resource_props) 231 #define MCIP_EFFECTIVE_PROPS(mcip) \ argument 232 (mcip->mci_flent == NULL ? NULL : \ [all …]
|
H A D | mac_impl.h | 670 #define MAC_PROTECT_ENABLED(mcip, type) \ argument 671 (((mcip)->mci_flent-> \ 673 ((mcip)->mci_flent-> \
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_ctf.c | 198 mdb_ctf_impl_t *mcip = (mdb_ctf_impl_t *)p; in set_ctf_id() local 200 mcip->mci_fp = fp; in set_ctf_id() 201 mcip->mci_id = id; in set_ctf_id() 322 mdb_ctf_impl_t *mcip = (mdb_ctf_impl_t *)p; in mdb_ctf_lookup_by_name() local 325 if (mcip == NULL) in mdb_ctf_lookup_by_name() 328 if ((fp = name_to_type(t, name, &mcip->mci_id)) == NULL) { in mdb_ctf_lookup_by_name() 333 mcip->mci_fp = fp; in mdb_ctf_lookup_by_name() 343 mdb_ctf_impl_t *mcip = (mdb_ctf_impl_t *)p; in mdb_ctf_lookup_by_symbol() local 346 if (mcip == NULL) in mdb_ctf_lookup_by_symbol() 359 if ((mcip->mci_id = ctf_lookup_by_symbol(fp, sip->sym_id)) == CTF_ERR) { in mdb_ctf_lookup_by_symbol() [all …]
|
/illumos-gate/usr/src/uts/common/io/bpf/ |
H A D | bpf.c | 248 uintptr_t mcip; in bpf_attachd() local 263 mcip = 0; in bpf_attachd() 269 error = MBPF_CLIENT_OPEN(bpr, mh, &mcip); in bpf_attachd() 295 if (mcip != 0) { in bpf_attachd() 296 MBPF_CLIENT_CLOSE(bpr, mcip); in bpf_attachd() 297 mcip = 0; in bpf_attachd() 322 d->bd_mcip = mcip; in bpf_attachd() 328 (void) strlcpy(d->bd_ifname, MBPF_CLIENT_NAME(&d->bd_mac, mcip), in bpf_attachd() 1700 uintptr_t mcip; in bpf_getdltlist() local 1708 mcip = 0; in bpf_getdltlist() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mac/ |
H A D | mac.c | 207 mac_client_impl_t mcip; in mac_flow_dcmd_output() local 224 bzero(&mcip, sizeof (mcip)); in mac_flow_dcmd_output() 226 if (fe.fe_mcip != NULL && mdb_vread(&mcip, sizeof (mcip), in mac_flow_dcmd_output() 227 (uintptr_t)fe.fe_mcip) == sizeof (mcip)) { in mac_flow_dcmd_output() 228 (void) mdb_vread(&mip, sizeof (mip), (uintptr_t)mcip.mci_mip); in mac_flow_dcmd_output() 235 mcip.mci_mip, mip.mi_name); in mac_flow_dcmd_output()
|
/illumos-gate/usr/src/uts/i86xpv/cpu/generic_cpu/ |
H A D | gcpu_mca_xpv.c | 246 struct mc_info **mcip = (struct mc_info **) in mctelem_traverse() local 249 gcpu_xpv_mci_process(*mcip, in mctelem_traverse()
|
/illumos-gate/usr/src/uts/i86pc/cpu/generic_cpu/ |
H A D | gcpu_mca.c | 643 int mcip = mcg & MCG_STATUS_MCIP; in gcpu_ereport_add_logout() local 718 DATA_TYPE_BOOLEAN_VALUE, mcip ? B_TRUE : B_FALSE, NULL); in gcpu_ereport_add_logout() 725 if (mcip && members & FM_EREPORT_PAYLOAD_FLAG_IP && in gcpu_ereport_add_logout() 734 if (mcip && members & FM_EREPORT_PAYLOAD_FLAG_PRIV) { in gcpu_ereport_add_logout()
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 1419 pfp_open_index(int index, mac_handle_t *mhp, mac_client_handle_t *mcip, in pfp_open_index() argument 1454 *mcip = mch; in pfp_open_index()
|