]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: don't lose VF information
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 15 Aug 2016 15:48:39 +0000 (17:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 20:48:07 +0000 (13:48 -0700)
commit0b051f1cc1140b8e558b02590038cf247b502d37
tree52281efad794b841bc560f518a5819adad2d7e69
parent9e960f392bcfa181688d63d17cb6973100ae2237
hv_netvsc: don't lose VF information

struct netvsc_device is not suitable for storing VF information as this
structure is being destroyed on MTU change / set channel operation (see
rndis_filter_device_remove()). Move all VF related stuff to struct
net_device_context which is persistent.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c