]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix reported state of interfaces without link
authorDimitris Michailidis <dm@chelsio.com>
Wed, 19 Jan 2011 15:29:05 +0000 (15:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jan 2011 00:45:55 +0000 (16:45 -0800)
commit4f8419be79ab623490e8da7fabb82f12873f0f23
treed130f31ff0f3943ab19c42762263a2fce9801f7c
parent93dc1f553489835286652bdd758d3a41dcc97fee
cxgb4: fix reported state of interfaces without link

Currently tools like ip and ifconfig report incorrect state for cxgb4
interfaces that are up but do not have link and do so until first link
establishment.  This is because the initial netif_carrier_off call is
before register_netdev and it needs to be after to be fully effective.
Fix this by moving netif_carrier_off into .ndo_open.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/cxgb4_main.c