hv_netvsc: fix locking for rx_mode
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 7 Mar 2018 21:49:11 +0000 (13:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 17:48:56 +0000 (12:48 -0500)
commit35a57b7fef136fa3d5b735ba773f191b95110fa0
treee9660042bfba78f46327d71fe215a0fb5fbab8c6
parent7eeb4a6ee4820c4e84895d252079a797f27fc80d
hv_netvsc: fix locking for rx_mode

The rx_mode operation handler is different than other callbacks
in that is not always called with rtnl held. Therefore use
RCU to ensure that references are valid.

Fixes: bee9d41b37ea ("hv_netvsc: propagate rx filters to VF")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c