Skip to content

Commit 2d68f0a

Browse files
simonxiaossdavem330
authored andcommitted
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>
1 parent a22431a commit 2d68f0a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tools/hv/bondvf.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ function create_eth_cfg_suse {
170170
}
171171

172172
function create_eth_cfg_pri_suse {
173-
create_eth_cfg_suse $1
173+
local fn=$cfgdir/ifcfg-$1
174+
175+
rm -f $fn
176+
echo BOOTPROTO=none >>$fn
177+
echo STARTMODE=hotplug >>$fn
174178
}
175179

176180
function create_bond_cfg_suse {

0 commit comments

Comments
 (0)