<!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=159502711-08102009>This code is being
used for easier debugging. It allows one to connect to a live system with a
local kernel debugger and see the adapters state.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=159502711-08102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=159502711-08102009>Thanks</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=159502711-08102009>Tzachi</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Index:
Q:/projMLNX_WinOF_2.0.7/MLNX_WinOF_2-0/ulp/ipoib/kernel/ipoib_driver.c<BR>===================================================================<BR>---
Q:/projMLNX_WinOF_2.0.7/MLNX_WinOF_2-0/ulp/ipoib/kernel/ipoib_driver.c (revision
4898)<BR>+++
Q:/projMLNX_WinOF_2.0.7/MLNX_WinOF_2-0/ulp/ipoib/kernel/ipoib_driver.c (revision
4899)<BR>@@ -133,6 +133,47 @@<BR> #define MAX_GUID_MAX
0xFC<BR> <BR> <BR>+#define MAX_CARDS
8<BR>+ipoib_adapter_t *g_NIC[MAX_CARDS] = { NULL }
;<BR>+<BR>+static void AddNewAdapter(ipoib_adapter_t*
pAdapter)<BR>+{<BR>+ UINT i;<BR>+ <BR>+ for(i=0 ; i <
MAX_CARDS; i++)<BR>+ {<BR>+ if (g_NIC[i] ==
pAdapter)<BR>+ {<BR>+ CL_ASSERT(FALSE);<BR>+ return;<BR>+ }<BR>+ }<BR>+<BR>+ for(i=0
; i < MAX_CARDS; i++)<BR>+ {<BR>+ if (g_NIC[i] ==
NULL)<BR>+ {<BR>+ g_NIC[i] =
pAdapter;<BR>+ return;<BR>+ }<BR>+ }<BR>+}<BR>+<BR>+<BR>+static
void RemoveAdapter(ipoib_adapter_t* pAdapter)<BR>+{<BR>+ UINT
i;<BR>+ for(i=0 ; i < MAX_CARDS; i++)<BR>+ {<BR>+ if
(g_NIC[i] == pAdapter)<BR>+ {<BR>+ g_NIC[i] =
NULL;<BR>+ return;<BR>+ }<BR>+ }<BR>+}<BR>+<BR>+<BR> /*
Global driver debug level */<BR> uint32_t g_ipoib_dbg_level =
TRACE_LEVEL_ERROR;<BR> uint32_t g_ipoib_dbg_flags =
0x00000fff;<BR>@@ -792,6 +833,8 @@<BR> return
NDIS_STATUS_FAILURE;<BR> }<BR> <BR>+ AddNewAdapter(p_adapter);<BR>+<BR> ipoib_ref_ibat();<BR> <BR> IPOIB_EXIT(
IPOIB_DBG_INIT );<BR>@@ -824,6 +867,8
@@<BR> <BR> ipoib_destroy_adapter( p_adapter
);<BR> <BR>+ RemoveAdapter(p_adapter);<BR>+<BR> IPOIB_EXIT(
IPOIB_DBG_INIT );<BR> }<BR> <BR></DIV></FONT></BODY></HTML>