]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r312687, r312916
authordexuan <dexuan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Feb 2017 06:57:18 +0000 (06:57 +0000)
committerdexuan <dexuan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Feb 2017 06:57:18 +0000 (06:57 +0000)
commitaeafc277f57d2a66ad33c8587ef65c9fd4c88a4b
treedaa74c25f21ff742b5c747f9c347872789bfa6ab
parent3b52a840c1a433059b54bdef8466a8ce153a5937
MFC: r312687, r312916

Approved by: sephe (mentor)

r312687
    ifnet: introduce event handlers for ifup/ifdown events

    Hyper-V's NIC SR-IOV implementation needs a Hyper-V synthetic NIC and
    a VF NIC to work together, mainly to support seamless live migration.

    When the VF device becomes UP (or DOWN), the synthetic NIC driver needs
    to switch the data path from the synthetic NIC to the VF (or the opposite).

    So the synthetic NIC driver needs to know when a VF device is becoming
    UP or DOWN and hence the patch is made.

    Reviewed by: sephe
    Approved by: sephe (mentor)
    Sponsored by: Microsoft
    Differential Revision: https://reviews.freebsd.org/D8963

r312916
    ifnet: move the new ifnet_event EVENTHANDLER_DECLARE to net/if_var.h

    Thank glebius for pointing this out:
    "The network stuff shall not be added to sys/eventhandler.h"

    Reviewed by: David_A_Bright_DELL.com, sephe, glebius
    Approved by: sephe (mentor)
    Sponsored by: Microsoft
    Differential Revision: https://reviews.freebsd.org/D9345

git-svn-id: svn://svn.freebsd.org/base/stable/10@314122 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if.c
sys/net/if_var.h