hv_netvsc: Fix the list processing for network change event
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 21 Apr 2016 23:13:01 +0000 (16:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2016 03:27:58 +0000 (23:27 -0400)
commit15cfd40771e18a4e9b788c64c9db2606f958b93d
treec6da0d9154f35255ecb57a28453556d3664bc4db
parent10d3be569243def8d92ac3722395ef5a59c504e6
hv_netvsc: Fix the list processing for network change event

RNDIS_STATUS_NETWORK_CHANGE event is handled as two "half events" --
media disconnect & connect. The second half should be added to the list
head, not to the tail. So all events are processed in normal order.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c