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
This commit is contained in:
Hans Petter Selasky 2019-05-08 10:51:49 +00:00
parent 03ee9ea9bf
commit afbe61616f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347291

View File

@ -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);