[ofw] [PATCH] [ibbus]

Alex Naslednikov xalex at mellanox.co.il
Thu Dec 17 07:41:53 PST 2009


This patch enables 4K MTU support for CX and CX-II cards with FW ver.
2.7.000 and upper
Signed of by: Alexander Naslednikov (xalex at mellanox.co.il)
===================================================================
--- D:/windows/MLNX_WinOF_trunk/hw/mlx4/kernel/bus/net/port.c (revision
5259)
+++ D:/windows/MLNX_WinOF_trunk/hw/mlx4/kernel/bus/net/port.c (revision
5260)
@@ -355,6 +355,14 @@
         ETH_HLEN + ETH_FCS_LEN);
   ((__be16 *) mailbox->buf)[4] = cpu_to_be16(1 << 15);
   ((__be16 *) mailbox->buf)[6] = cpu_to_be16(1 << 15);
+ } else {
+ /* IB PORT */
+  
+  ((__be32 *) mailbox->buf)[0] |= cpu_to_be32((1 << 22) | (1 << 21) |
(5 << 12) | (2 << 4));
+  /* Set mmc bit no. 22 to allow MAX_MTU_SIZE change */
+  /* Set mvc bit no. 21 to allow vl_cap change /*
+  /* Always set MAX_MTU_SIZE == 4K for MLX4 - bits 12:15 */
+  /* Change vl_cap to be maximum 4 - bits 5:7 */
  }
  err = mlx4_cmd(dev, mailbox->dma.da, port, is_eth, MLX4_CMD_SET_PORT,
          MLX4_CMD_TIME_CLASS_B);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20091217/c7cd2bba/attachment.html>


More information about the ofw mailing list