diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-05-08 10:51:49 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-05-08 10:51:49 +0000 |
commit | afbe61616fc8d9d514f02519c07912dbbe26aa7e (patch) | |
tree | d23ab35c3ed44cb3dfd21a2c7c63b0d9f6309ee0 /sys/ofed | |
parent | 03ee9ea9bf4e0ff4a3c6dd31dc56a498464f5a0f (diff) | |
download | src-afbe61616fc8d9d514f02519c07912dbbe26aa7e.tar.gz src-afbe61616fc8d9d514f02519c07912dbbe26aa7e.zip |
Handle IB_EVENT_DEVICE_FATAL event in ipoib.
Perform flush if IB_EVENT_DEVICE_FATAL was received.
Submitted by: slavash@
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes
Notes:
svn path=/head/; revision=347291
Diffstat (limited to 'sys/ofed')
-rw-r--r-- | sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c index 4e6c7db811d1..c459b3fb55a7 100644 --- a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c +++ b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c @@ -282,7 +282,8 @@ void ipoib_event(struct ib_event_handler *handler, queue_work(ipoib_workqueue, &priv->flush_light); } else if (record->event == IB_EVENT_PORT_ERR || record->event == IB_EVENT_PORT_ACTIVE || - record->event == IB_EVENT_LID_CHANGE) { + record->event == IB_EVENT_LID_CHANGE || + record->event == IB_EVENT_DEVICE_FATAL) { queue_work(ipoib_workqueue, &priv->flush_normal); } else if (record->event == IB_EVENT_PKEY_CHANGE) { queue_work(ipoib_workqueue, &priv->flush_heavy); |