linux/drivers/net/hyperv
Haiyang Zhang 53fa1a6f33 hv_netvsc: Fix the carrier state error when data path is off
When the VF NIC is opened, the synthetic NIC's carrier state is set to
off. This tells the host to transitions data path to the VF device. But
if startup script or user manipulates the admin state of the netvsc
device directly for example:
        # ifconfig eth0 down
	# ifconfig eth0 up
Then the carrier state of the synthetic NIC would be on, even though the
data path was still over the VF NIC. This patch sets the carrier state
of synthetic NIC with consideration of the related VF state.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-22 13:30:37 -04:00
..
hyperv_net.h hv_netvsc: Fix the carrier state error when data path is off 2017-06-22 13:30:37 -04:00
Kconfig
Makefile
netvsc_drv.c hv_netvsc: Fix the carrier state error when data path is off 2017-06-22 13:30:37 -04:00
netvsc.c hv_netvsc: Fix the carrier state error when data path is off 2017-06-22 13:30:37 -04:00
rndis_filter.c hv_netvsc: Remove unnecessary var link_state from struct netvsc_device_info 2017-06-22 13:30:37 -04:00