Lines Matching defs:mch

85 static void vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch,
87 static void vsw_mac_remove_vlans(mac_client_handle_t mch, vsw_vlanid_t *vids,
337 mac_client_handle_t mch;
341 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch;
343 if (mch != NULL) {
344 ret = mac_multicast_add(mch, mcst_p->mca.ether_addr_octet);
367 mac_client_handle_t mch;
370 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch;
372 if (mch != NULL && mcst_p->mac_added) {
373 mac_multicast_remove(mch, mcst_p->mca.ether_addr_octet);
387 mac_client_handle_t mch;
394 mch = vswp->mch;
399 mch = portp->p_mch;
404 if (mch == NULL)
411 rv = mac_multicast_add(mch, (uchar_t *)&mcap->mca);
429 mac_client_handle_t mch;
436 mch = vswp->mch;
441 mch = portp->p_mch;
446 if (mch == NULL)
453 (void) mac_multicast_remove(mch, (uchar_t *)&mcap->mca);
535 mchp = (type == VSW_LOCALDEV) ? &vswp->mch : &port->p_mch;
588 mchp = (type == VSW_LOCALDEV) ? &vswp->mch : &port->p_mch;
763 if (vswp->mch == NULL)
789 rv = mac_unicast_add(vswp->mch, macaddr, mac_flags,
806 vsw_mac_add_vlans(vswp, vswp->mch, macaddr, mac_flags,
811 mac_rx_set(vswp->mch, vsw_if_rx_cb, (void *)vswp);
828 mac_client_handle_t mch = NULL;
847 mch = vswp->mch;
849 mch = port->p_mch;
853 if (mch == NULL) {
857 mac_rx_clear(mch);
860 vsw_mac_remove_vlans(mch, vids, nvids);
863 (void) mac_unicast_remove(vswp->mch, vswp->muh);
951 mac_client_handle_t mch;
956 mch = (caller == VSW_LOCALDEV) ? vswp->mch : port->p_mch;
959 if (mch == NULL || muh == NULL) {
965 (void) mac_tx(mch, mp, 0, MAC_DROP_ON_NO_DESC, NULL);
1130 vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch, uint8_t *macaddr,
1148 rv = mac_unicast_add(mch, macaddr, flags,
1167 vsw_mac_remove_vlans(mac_client_handle_t mch, vsw_vlanid_t *vids, int nvids)
1177 (void) mac_unicast_remove(mch, vidp->vl_muh);
1390 mac_client_handle_t mch;
1396 mch = port->p_mch;
1400 mch = vswp->mch;
1404 if (mch == NULL) {
1417 rv = mac_client_set_resources(mch, mrp);