From: Yossi Etigin Date: Wed, 12 Nov 2008 18:24:36 +0000 (-0800) Subject: IPoIB: Don't enable NAPI when it's already enabled X-Git-Tag: v2.6.28-rc5~61^2^4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe25c56190bbc0951d7c53b4ccd148e669d69938;p=pandora-kernel.git IPoIB: Don't enable NAPI when it's already enabled If a P_Key is not present when an interface is created, ipoib_open() will return after doing napi_enable(). ipoib_open() will be called again from ipoib_pkey_poll() when the P_Key appears, after NAPI has already been enabled, and try to enable it again. This triggers a BUG_ON() in napi_enable(). Fix this by moving the call to napi_enable() to after the test for P_Key presence. Signed-off-by: Yossi Etigin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed