On (10/11/07 15:35), Artem Kachitchkine wrote: > > I ran some experiments on whitestar2-5... ifconfig bge1 unplumb leaves > leave the driver instance in attached state. DTrace shows calls to > mac_close() and mac_prop_unload(), but no bge_detach() or mac_unregister().
That's correct. This is why in my earlier brute-force version, I was doing property cleanup/restore in mac_stop/mac_start (the detach is controlled by the DDI framework). But I thought that your changes also took care of this by doing the mac_prop_fini, and creating the mac prop if needed in mac_start? > (does the mi_ref look weird?) this may be due to the memory corruption bug I was talking about earlier.. bge_m_setprop gets passed a mac_ndd_arg_t from mac_ndd_set_ioctl for the legacy ndd paths, not a the bge_t itself, and so doing the ndd -set may not be healthy. (workaround: don't do it while I work on the fix).. I'm testing this theory right now.. --Sowmini
