summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2016-09-22 16:56:32 -0700
committerDavid S. Miller <davem@davemloft.net>2016-09-23 08:39:49 -0400
commite8ff40d4bff1f3b6a588e29ed1fbdfd943642856 (patch)
tree6add1d59d1087110a15f98e637cb820b2fe9ed5e /drivers/net/hyperv/hyperv_net.h
parentee837a137304290a1ae26980c73a367f7afef54f (diff)
downloadlinux-e8ff40d4bff1f3b6a588e29ed1fbdfd943642856.tar.bz2
hv_netvsc: improve VF device matching
The code to associate netvsc and VF devices can be made less error prone by using a better matching algorithms. On registration, use the permanent address which avoids any possible issues caused by device MAC address being changed. For all other callbacks, search by the netdevice pointer value to ensure getting the correct network device. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
0 files changed, 0 insertions, 0 deletions