IB/ipoib: Set IPOIB_NEIGH_TBL_FLUSH after flushed completion initialization
authorFeras Daoud <ferasda@mellanox.com>
Sun, 16 Jul 2017 08:33:01 +0000 (11:33 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 23 Jul 2017 06:45:11 +0000 (09:45 +0300)
commitd2e46fccc3e3d73a741efe433f00960331280696
treec6b1757b8a42d42ea95bd0f680bb3eeca067eb0b
parent11f74b40359b19f760964e71d04882a6caf530cc
IB/ipoib: Set IPOIB_NEIGH_TBL_FLUSH after flushed completion initialization

Set IPOIB_NEIGH_TBL_FLUSH bit after initializing the neighbor
flushed completion, otherwise the garbage collector may signal
a completion while it is not initialized yet.

Fixes: b63b70d87741 ("IPoIB: Use a private hash table for path lookup in xmit path")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/ipoib/ipoib_main.c