ifmedia: Reset ifm_media and ifm_cur in ifmedia_removeall()
commit1e19ab2722d8aaf35d24a3c6b91ea6b7b014984c
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 25 Nov 2015 07:40:30 +0000 (25 15:40 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 25 Nov 2015 07:40:30 +0000 (25 15:40 +0800)
treeb2c13773409216029b6037eb39f3cf6f5ead852a
parent21ba42d6c3d00c266b04f939a32074b1e93834aa
ifmedia: Reset ifm_media and ifm_cur in ifmedia_removeall()

This function may be called by NIC drivers on non-detach path, so
we need to make sure everything of ifmedia are in sane state.
sys/net/if_media.c