diff options
| author | Dexuan Cui <[email protected]> | 2020-09-09 04:08:19 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-10 19:55:40 +0000 |
| commit | da26658c3d7005aa67a706dceff7b2807b59e123 (patch) | |
| tree | 26ce0b29d4f8096c65e5034758ed2d324be2592c /drivers/net/hyperv/hyperv_net.h | |
| parent | hv_netvsc: Switch the data path at the right time during hibernation (diff) | |
| download | kernel-da26658c3d7005aa67a706dceff7b2807b59e123.tar.gz kernel-da26658c3d7005aa67a706dceff7b2807b59e123.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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; }; |
