From: sixiao@microsoft.com Date: Wed, 31 May 2017 17:28:27 +0000 (-0700) Subject: tools: hv: set hotplug for VF on Suse X-Git-Tag: v4.14-rc1~596^2~310 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d68f0a48bf06350f9ee72c058a5b20babf95758;p=platform%2Fkernel%2Flinux-rpi3.git 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. Signed-off-by: Simon Xiao Reviewed-by: Haiyang Zhang Signed-off-by: David S. Miller --- diff --git a/tools/hv/bondvf.sh b/tools/hv/bondvf.sh index 8abd46e..89b2506 100755 --- a/tools/hv/bondvf.sh +++ b/tools/hv/bondvf.sh @@ -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 {