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

Tzachi Dar tzachid at mellanox.co.il
Tue Jul 8 07:37:02 PDT 2008


Applied on 1342.
 
Thanks
Tzachi


________________________________

	From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Alex Naslednikov
	Sent: Sunday, July 06, 2008 6:39 PM
	To: ofw at lists.openfabrics.org
	Subject: [ofw] Patch that enable support for 4K MTU size
	
	
	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/20080708/cd6617bb/attachment.html>


More information about the ofw mailing list