diff options
author | Dexuan Cui <decui@microsoft.com> | 2020-09-08 21:08:19 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-10 12:55:40 -0700 |
commit | da26658c3d7005aa67a706dceff7b2807b59e123 (patch) | |
tree | 26ce0b29d4f8096c65e5034758ed2d324be2592c /drivers/net/hyperv/hyperv_net.h | |
parent | de214e52de1bba5392b5b7054924a08dbd57c2f6 (diff) | |
download | linux-da26658c3d7005aa67a706dceff7b2807b59e123.tar.bz2 |
hv_netvsc: Cache the current data path to avoid duplicate call and message
The previous change "hv_netvsc: Switch the data path at the right time
during hibernation" adds the call of netvsc_vf_changed() upon
NETDEV_CHANGE, so it's necessary to avoid the duplicate call and message
when the VF is brought UP or DOWN.
Signed-off-by: Dexuan Cui <decui@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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 2181d4538ab7..ff33f27cdcd3 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -974,6 +974,9 @@ struct net_device_context { /* Serial number of the VF to team with */ u32 vf_serial; + /* Is the current data path through the VF NIC? */ + bool data_path_is_vf; + /* Used to temporarily save the config info across hibernation */ struct netvsc_device_info *saved_netvsc_dev_info; }; |