]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cnic: Improve NETDEV_UP event handling
authorMichael Chan <mchan@broadcom.com>
Wed, 8 Jun 2011 19:29:35 +0000 (19:29 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:20 +0000 (15:35 -0400)
commitd84de18582329b57ddbfe8d45e00f09e8ab6c682
treebc6a6de163b212a0348c956c183c48f3681a2998
parenta08b86e5d76cce96ddb20a851b3a700dc413fc6b
cnic: Improve NETDEV_UP event handling

commit db1d350fcb156b58f66a67680617077bcacfe6fc upstream.

During NETDEV_UP, we use symbol_get() to get the net driver's cnic
probe function.  This sometimes doesn't work if NETDEV_UP happens
right after NETDEV_REGISTER and the net driver is still running module
init code.  As a result, the cnic device may not be discovered.  We
fix this by probing on all NETDEV events if the device's netif_running
state is up.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/net/cnic.c