diff options
author | Yossi Etigin <yosefe@Voltaire.COM> | 2008-11-12 10:24:36 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-11-12 10:24:36 -0800 |
commit | fe25c56190bbc0951d7c53b4ccd148e669d69938 (patch) | |
tree | 014505ce749ad84073d76f4c12e8212c1be59076 /scripts/bloat-o-meter | |
parent | 332edc2f7fa58b818dfed1cede60272eecc27c0a (diff) |
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 <yosefe@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'scripts/bloat-o-meter')
0 files changed, 0 insertions, 0 deletions