Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 08:38:37 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r337100 - stable/11/sys/dev/mlx5/mlx5_ib
Message-ID:  <201808020838.w728cbb4050969@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Aug  2 08:38:37 2018
New Revision: 337100
URL: https://svnweb.freebsd.org/changeset/base/337100

Log:
  MFC r336394:
  Don't pass unsupported events to ibcore from mlx5ib.
  
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c	Thu Aug  2 08:37:44 2018	(r337099)
+++ stable/11/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c	Thu Aug  2 08:38:37 2018	(r337100)
@@ -2381,14 +2381,15 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, v
 		break;
 
 	default:
-		break;
+		/* unsupported event */
+		return;
 	}
 
 	ibev.device	      = &ibdev->ib_dev;
 	ibev.element.port_num = port;
 
 	if (port < 1 || port > ibdev->num_ports) {
-		mlx5_ib_warn(ibdev, "warning: event on port %d\n", port);
+		mlx5_ib_warn(ibdev, "warning: event(%d) on port %d\n", event, port);
 		return;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808020838.w728cbb4050969>