Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 12:35:34 +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-12@freebsd.org
Subject:   svn commit: r341955 - stable/12/sys/dev/mlx5/mlx5_ib
Message-ID:  <201812121235.wBCCZYwa086930@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Dec 12 12:35:33 2018
New Revision: 341955
URL: https://svnweb.freebsd.org/changeset/base/341955

Log:
  MFC r341571:
  mlx5ib: Set default active width and speed when querying port.
  
  Make sure the active width and speed is set in case the
  translate_eth_proto_oper() function doesn't recognize the
  current port operation mask.
  
  Linux commit:
  7672ed33c4c15dbe9d56880683baaba4227cf940
  
  Sponsored by:   Mellanox Technologies

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

Modified: stable/12/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c	Wed Dec 12 12:34:35 2018	(r341954)
+++ stable/12/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c	Wed Dec 12 12:35:33 2018	(r341955)
@@ -219,6 +219,8 @@ static int translate_eth_proto_oper(u32 eth_proto_oper
 		*active_speed = IB_SPEED_EDR;
 		break;
 	default:
+		*active_width = IB_WIDTH_4X;
+		*active_speed = IB_SPEED_QDR;
 		return -EINVAL;
 	}
 



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