mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
tools: hv: set allow-hotplug for VF on Ubuntu
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>
This commit is contained in:
parent
4c1588a279
commit
a22431a323
1 changed files with 4 additions and 2 deletions
|
@ -134,7 +134,6 @@ function create_eth_cfg_ubuntu {
|
||||||
local fn=$cfgdir/interfaces
|
local fn=$cfgdir/interfaces
|
||||||
|
|
||||||
del_eth_cfg_ubuntu $1
|
del_eth_cfg_ubuntu $1
|
||||||
|
|
||||||
echo $'\n'auto $1 >>$fn
|
echo $'\n'auto $1 >>$fn
|
||||||
echo iface $1 inet manual >>$fn
|
echo iface $1 inet manual >>$fn
|
||||||
echo bond-master $2 >>$fn
|
echo bond-master $2 >>$fn
|
||||||
|
@ -143,7 +142,10 @@ function create_eth_cfg_ubuntu {
|
||||||
function create_eth_cfg_pri_ubuntu {
|
function create_eth_cfg_pri_ubuntu {
|
||||||
local fn=$cfgdir/interfaces
|
local fn=$cfgdir/interfaces
|
||||||
|
|
||||||
create_eth_cfg_ubuntu $1 $2
|
del_eth_cfg_ubuntu $1
|
||||||
|
echo $'\n'allow-hotplug $1 >>$fn
|
||||||
|
echo iface $1 inet manual >>$fn
|
||||||
|
echo bond-master $2 >>$fn
|
||||||
echo bond-primary $1 >>$fn
|
echo bond-primary $1 >>$fn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue