]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f6e2b0af6f6617cb9b6cf073eaffa72516c0e8e
treeb252b8b3c1d2cd9cb25258f8545a64d10de1851d
parent9c4c444d963aa909f53773b679e9378ea0a855a9
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