aboutsummaryrefslogtreecommitdiff
path: root/libexec/hyperv
diff options
context:
space:
mode:
authorSepherosa Ziehau <sephe@FreeBSD.org>2017-07-31 07:18:15 +0000
committerSepherosa Ziehau <sephe@FreeBSD.org>2017-07-31 07:18:15 +0000
commitc685956956793831f724177309eace82c4b347b9 (patch)
tree53cd18159e9f305b09c931c0be9927f7932a7ced /libexec/hyperv
parent4c0c8a36da0bda1ade0f4d0a56599360df302b57 (diff)
downloadsrc-c685956956793831f724177309eace82c4b347b9.tar.gz
src-c685956956793831f724177309eace82c4b347b9.zip
hyperv: Add VF bringup scripts and devd rules.
How network VF works with hn(4) on Hyper-V in non-transparent mode: - Each network VF has a cooresponding hn(4). - The network VF and the it's cooresponding hn(4) have the same hardware address. - Once the network VF is up, e.g. ifconfig VF up: o All of the transmission should go through the network VF. o Most of the reception goes through the network VF. o Small amount of reception may go through the cooresponding hn(4). This reception will happen, even if the the cooresponding hn(4) is down. The cooresponding hn(4) will change the reception interface to the network VF, so that network layer and application layer will be tricked into thinking that these packets were received by the network VF. o The cooresponding hn(4) pretends the physical link is down. - Once the network VF is down or detached: o All of the transmission should go through the cooresponding hn(4). o All of the reception goes through the cooresponding hn(4). o The cooresponding hn(4) fallbacks to the original physical link detection logic. All these features are mainly used to help live migration, during which the network VF will be detached, while the network communication to the VM must not be cut off. In order to reach this level of live migration transparency, we use failover mode lagg(4) with the network VF and the cooresponding hn(4) attached to it. To ease user configuration for both network VF and non-network VF, the lagg(4) will be created by the following rules, and the configuration of the cooresponding hn(4) will be applied to the lagg(4) automatically. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11635
Notes
Notes: svn path=/head/; revision=321762
Diffstat (limited to 'libexec/hyperv')
-rw-r--r--libexec/hyperv/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/hyperv/Makefile b/libexec/hyperv/Makefile
index a89b7435d2e5..6e251b24faa7 100644
--- a/libexec/hyperv/Makefile
+++ b/libexec/hyperv/Makefile
@@ -5,5 +5,6 @@
BINDIR= ${LIBEXECDIR}/hyperv
SCRIPTS= hv_set_ifconfig hv_get_dns_info hv_get_dhcp_info
+SCRIPTS+= hyperv_vfattach hyperv_vfup
.include <bsd.prog.mk>