From: Michael Chan Date: Wed, 8 Jun 2011 19:29:35 +0000 (+0000) Subject: cnic: Improve NETDEV_UP event handling X-Git-Tag: v3.1-rc1~316^2~450^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db1d350fcb156b58f66a67680617077bcacfe6fc;p=pandora-kernel.git cnic: Improve NETDEV_UP event handling 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed