hyperv/hn: add devctl_notify for VF_UP/DOWN events

Reviewed by:	sephe
Approved by:	sephe (mentor)
MFC after:	2 weeks
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D9102
This commit is contained in:
Dexuan Cui 2017-01-24 09:27:13 +00:00
parent 40d60d6ee1
commit 33408a34c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312690

View File

@ -996,6 +996,9 @@ hn_set_vf(struct hn_softc *sc, struct ifnet *ifp, bool vf)
hn_resume_mgmt(sc);
}
devctl_notify("HYPERV_NIC_VF", if_name(hn_ifp),
vf ? "VF_UP" : "VF_DOWN", NULL);
if (bootverbose)
if_printf(hn_ifp, "Data path is switched %s %s\n",
vf ? "to" : "from", if_name(ifp));