Lines Matching refs:vswp

78 static int vsw_set_if_hw_addr(vsw_t *vswp);
80 static int vsw_maccl_open(vsw_t *vswp, vsw_port_t *port, int type);
81 static void vsw_maccl_close(vsw_t *vswp, vsw_port_t *port, int type);
82 static void vsw_mac_multicast_add_all(vsw_t *vswp, vsw_port_t *portp, int type);
83 static void vsw_mac_multicast_remove_all(vsw_t *vswp,
85 static void vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch,
89 static void vsw_mac_set_mtu(vsw_t *vswp, uint32_t mtu);
90 static void vsw_maccl_set_bandwidth(vsw_t *vswp, vsw_port_t *port, int type,
92 static int vsw_notify_add(vsw_t *vswp);
93 static int vsw_notify_rem(vsw_t *vswp);
95 static void vsw_notify_link(vsw_t *vswp);
101 int vsw_mac_open(vsw_t *vswp);
102 void vsw_mac_close(vsw_t *vswp);
103 int vsw_mac_multicast_add(vsw_t *vswp, vsw_port_t *port, mcst_addr_t *mcst_p,
105 void vsw_mac_multicast_remove(vsw_t *vswp, vsw_port_t *port,
107 int vsw_mac_client_init(vsw_t *vswp, vsw_port_t *port, int type);
108 void vsw_mac_client_cleanup(vsw_t *vswp, vsw_port_t *port, int type);
109 void vsw_mac_cleanup_ports(vsw_t *vswp);
110 void vsw_unset_addrs(vsw_t *vswp);
111 void vsw_set_addrs(vsw_t *vswp);
113 void vsw_publish_macaddr(vsw_t *vswp, vsw_port_t *portp);
118 void vsw_if_mac_reconfig(vsw_t *vswp, boolean_t update_vlans,
120 void vsw_update_bandwidth(vsw_t *vswp, vsw_port_t *port, int type,
132 extern void vsw_physlink_state_update(vsw_t *vswp);
140 #define WRITE_MACCL_ENTER(vswp, port, type) \ argument
141 (type == VSW_LOCALDEV) ? rw_enter(&vswp->maccl_rwlock, RW_WRITER) :\
144 #define READ_MACCL_ENTER(vswp, port, type) \ argument
145 (type == VSW_LOCALDEV) ? rw_enter(&vswp->maccl_rwlock, RW_READER) :\
148 #define RW_MACCL_EXIT(vswp, port, type) \ argument
149 (type == VSW_LOCALDEV) ? rw_exit(&vswp->maccl_rwlock) : \
179 vsw_set_addrs(vsw_t *vswp) in vsw_set_addrs() argument
181 vsw_port_list_t *plist = &vswp->plist; in vsw_set_addrs()
185 READ_ENTER(&vswp->if_lockrw); in vsw_set_addrs()
187 if (vswp->if_state & VSW_IF_UP) { in vsw_set_addrs()
190 rv = vsw_mac_client_init(vswp, NULL, VSW_LOCALDEV); in vsw_set_addrs()
194 "unicast address\n", vswp->instance); in vsw_set_addrs()
201 mac_unicst_update(vswp->if_mh, in vsw_set_addrs()
202 (uint8_t *)&vswp->if_addr); in vsw_set_addrs()
207 RW_EXIT(&vswp->if_lockrw); in vsw_set_addrs()
217 rv = vsw_mac_client_init(vswp, port, VSW_VNETPORT); in vsw_set_addrs()
221 "unicast address\n", vswp->instance, in vsw_set_addrs()
228 vsw_publish_macaddr(vswp, port); in vsw_set_addrs()
240 vsw_unset_addrs(vsw_t *vswp) in vsw_unset_addrs() argument
242 READ_ENTER(&vswp->if_lockrw); in vsw_unset_addrs()
243 if (vswp->if_state & VSW_IF_UP) { in vsw_unset_addrs()
246 vsw_mac_client_cleanup(vswp, NULL, VSW_LOCALDEV); in vsw_unset_addrs()
248 RW_EXIT(&vswp->if_lockrw); in vsw_unset_addrs()
251 vsw_mac_cleanup_ports(vswp); in vsw_unset_addrs()
262 vsw_mac_open(vsw_t *vswp) in vsw_mac_open() argument
266 ASSERT(MUTEX_HELD(&vswp->mac_lock)); in vsw_mac_open()
268 if (vswp->mh != NULL) { in vsw_mac_open()
273 if (vswp->mac_open_retries++ >= vsw_mac_open_retries) { in vsw_mac_open()
278 if ((rv = mac_open_by_linkname(vswp->physname, &vswp->mh)) != 0) { in vsw_mac_open()
291 vswp->instance, vswp->physname, rv); in vsw_mac_open()
295 vswp->mac_open_retries = 0; in vsw_mac_open()
297 vsw_mac_set_mtu(vswp, vswp->mtu); in vsw_mac_open()
299 rv = vsw_notify_add(vswp); in vsw_mac_open()
302 vswp->instance, vswp->physname, rv); in vsw_mac_open()
312 vsw_mac_close(vsw_t *vswp) in vsw_mac_close() argument
314 ASSERT(MUTEX_HELD(&vswp->mac_lock)); in vsw_mac_close()
316 if (vswp->mh != NULL) { in vsw_mac_close()
317 if (vswp->mnh != 0) { in vsw_mac_close()
318 (void) vsw_notify_rem(vswp); in vsw_mac_close()
319 vswp->mnh = 0; in vsw_mac_close()
321 if (vswp->mtu != vswp->mtu_physdev_orig) { in vsw_mac_close()
322 vsw_mac_set_mtu(vswp, vswp->mtu_physdev_orig); in vsw_mac_close()
324 mac_close(vswp->mh); in vsw_mac_close()
325 vswp->mh = NULL; in vsw_mac_close()
333 vsw_mac_multicast_add(vsw_t *vswp, vsw_port_t *port, mcst_addr_t *mcst_p, in vsw_mac_multicast_add() argument
339 WRITE_MACCL_ENTER(vswp, port, type); in vsw_mac_multicast_add()
341 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_add()
348 vswp->instance, in vsw_mac_multicast_add()
350 RW_MACCL_EXIT(vswp, port, type); in vsw_mac_multicast_add()
356 RW_MACCL_EXIT(vswp, port, type); in vsw_mac_multicast_add()
364 vsw_mac_multicast_remove(vsw_t *vswp, vsw_port_t *port, mcst_addr_t *mcst_p, in vsw_mac_multicast_remove() argument
369 WRITE_MACCL_ENTER(vswp, port, type); in vsw_mac_multicast_remove()
370 mch = (type == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_mac_multicast_remove()
376 RW_MACCL_EXIT(vswp, port, type); in vsw_mac_multicast_remove()
384 vsw_mac_multicast_add_all(vsw_t *vswp, vsw_port_t *portp, int type) in vsw_mac_multicast_add_all() argument
393 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock)); in vsw_mac_multicast_add_all()
394 mch = vswp->mch; in vsw_mac_multicast_add_all()
395 mcap = vswp->mcap; in vsw_mac_multicast_add_all()
396 mca_lockp = &vswp->mca_lock; in vsw_mac_multicast_add_all()
416 "multicast address(%s) err=%d", vswp->instance, in vsw_mac_multicast_add_all()
427 vsw_mac_multicast_remove_all(vsw_t *vswp, vsw_port_t *portp, int type) in vsw_mac_multicast_remove_all() argument
435 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock)); in vsw_mac_multicast_remove_all()
436 mch = vswp->mch; in vsw_mac_multicast_remove_all()
437 mcap = vswp->mcap; in vsw_mac_multicast_remove_all()
438 mca_lockp = &vswp->mca_lock; in vsw_mac_multicast_remove_all()
460 vsw_update_bandwidth(vsw_t *vswp, vsw_port_t *port, int type, uint64_t maxbw) in vsw_update_bandwidth() argument
464 WRITE_MACCL_ENTER(vswp, port, type); in vsw_update_bandwidth()
465 vsw_maccl_set_bandwidth(vswp, port, type, maxbw); in vsw_update_bandwidth()
466 RW_MACCL_EXIT(vswp, port, type); in vsw_update_bandwidth()
477 vsw_mac_client_init(vsw_t *vswp, vsw_port_t *port, int type) in vsw_mac_client_init() argument
481 mutex_enter(&vswp->mac_lock); in vsw_mac_client_init()
482 WRITE_MACCL_ENTER(vswp, port, type); in vsw_mac_client_init()
483 rv = vsw_maccl_open(vswp, port, type); in vsw_mac_client_init()
486 mutex_exit(&vswp->mac_lock); in vsw_mac_client_init()
489 (void) vsw_set_hw(vswp, port, type); in vsw_mac_client_init()
490 vsw_mac_multicast_add_all(vswp, port, type); in vsw_mac_client_init()
492 RW_MACCL_EXIT(vswp, port, type); in vsw_mac_client_init()
516 vsw_maccl_open(vsw_t *vswp, vsw_port_t *port, int type) in vsw_maccl_open() argument
525 ASSERT(MUTEX_HELD(&vswp->mac_lock)); in vsw_maccl_open()
526 if (vswp->mh == NULL) { in vsw_maccl_open()
535 mchp = (type == VSW_LOCALDEV) ? &vswp->mch : &port->p_mch; in vsw_maccl_open()
540 dev_name = ddi_driver_name(vswp->dip); in vsw_maccl_open()
541 instance = ddi_get_instance(vswp->dip); in vsw_maccl_open()
552 rv = mac_client_open(vswp->mh, mchp, mac_cl_name, flags); in vsw_maccl_open()
555 vswp->instance, mac_cl_name); in vsw_maccl_open()
569 vsw_mac_client_cleanup(vsw_t *vswp, vsw_port_t *port, int type) in vsw_mac_client_cleanup() argument
571 WRITE_MACCL_ENTER(vswp, port, type); in vsw_mac_client_cleanup()
572 vsw_mac_multicast_remove_all(vswp, port, type); in vsw_mac_client_cleanup()
573 vsw_unset_hw(vswp, port, type); in vsw_mac_client_cleanup()
574 vsw_maccl_close(vswp, port, type); in vsw_mac_client_cleanup()
575 RW_MACCL_EXIT(vswp, port, type); in vsw_mac_client_cleanup()
582 vsw_maccl_close(vsw_t *vswp, vsw_port_t *port, int type) in vsw_maccl_close() argument
588 mchp = (type == VSW_LOCALDEV) ? &vswp->mch : &port->p_mch; in vsw_maccl_close()
599 vsw_mac_cleanup_ports(vsw_t *vswp) in vsw_mac_cleanup_ports() argument
601 vsw_port_list_t *plist = &vswp->plist; in vsw_mac_cleanup_ports()
606 vsw_mac_client_cleanup(vswp, port, VSW_VNETPORT); in vsw_mac_cleanup_ports()
624 vsw_set_hw(vsw_t *vswp, vsw_port_t *port, int type) in vsw_set_hw() argument
628 D1(vswp, "%s: enter", __func__); in vsw_set_hw()
632 if (vswp->smode == VSW_LAYER3) in vsw_set_hw()
639 err = vsw_set_if_hw_addr(vswp); in vsw_set_hw()
642 D1(vswp, "%s: exit", __func__); in vsw_set_hw()
657 vsw_unset_hw(vsw_t *vswp, vsw_port_t *port, int type) in vsw_unset_hw() argument
659 D1(vswp, "%s: enter", __func__); in vsw_unset_hw()
663 if (vswp->smode == VSW_LAYER3) in vsw_unset_hw()
668 vsw_unset_hw_addr(vswp, port, type); in vsw_unset_hw()
670 vsw_unset_hw_addr(vswp, NULL, type); in vsw_unset_hw()
673 D1(vswp, "%s: exit", __func__); in vsw_unset_hw()
684 vsw_t *vswp = port->p_vswp; in vsw_set_port_hw_addr() local
692 D1(vswp, "%s: enter", __func__); in vsw_set_port_hw_addr()
703 if (port->pvid != vswp->default_vlan_id) { in vsw_set_port_hw_addr()
708 if (!(vswp->smode & VSW_LAYER2_PROMISC)) { in vsw_set_port_hw_addr()
720 vswp->instance, ether_sprintf((void *)macaddr), in vsw_set_port_hw_addr()
726 D2(vswp, "%s:programmed macaddr(%s) vid(%d) into device %s", in vsw_set_port_hw_addr()
728 vswp->physname); in vsw_set_port_hw_addr()
732 vsw_mac_add_vlans(vswp, port->p_mch, macaddr, in vsw_set_port_hw_addr()
740 D1(vswp, "%s: exit", __func__); in vsw_set_port_hw_addr()
750 vsw_set_if_hw_addr(vsw_t *vswp) in vsw_set_if_hw_addr() argument
760 D1(vswp, "%s: enter", __func__); in vsw_set_if_hw_addr()
762 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock)); in vsw_set_if_hw_addr()
763 if (vswp->mch == NULL) in vsw_set_if_hw_addr()
766 macaddr = (uint8_t *)vswp->if_addr.ether_addr_octet; in vsw_set_if_hw_addr()
769 mac_unicast_primary_get(vswp->mh, primary_addr); in vsw_set_if_hw_addr()
779 if (vswp->pvid != vswp->default_vlan_id) { in vsw_set_if_hw_addr()
780 vid = vswp->pvid; in vsw_set_if_hw_addr()
783 if (!(vswp->smode & VSW_LAYER2_PROMISC)) { in vsw_set_if_hw_addr()
787 if (vswp->addr_set == B_FALSE) { in vsw_set_if_hw_addr()
788 vswp->muh = NULL; in vsw_set_if_hw_addr()
789 rv = mac_unicast_add(vswp->mch, macaddr, mac_flags, in vsw_set_if_hw_addr()
790 &vswp->muh, vid, &diag); in vsw_set_if_hw_addr()
795 vswp->instance, ether_sprintf((void *)macaddr), in vsw_set_if_hw_addr()
799 vswp->addr_set = B_TRUE; in vsw_set_if_hw_addr()
801 D2(vswp, "%s:programmed macaddr(%s) vid(%d) into device %s", in vsw_set_if_hw_addr()
803 vswp->physname); in vsw_set_if_hw_addr()
806 vsw_mac_add_vlans(vswp, vswp->mch, macaddr, mac_flags, in vsw_set_if_hw_addr()
807 vswp->vids, vswp->nvids); in vsw_set_if_hw_addr()
809 vsw_maccl_set_bandwidth(vswp, NULL, VSW_LOCALDEV, vswp->bandwidth); in vsw_set_if_hw_addr()
811 mac_rx_set(vswp->mch, vsw_if_rx_cb, (void *)vswp); in vsw_set_if_hw_addr()
813 D1(vswp, "%s: exit", __func__); in vsw_set_if_hw_addr()
824 vsw_unset_hw_addr(vsw_t *vswp, vsw_port_t *port, int type) in vsw_unset_hw_addr() argument
830 D1(vswp, "%s: enter", __func__); in vsw_unset_hw_addr()
840 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock)); in vsw_unset_hw_addr()
841 vids = vswp->vids; in vsw_unset_hw_addr()
842 nvids = vswp->nvids; in vsw_unset_hw_addr()
847 mch = vswp->mch; in vsw_unset_hw_addr()
862 if ((type == VSW_LOCALDEV) && (vswp->addr_set == B_TRUE)) { in vsw_unset_hw_addr()
863 (void) mac_unicast_remove(vswp->mch, vswp->muh); in vsw_unset_hw_addr()
864 vswp->muh = NULL; in vsw_unset_hw_addr()
865 D2(vswp, "removed vsw interface mac-addr from " in vsw_unset_hw_addr()
866 "the device %s", vswp->physname); in vsw_unset_hw_addr()
867 vswp->addr_set = B_FALSE; in vsw_unset_hw_addr()
872 D2(vswp, "removed port(0x%p) mac-addr from " in vsw_unset_hw_addr()
873 "the device %s", port, vswp->physname); in vsw_unset_hw_addr()
877 D1(vswp, "%s: exit", __func__); in vsw_unset_hw_addr()
891 vsw_t *vswp = (vsw_t *)arg; in vsw_if_rx_cb()
895 ASSERT(vswp != NULL); in vsw_if_rx_cb()
897 D1(vswp, "%s: enter", __func__); in vsw_if_rx_cb()
899 READ_ENTER(&vswp->if_lockrw); in vsw_if_rx_cb()
900 if (vswp->if_state & VSW_IF_UP) { in vsw_if_rx_cb()
901 RW_EXIT(&vswp->if_lockrw); in vsw_if_rx_cb()
902 count = vsw_vlan_frame_untag(vswp, VSW_LOCALDEV, &mp, &mpt); in vsw_if_rx_cb()
904 mac_rx(vswp->if_mh, NULL, mp); in vsw_if_rx_cb()
907 RW_EXIT(&vswp->if_lockrw); in vsw_if_rx_cb()
911 D1(vswp, "%s: exit", __func__); in vsw_if_rx_cb()
925 vsw_t *vswp; in vsw_port_rx_cb()
930 vswp = port->p_vswp; in vsw_port_rx_cb()
932 D1(vswp, "vsw_port_rx_cb: enter"); in vsw_port_rx_cb()
939 D1(vswp, "vsw_port_rx_cb: exit"); in vsw_port_rx_cb()
949 vsw_tx_msg(vsw_t *vswp, mblk_t *mp, int caller, vsw_port_t *port) in vsw_tx_msg() argument
954 READ_MACCL_ENTER(vswp, port, caller); in vsw_tx_msg()
956 mch = (caller == VSW_LOCALDEV) ? vswp->mch : port->p_mch; in vsw_tx_msg()
957 muh = (caller == VSW_LOCALDEV) ? vswp->muh : port->p_muh; in vsw_tx_msg()
960 RW_MACCL_EXIT(vswp, port, caller); in vsw_tx_msg()
966 RW_MACCL_EXIT(vswp, port, caller); in vsw_tx_msg()
990 vsw_t *vswp = portp->p_vswp; in vsw_port_mac_reconfig() local
993 D1(vswp, "%s: enter", __func__); in vsw_port_mac_reconfig()
998 mutex_enter(&vswp->mac_lock); in vsw_port_mac_reconfig()
1000 vsw_mac_multicast_remove_all(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1001 vsw_unset_hw(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1002 vsw_maccl_close(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1020 rv = vsw_maccl_open(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1025 if (vsw_set_hw(vswp, portp, VSW_VNETPORT)) { in vsw_port_mac_reconfig()
1027 "set unicast address\n", vswp->instance, portp->p_instance); in vsw_port_mac_reconfig()
1031 vsw_mac_multicast_add_all(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1035 mutex_exit(&vswp->mac_lock); in vsw_port_mac_reconfig()
1036 D1(vswp, "%s: exit", __func__); in vsw_port_mac_reconfig()
1048 vsw_if_mac_reconfig(vsw_t *vswp, boolean_t update_vlans, in vsw_if_mac_reconfig() argument
1053 D1(vswp, "%s: enter", __func__); in vsw_if_mac_reconfig()
1058 mutex_enter(&vswp->mac_lock); in vsw_if_mac_reconfig()
1059 WRITE_ENTER(&vswp->maccl_rwlock); in vsw_if_mac_reconfig()
1060 vsw_mac_multicast_remove_all(vswp, NULL, VSW_LOCALDEV); in vsw_if_mac_reconfig()
1061 vsw_unset_hw(vswp, NULL, VSW_LOCALDEV); in vsw_if_mac_reconfig()
1062 vsw_maccl_close(vswp, NULL, VSW_LOCALDEV); in vsw_if_mac_reconfig()
1065 if (vswp->nvids != 0) { in vsw_if_mac_reconfig()
1066 kmem_free(vswp->vids, in vsw_if_mac_reconfig()
1067 sizeof (vsw_vlanid_t) * vswp->nvids); in vsw_if_mac_reconfig()
1068 vswp->vids = NULL; in vsw_if_mac_reconfig()
1069 vswp->nvids = 0; in vsw_if_mac_reconfig()
1071 vswp->vids = new_vids; in vsw_if_mac_reconfig()
1072 vswp->nvids = new_nvids; in vsw_if_mac_reconfig()
1073 vswp->pvid = new_pvid; in vsw_if_mac_reconfig()
1080 rv = vsw_maccl_open(vswp, NULL, VSW_LOCALDEV); in vsw_if_mac_reconfig()
1085 if (vsw_set_hw(vswp, NULL, VSW_LOCALDEV)) { in vsw_if_mac_reconfig()
1087 vswp->instance); in vsw_if_mac_reconfig()
1091 vsw_mac_multicast_add_all(vswp, NULL, VSW_LOCALDEV); in vsw_if_mac_reconfig()
1094 RW_EXIT(&vswp->maccl_rwlock); in vsw_if_mac_reconfig()
1095 mutex_exit(&vswp->mac_lock); in vsw_if_mac_reconfig()
1096 D1(vswp, "%s: exit", __func__); in vsw_if_mac_reconfig()
1130 vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch, uint8_t *macaddr, in vsw_mac_add_vlans() argument
1153 vswp->instance, ether_sprintf((void *)macaddr), in vsw_mac_add_vlans()
1157 D2(vswp, "%s:programmed macaddr(%s) vid(%d) " in vsw_mac_add_vlans()
1160 vidp->vl_vid, vswp->physname); in vsw_mac_add_vlans()
1198 vsw_publish_macaddr(vsw_t *vswp, vsw_port_t *portp) in vsw_publish_macaddr() argument
1253 bp = vsw_tx_msg(vswp, bp, VSW_VNETPORT, portp); in vsw_publish_macaddr()
1263 vsw_mac_set_mtu(vsw_t *vswp, uint32_t mtu) in vsw_mac_set_mtu() argument
1268 rv = mac_set_mtu(vswp->mh, mtu, &mtu_orig); in vsw_mac_set_mtu()
1273 vswp->instance, mtu, vswp->physname); in vsw_mac_set_mtu()
1278 vswp->mtu_physdev_orig = mtu_orig; in vsw_mac_set_mtu()
1286 vsw_notify_add(vsw_t *vswp) in vsw_notify_add() argument
1294 note = mac_no_notification(vswp->mh); in vsw_notify_add()
1296 vswp->phys_no_link_update = B_TRUE; in vsw_notify_add()
1298 vswp->phys_no_link_update = B_FALSE; in vsw_notify_add()
1304 vswp->phys_link_state = vswp->phys_no_link_update ? LINK_STATE_UP : in vsw_notify_add()
1305 mac_stat_get(vswp->mh, MAC_STAT_LINK_STATE); in vsw_notify_add()
1310 if (vswp->phys_no_link_update == B_TRUE) { in vsw_notify_add()
1314 mnh = mac_notify_add(vswp->mh, vsw_notify_cb, vswp); in vsw_notify_add()
1320 vswp->mnh = mnh; in vsw_notify_add()
1328 vsw_notify_rem(vsw_t *vswp) in vsw_notify_rem() argument
1332 rv = mac_notify_remove(vswp->mnh, B_FALSE); in vsw_notify_rem()
1343 vsw_t *vswp = arg; in vsw_notify_cb() local
1348 vsw_notify_link(vswp); in vsw_notify_cb()
1362 vsw_notify_link(vsw_t *vswp) in vsw_notify_link() argument
1367 link_state = mac_stat_get(vswp->mh, MAC_STAT_LINK_STATE); in vsw_notify_link()
1369 if (vswp->phys_link_state != link_state) { in vsw_notify_link()
1370 D3(vswp, "%s: phys_link_state(%d)\n", in vsw_notify_link()
1371 __func__, vswp->phys_link_state); in vsw_notify_link()
1373 vswp->phys_link_state = link_state; in vsw_notify_link()
1374 vsw_physlink_state_update(vswp); in vsw_notify_link()
1385 vsw_maccl_set_bandwidth(vsw_t *vswp, vsw_port_t *port, int type, uint64_t maxbw) in vsw_maccl_set_bandwidth() argument
1399 ASSERT(RW_WRITE_HELD(&vswp->maccl_rwlock)); in vsw_maccl_set_bandwidth()
1400 mch = vswp->mch; in vsw_maccl_set_bandwidth()
1401 bw = &vswp->bandwidth; in vsw_maccl_set_bandwidth()
1426 vswp->instance, maxbw, rv); in vsw_maccl_set_bandwidth()