svn commit: r341956 - stable/11/sys/dev/mlx5/mlx5_ib
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Dec 12 12:35:52 UTC 2018
Author: hselasky
Date: Wed Dec 12 12:35:51 2018
New Revision: 341956
URL: https://svnweb.freebsd.org/changeset/base/341956
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/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 Wed Dec 12 12:35:33 2018 (r341955)
+++ stable/11/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c Wed Dec 12 12:35:51 2018 (r341956)
@@ -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;
}
More information about the svn-src-stable-11
mailing list