svn commit: r347291 - head/sys/ofed/drivers/infiniband/ulp/ipoib

Hans Petter Selasky hselasky at FreeBSD.org
Wed May 8 10:51:50 UTC 2019


Author: hselasky
Date: Wed May  8 10:51:49 2019
New Revision: 347291
URL: https://svnweb.freebsd.org/changeset/base/347291

Log:
  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

Modified:
  head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c

Modified: head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c	Wed May  8 10:51:29 2019	(r347290)
+++ head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c	Wed May  8 10:51:49 2019	(r347291)
@@ -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);


More information about the svn-src-head mailing list