aboutsummaryrefslogtreecommitdiff
path: root/sys/ofed
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-05-08 10:51:49 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-05-08 10:51:49 +0000
commitafbe61616fc8d9d514f02519c07912dbbe26aa7e (patch)
treed23ab35c3ed44cb3dfd21a2c7c63b0d9f6309ee0 /sys/ofed
parent03ee9ea9bf4e0ff4a3c6dd31dc56a498464f5a0f (diff)
downloadsrc-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.c3
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);