diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-08-09 17:46:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 13:59:42 -0700 |
commit | 6123c66854c174e4982f98195100c1d990f9e5e6 (patch) | |
tree | 2b51c49328bf436cc3c8663f96bdf91e799eb5e9 /drivers/net/hyperv/hyperv_net.h | |
parent | d18c2a1b159d107e341206500747dceabe8501fb (diff) |
netvsc: delay setup of VF device
When VF device is discovered, delay bring it automatically up in
order to allow userspace to some simple changes (like renaming).
Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 98b25f6900c8..a57e37641dc5 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -723,7 +723,7 @@ struct net_device_context { /* State to manage the associated VF interface. */ struct net_device __rcu *vf_netdev; struct netvsc_vf_pcpu_stats __percpu *vf_stats; - struct work_struct vf_takeover; + struct delayed_work vf_takeover; /* 1: allocated, serial number is valid. 0: not allocated */ u32 vf_alloc; |