IB/ipoib: Use P_Key change event instead of P_Key polling mechanism
authorErez Shitrit <erezsh@mellanox.com>
Tue, 8 Jul 2014 09:45:11 +0000 (12:45 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 5 Aug 2014 14:47:33 +0000 (07:47 -0700)
commitdb84f88037592f069f5c1fc7f6b00ae6f5eb2e84
treeb6819e0ba4e3583e98fce535e2abe6c80300255c
parente316453301f02bfcaabcb86e628f3dbef2e96c7e
IB/ipoib: Use P_Key change event instead of P_Key polling mechanism

The current code use a dedicated polling logic to determine when the P_Key
assigned to the ipoib device is present in HCA port table and act accordingly.

Move to use the code which acts upon getting PKEY_CHANGE event to handle this
task and remove the P_Key polling logic/thread as they add extra complexity
which isn't needed.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_main.c