Blame SOURCES/0005-fix_mtu_limiting_for_ipoib.patch

486e17
commit ad6295aecbb1cd0ab9e026f951b24b9a7a59bd42
486e17
Author: Jarod Wilson <jarod@redhat.com>
486e17
Date:   Tue Jun 26 09:35:08 2018 -0400
486e17
486e17
    Fix MTU limiting for IPoIB in datagram mode
486e17
    
486e17
    RHEL-only
486e17
    
486e17
    Signed-off-by: Jarod Wilson <jarod@redhat.com>
486e17
486e17
diff --git a/redhat/rdma.ifup-ib b/redhat/rdma.ifup-ib
486e17
index bb4d4f71..3779e13f 100644
486e17
--- a/redhat/rdma.ifup-ib
486e17
+++ b/redhat/rdma.ifup-ib
486e17
@@ -117,7 +117,7 @@ if [ -e /sys/class/net/${DEVICE}/mode ]; then
486e17
         echo datagram > /sys/class/net/${DEVICE}/mode
486e17
 	# cap the MTU where we should based upon mode
486e17
 	[ -z "$MTU" ] && MTU=2044
486e17
-	[ "$MTU" -gt 2044 ] && MTU=2044
486e17
+	[ "$MTU" -gt 4092 ] && MTU=4092
486e17
     fi
486e17
 fi
486e17