# HG changeset patch # User WENTAO YANG # Date 1245714236 25200 # Node ID 7fd38e9cb142522c95cf3937b633a84c92977e07 # Parent 1ace2862a58119e43c04ceee1c929893651adebe 6827459 BAD TRAP in mac_bcast_send on LDoms control domain with Build 112 diff -r 1ace2862a581 -r 7fd38e9cb142 usr/src/uts/sun4v/io/vsw_phys.c --- a/usr/src/uts/sun4v/io/vsw_phys.c Mon Jun 22 16:36:08 2009 -0700 +++ b/usr/src/uts/sun4v/io/vsw_phys.c Mon Jun 22 16:43:56 2009 -0700 @@ -132,7 +132,6 @@ */ extern int vsw_mac_open_retries; - #define WRITE_MACCL_ENTER(vswp, port, type) \ (type == VSW_LOCALDEV) ? rw_enter(&vswp->maccl_rwlock, RW_WRITER) :\ rw_enter(&port->maccl_rwlock, RW_WRITER) @@ -558,9 +557,9 @@ vsw_mac_client_cleanup(vsw_t *vswp, vsw_port_t *port, int type) { WRITE_MACCL_ENTER(vswp, port, type); + vsw_mac_multicast_remove_all(vswp, port, type); vsw_unset_hw(vswp, port, type); vsw_maccl_close(vswp, port, type); - vsw_mac_multicast_remove_all(vswp, port, type); RW_MACCL_EXIT(vswp, port, type); }