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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Oct 2020 06:02:48 +0000 (08:02 +0200)
commit9c524f9df9c7afec25995f4f973b7aa742412cdd
treef1ebefe603fb9197e86231112aa38edea2ef59b5
parentcaac35688ac1d33e597a51f39e00c9fde1668a37
hv_netvsc: Cache the current data path to avoid duplicate call and message

[ Upstream commit da26658c3d7005aa67a706dceff7b2807b59e123 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c