[ofw] Patch that enable support for 4K MTU size

Alex Naslednikov xalex at mellanox.co.il
Sun Jul 6 08:38:31 PDT 2008


Index: ulp/ipoib/kernel/ipoib_driver.h
===================================================================
--- ulp/ipoib/kernel/ipoib_driver.h (revision 2702)
+++ ulp/ipoib/kernel/ipoib_driver.h (revision 2703)
@@ -47,8 +47,8 @@
  */
 #define MAX_BUNDLE_ID_LENGTH 32
 
-
-#define IB_MTU   2048
+/* MLX4 supports 4K MTU */
+#define IB_MTU   4096
 /*
  * Header length as defined by IPoIB spec:
  *
http://www.ietf.org/internet-drafts/draft-ietf-ipoib-ip-over-infiniband-
04.txt
Index: hw/mlx4/kernel/bus/ib/qp.c
===================================================================
--- hw/mlx4/kernel/bus/ib/qp.c (revision 2702)
+++ hw/mlx4/kernel/bus/ib/qp.c (revision 2703)
@@ -769,7 +769,7 @@
 
  if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI ||
      ibqp->qp_type == IB_QPT_UD)
-  context->mtu_msgmax = (IB_MTU_4096 << 5) | 11;
+  context->mtu_msgmax = (IB_MTU_4096 << 5) | 12;
  else if (attr_mask & IB_QP_PATH_MTU) {
   if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_4096) {
    printk(KERN_ERR "path MTU (%u) is invalid\n",

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


More information about the ofw mailing list