summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsixiao@microsoft.com <sixiao@microsoft.com>2017-05-31 20:28:27 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-02 21:16:15 +0300
commit2d68f0a48bf06350f9ee72c058a5b20babf95758 (patch)
tree59d45b6e219b0cc2623cb7401bff33c77e4cda32 /tools
parenta22431a323cf47d16ea3edb9b691043f15345652 (diff)
downloadlinux-2d68f0a48bf06350f9ee72c058a5b20babf95758.tar.xz
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 <sixiao@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hv/bondvf.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/hv/bondvf.sh b/tools/hv/bondvf.sh
index 8abd46e007dc..89b25068cd98 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 {