hv_netvsc: Cache the current data path to avoid duplicate call and message
authorDexuan Cui <decui@microsoft.com>
Wed, 9 Sep 2020 04:08:19 +0000 (21:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 19:55:40 +0000 (12:55 -0700)
commitda26658c3d7005aa67a706dceff7b2807b59e123
tree26ce0b29d4f8096c65e5034758ed2d324be2592c
parentde214e52de1bba5392b5b7054924a08dbd57c2f6
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c