Skip to content

Commit

Permalink
tools: hv: set hotplug for VF on Suse
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
simonxiaoss authored and davem330 committed Jun 2, 2017
1 parent a22431a commit 2d68f0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/hv/bondvf.sh
Expand Up @@ -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 {
Expand Down

0 comments on commit 2d68f0a

Please sign in to comment.