hyperv: Fix the carrier status setting
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 13 Feb 2014 00:54:27 +0000 (16:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2014 04:45:00 +0000 (23:45 -0500)
commit891de74d693bb4fefe2efcc6432a4a9a9bee561e
treeb252b8b3c1d2cd9cb25258f8545a64d10de1851d
parent09db30805300e9ed5ad43d4d339115cf1d9c84e1
hyperv: Fix the carrier status setting

Without this patch, the "cat /sys/class/net/ethN/operstate" shows
"unknown", and "ethtool ethN" shows "Link detected: yes", when VM
boots up with or without vNIC connected.

This patch fixed the problem.

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