mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
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:
parent
40d60d6ee1
commit
33408a34c4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312690
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user