Skip to content
Commit b8a1b1ce authored by Roland Dreier's avatar Roland Dreier
Browse files

IPoIB: Fix hang in napi_disable() if P_Key is never found



After commit fe25c561 ("IPoIB: Don't enable NAPI when it's already
enabled"), if an interface is brought up but the corresponding P_Key
never appears, then ipoib_stop() will hang in napi_disable(), because
ipoib_open() returns before it does napi_enable().

Fix this by changing ipoib_open() to call napi_enable() even if the
P_Key isn't present.

Reported-by: default avatarYossi Etigin <yosefe@Voltaire.COM>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent e0b325d3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment