Bug 1252755: increase maximum UDP packet size to 9216 bytes for jumbo frames. r=jesup
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Tue, 01 Mar 2016 22:13:14 -0800
changeset 322979 2f3de0b4e8fce877da2a541d569a18eeaa8532d9
parent 322978 6f2ba39efd9bae76a5a33abd971c132d01aeb90b
child 322980 ac4148f22b2d6f76762dac3fd94a6452da80bdde
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs1252755
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1252755: increase maximum UDP packet size to 9216 bytes for jumbo frames. r=jesup MozReview-Commit-ID: 9aNARxTIdyr
netwerk/base/nsUDPSocket.cpp
--- a/netwerk/base/nsUDPSocket.cpp
+++ b/netwerk/base/nsUDPSocket.cpp
@@ -455,19 +455,19 @@ nsUDPSocket::OnSocketReady(PRFileDesc *f
   {
     NS_WARNING("error polling on listening socket");
     mCondition = NS_ERROR_UNEXPECTED;
     return;
   }
 
   PRNetAddr prClientAddr;
   uint32_t count;
-  // Bug 1165423 - using 8k here because the packet could be larger
-  // than the MTU with fragmentation
-  char buff[8 * 1024];
+  // Bug 1252755 - use 9216 bytes to allign with nICEr and transportlayer to
+  // support the maximum size of jumbo frames
+  char buff[9216];
   count = PR_RecvFrom(mFD, buff, sizeof(buff), 0, &prClientAddr, PR_INTERVAL_NO_WAIT);
 
   if (count < 1) {
     NS_WARNING("error of recvfrom on UDP socket");
     mCondition = NS_ERROR_UNEXPECTED;
     return;
   }
   mByteReadCount += count;