summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/netvsc/hn_nvs.h
diff options
context:
space:
mode:
authordexuan <dexuan@FreeBSD.org>2017-02-23 07:04:17 +0000
committerdexuan <dexuan@FreeBSD.org>2017-02-23 07:04:17 +0000
commiteacb7ed261c8a649db8cba504d96d0f0aa0c7805 (patch)
treed653110b015e30846c3de0dd5b511e94d60e9bf9 /sys/dev/hyperv/netvsc/hn_nvs.h
parent801edb7982092c7fdc32ca79e679bc44e314d71f (diff)
downloadFreeBSD-src-eacb7ed261c8a649db8cba504d96d0f0aa0c7805.zip
FreeBSD-src-eacb7ed261c8a649db8cba504d96d0f0aa0c7805.tar.gz
MFC: r312688
Approved by: sephe (mentor) r312688 hyperv/hn: add the support for VF drivers (SR-IOV) Hyper-V's NIC SR-IOV implementation needs a Hyper-V synthetic NIC and a VF NIC to work together (both NICs have the same MAC address), 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). Note: multicast/broadcast packets are still received through the synthetic NIC and we need to inject the packets through the VF interface (if the VF is UP), even if the synthetic NIC is DOWN (so we need to force the rxfilter to be NDIS_PACKET_TYPE_PROMISCUOUS, when the VF is UP). Reviewed by: sephe Approved by: sephe (mentor) Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8964
Diffstat (limited to 'sys/dev/hyperv/netvsc/hn_nvs.h')
-rw-r--r--sys/dev/hyperv/netvsc/hn_nvs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/hyperv/netvsc/hn_nvs.h b/sys/dev/hyperv/netvsc/hn_nvs.h
index 49b03e0..f716abf 100644
--- a/sys/dev/hyperv/netvsc/hn_nvs.h
+++ b/sys/dev/hyperv/netvsc/hn_nvs.h
@@ -100,6 +100,7 @@ void hn_nvs_sent_xact(struct hn_nvs_sendctx *sndc,
int hn_nvs_send_rndis_ctrl(struct vmbus_channel *chan,
struct hn_nvs_sendctx *sndc, struct vmbus_gpa *gpa,
int gpa_cnt);
+void hn_nvs_set_datapath(struct hn_softc *sc, uint32_t path);
extern struct hn_nvs_sendctx hn_nvs_sendctx_none;
OpenPOWER on IntegriCloud