]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hyperv: Fix the carrier status setting
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 13 Feb 2014 00:54:27 +0000 (16:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 06:06:13 +0000 (22:06 -0800)
commitf7b42540d33872efc76660c15912ddfefa3fe10d
tree6fb88da0f0f29ea345661e95a3235f3269cca451
parenta946f4c4672a224d17ca4b6a005dc43cf4c2ec74
hyperv: Fix the carrier status setting

[ Upstream commit 891de74d693bb4fefe2efcc6432a4a9a9bee561e ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc_drv.c