]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9619d0d540d76bc01b8f713f7f691ae2bfb460f
tree26ce0b29d4f8096c65e5034758ed2d324be2592c
parent9fe6a12a51899ea19e0a4568ba02615beb964bb4
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