Skip to contentSkip to conversation

tools: hv: set hotplug for VF on Suse

PATCH Applied Simon Xiao 2 participants 2 messages May 31, 2017 – Jun 2, 2017

Subsystems (3)
lore
Share & tools
lore

Simon Xiao

author
#0 lore raw

PATCH 2/2 tools: hv: set hotplug for VF on Suse

On HyperV, the VF interface can be offered by a host at any time. Mark the VF interface as hotplug, to make sure it will be brought up automatically when it is registered.

---
 tools/hv/bondvf.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
tools/hv/bondvf.sh +5 -1
index 8abd46e..89b2506 100755
@@ -170,7 +170,11 @@ function create_eth_cfg_suse {
 }
 
 function create_eth_cfg_pri_suse {
-	create_eth_cfg_suse $1
+	local fn=$cfgdir/ifcfg-$1
+
+	rm -f $fn
+	echo BOOTPROTO=none >>$fn
+	echo STARTMODE=hotplug >>$fn
 }
 
 function create_bond_cfg_suse {
Signature · 1 line
2.7.4