]> git.baikalelectronics.ru Git - kernel.git/commit
qeth: initialize net_device with carrier off
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Fri, 11 Dec 2015 11:27:55 +0000 (12:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Dec 2015 21:16:45 +0000 (16:16 -0500)
commitc32c1dd32c2d95159c641073f872578297855d79
tree8b78cee295a1057c83523751fefbbff24ce36ede
parent4a2d6da1f72b0a7331916122e51262160014fc84
qeth: initialize net_device with carrier off

/sys/class/net/<interface>/operstate for an active qeth network
interface offen shows "unknown", which translates to "state UNKNOWN
in output of "ip link show". It is caused by a missing initialization
of the __LINK_STATE_NOCARRIER bit in the net_device state field.
This patch adds a netif_carrier_off() invocation when creating the
net_device for a qeth device.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Acked-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Reference-ID: Bugzilla 133209
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c