<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5848" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=829513715-17122009>This patch enables
4K MTU support for CX and CX-II cards with FW ver. 2.7.000 and
upper</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=829513715-17122009>Signed of by:
Alexander Naslednikov (xalex at mellanox.co.il)</SPAN></FONT></DIV>
<DIV><FONT face=Arial
size=2>===================================================================<BR>---
D:/windows/MLNX_WinOF_trunk/hw/mlx4/kernel/bus/net/port.c (revision
5259)<BR>+++
D:/windows/MLNX_WinOF_trunk/hw/mlx4/kernel/bus/net/port.c (revision
5260)<BR>@@ -355,6 +355,14
@@<BR> ETH_HLEN +
ETH_FCS_LEN);<BR> ((__be16 *) mailbox->buf)[4] =
cpu_to_be16(1 << 15);<BR> ((__be16 *) mailbox->buf)[6]
= cpu_to_be16(1 << 15);<BR>+ } else {<BR>+ /* IB PORT
*/<BR>+ <BR>+ ((__be32 *) mailbox->buf)[0] |=
cpu_to_be32((1 << 22) | (1 << 21) | (5 << 12) | (2 <<
4));<BR>+ /* Set mmc bit no. 22 to allow MAX_MTU_SIZE change
*/<BR>+ /* Set mvc bit no. 21 to allow vl_cap change
/*<BR>+ /* Always set MAX_MTU_SIZE == 4K for MLX4 - bits 12:15
*/<BR>+ /* Change vl_cap to be maximum 4 - bits 5:7
*/<BR> }<BR> err = mlx4_cmd(dev, mailbox->dma.da, port,
is_eth,
MLX4_CMD_SET_PORT,<BR>
MLX4_CMD_TIME_CLASS_B);<BR></DIV></FONT></BODY></HTML>