<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=312540518-15112009>signed off by:
Firas</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Index:
Q:/projinf3/trunk/hw/mlx4/kernel/bus/core/ev_log.mc<BR>===================================================================<BR>---
Q:/projinf3/trunk/hw/mlx4/kernel/bus/core/ev_log.mc (revision 5062)<BR>+++
Q:/projinf3/trunk/hw/mlx4/kernel/bus/core/ev_log.mc (revision 5063)<BR>@@
-155,4 +155,9 @@<BR> WdfDeviceOpenRegistryKey failed on opening SW
(=driver) key for mlx4_bus with status
%2.<BR> .<BR> <BR>+MessageId=0x0012 Facility=MLX4 Severity=Warning
SymbolicName=EVENT_MLX4_WARN_INVALID_PORT_TYPE_VALUE<BR>+Language=English<BR>+PortType
registry parameter contains invalid value, PortType =
%2.<BR>+.<BR> <BR>+<BR>Index:
Q:/projinf3/trunk/hw/mlx4/kernel/bus/drv/drv.c<BR>===================================================================<BR>---
Q:/projinf3/trunk/hw/mlx4/kernel/bus/drv/drv.c (revision 5062)<BR>+++
Q:/projinf3/trunk/hw/mlx4/kernel/bus/drv/drv.c (revision 5063)<BR>@@ -320,7
+320,7 @@<BR> DECLARE_CONST_UNICODE_STRING(PortType,
L"PortType");<BR> <BR> #define MAX_UVALUE 100<BR>- WCHAR
uvalue_data[MAX_UVALUE];<BR>+ WCHAR
uvalue_data[MAX_UVALUE]={0};<BR> UNICODE_STRING
uvalue; <BR> uvalue.Buffer =
uvalue_data;<BR> uvalue.MaximumLength = MAX_UVALUE;<BR>@@ -361,6
+361,8 @@<BR> uvalue.Length =
0;<BR> }<BR> <BR>+
memset(&uvalue_data,0,sizeof(uvalue_data));<BR>+<BR> status =
WdfRegistryQueryUnicodeString(hParamsKey, &PortType, NULL,
&uvalue);<BR> if (NT_SUCCESS (status)) {<BR> if
(!wcscmp(uvalue_data, L"ib,ib")) {<BR>@@ -378,6 +380,10
@@<BR> if (!wcscmp(uvalue_data, L"eth,eth"))
{<BR> dev_params->mod_port_type[0] =
MLX4_PORT_TYPE_ETH;<BR> dev_params->mod_port_type[1] =
MLX4_PORT_TYPE_ETH;<BR>+ } else {<BR>+
MLX4_PRINT( TRACE_LEVEL_ERROR ,MLX4_DBG_DEV ,("Invalid value,
PortType = %s\n",
uvalue_data));
<BR>+
WriteEventLogEntryData( pdev->p_self_do,
(ULONG)EVENT_MLX4_WARN_INVALID_PORT_TYPE_VALUE, 0, 0,
1,<BR>+
L"%s",uvalue_data);
<BR> }<BR> }<BR> else
{<BR></DIV></FONT></BODY></HTML>