Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2019 13:43:32 +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: r345538 - stable/11/sys/dev/mlx4/mlx4_core
Message-ID:  <201903261343.x2QDhWi2036299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Mar 26 13:43:32 2019
New Revision: 345538
URL: https://svnweb.freebsd.org/changeset/base/345538

Log:
  MFC r345011:
  Eliminate useless warning message when reading sysctl node in mlx4core.
  
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c
==============================================================================
--- stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c	Tue Mar 26 13:42:44 2019	(r345537)
+++ stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c	Tue Mar 26 13:43:32 2019	(r345538)
@@ -1236,9 +1236,6 @@ static ssize_t show_port_ib_mtu(struct device *dev,
 						   port_mtu_attr);
 	struct mlx4_dev *mdev = info->dev;
 
-	if (mdev->caps.port_type[info->port] == MLX4_PORT_TYPE_ETH)
-		mlx4_warn(mdev, "port level mtu is only used for IB ports\n");
-
 	sprintf(buf, "%d\n",
 			ibta_mtu_to_int(mdev->caps.port_ib_mtu[info->port]));
 	return strlen(buf);



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