All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next, 2/2] tools: hv: set hotplug for VF on Suse
@ 2017-05-31 17:28 Simon Xiao
  2017-06-02 18:16 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Xiao @ 2017-05-31 17:28 UTC (permalink / raw)
  To: netdev, davem, kys, haiyangz, sthemmin; +Cc: Simon Xiao

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>
---
 tools/hv/bondvf.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next, 2/2] tools: hv: set hotplug for VF on Suse
  2017-05-31 17:28 [PATCH net-next, 2/2] tools: hv: set hotplug for VF on Suse Simon Xiao
@ 2017-06-02 18:16 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-06-02 18:16 UTC (permalink / raw)
  To: sixiao; +Cc: netdev, kys, haiyangz, sthemmin

From: Simon Xiao <sixiao@microsoft.com>
Date: Wed, 31 May 2017 10:28:27 -0700

> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-02 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31 17:28 [PATCH net-next, 2/2] tools: hv: set hotplug for VF on Suse Simon Xiao
2017-06-02 18:16 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.