]> git.openfabrics.org - ~emulex/infiniband.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)
commit6a3c869a6021f4abcd69aa5fbb15c63f69eb36fe
treed130f31ff0f3943ab19c42762263a2fce9801f7c
parent4580ccc04ddd8c17a470573a7fdb8def2e036dfa
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