]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mark ipoib device as initialized on device open.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 10 Nov 2017 08:58:42 +0000 (08:58 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 10 Nov 2017 08:58:42 +0000 (08:58 +0000)
commit1529133ab38fd2ae5c2b4df6cd6e6c89800aacc4
tree294794e267b026746a76c98046a29787c1a0580a
parent076f7ce6f637c141dfa70f737a4a9bc9e6df7bc9
Mark ipoib device as initialized on device open.

Set the IPOIB_FLAG_INITIALIZED on dev_open and clear it on dev_stop to
avoid a race between ipoib load and the underlying device driver.

The device module must dispatch the IB_EVENT_PORT_ACTIVE event before ipoib
module is loaded. Otherwise, the flush will fail since no one set the
IPOIB_FLAG_INITIALIZED.

Submitted by: Slava Shwartsman <slavash@mellanox.com>
Sponsored by: Mellanox Technologies
MFC after: 1 week
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c