<!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.18828"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=389374320-05012010>Committed.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=389374320-05012010></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=389374320-05012010></SPAN>Revision: 2651<BR>Author: stansmith<BR>Date:
10:51:23 AM, Tuesday, January 05, 2010<BR>Message:[IPoIB_NDIS6_CM] - DHCP not
working<SPAN class=389374320-05012010>.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=389374320-05012010>F</SPAN>ix the wrong length calculation of<SPAN
class=389374320-05012010> </SPAN>first MDL within Net Buffer object.<BR>The
actual length of first MDL should be <SPAN
class=389374320-05012010>de</SPAN>cremented by it's
offset.</FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>signed-off by:
Alexander Naslednikov (xalex at mellanox.co.il)<BR>----<BR>Modified :
/gen1/branches/WOF2-2/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp<BR>Modified :
/gen1/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp<BR></FONT></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Alex Naslednikov <BR><B>Sent:</B> Sunday,
December 27, 2009 3:27 PM<BR><B>To:</B>
ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw] [Patch] [IPoIB_NDIS6_CM]
Fixing DHCP problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=010472313-27122009>This patch fixes the
wrong length calculation of</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=010472313-27122009>first MDL within Net
Buffer object.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=010472313-27122009>The actual length of
first MDL should be incremented by it's offset</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=010472313-27122009>signed-off by:
Alexander Naslednikov (xalex at mellanox.co.il)</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial>Index:
kernel/ipoib_port.cpp<BR>===================================================================<BR>---
kernel/ipoib_port.cpp (revision 5387)<BR>+++
kernel/ipoib_port.cpp (working copy)<BR>@@ -3504,6 +3504,9
@@<BR> return
NDIS_STATUS_FAILURE;<BR> }<BR> <BR>+ ULONG MdlDataOffset =
NET_BUFFER_CURRENT_MDL_OFFSET(p_net_buffer);<BR>+ *p_mdl_len -=
MdlDataOffset;<BR>+ <BR> if( *p_mdl_len < sizeof(eth_hdr_t)
)<BR> {<BR> IPOIB_PRINT_EXIT( TRACE_LEVEL_ERROR,
IPOIB_DBG_ERROR,<BR>@@ -3512,7 +3515,8 @@<BR> return
NDIS_STATUS_BUFFER_TOO_SHORT;<BR> }<BR> <BR>- *pp_eth_hdr =
(eth_hdr_t*)(p_head +
NET_BUFFER_CURRENT_MDL_OFFSET(p_net_buffer));<BR>+ *pp_eth_hdr =
(eth_hdr_t*)(p_head +
MdlDataOffset);<BR>+ <BR> <BR> IPOIB_PRINT_EXIT(
TRACE_LEVEL_INFORMATION, IPOIB_DBG_SEND,<BR> ("Ethernet
header:\n"<BR></DIV></FONT></BODY></HTML>