Date: Mon, 11 Mar 2019 14:34:26 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r345011 - head/sys/dev/mlx4/mlx4_core Message-ID: <201903111434.x2BEYQeq009294@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Mon Mar 11 14:34:25 2019 New Revision: 345011 URL: https://svnweb.freebsd.org/changeset/base/345011 Log: Eliminate useless warning message when reading sysctl node in mlx4core. MFC after: 1 week Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx4/mlx4_core/mlx4_main.c Modified: head/sys/dev/mlx4/mlx4_core/mlx4_main.c ============================================================================== --- head/sys/dev/mlx4/mlx4_core/mlx4_main.c Mon Mar 11 14:29:50 2019 (r345010) +++ head/sys/dev/mlx4/mlx4_core/mlx4_main.c Mon Mar 11 14:34:25 2019 (r345011) @@ -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?201903111434.x2BEYQeq009294>