tools: hv: set hotplug for VF on Suse
authorsixiao@microsoft.com <sixiao@microsoft.com>
Wed, 31 May 2017 17:28:27 +0000 (10:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jun 2017 18:16:15 +0000 (14:16 -0400)
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.

Signed-off-by: Simon Xiao <sixiao@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/hv/bondvf.sh

index 8abd46e007dc8a6158005b52f9295296048afb50..89b25068cd98775d9f10f3cb409012034b34ed3e 100755 (executable)
@@ -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 {