]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fm10k: Correct MTU for jumbo frames
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 25 Aug 2015 20:49:11 +0000 (13:49 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:03:21 +0000 (22:03 -0800)
Based on hardware testing, the host interface supports up to 15368 bytes
as the maximum frame size. To determine the correct MTU, we subtract 8
for the internal switch tag, 14 for the L2 header, and 4 for the
appended FCS header, resulting in 15342 bytes of payload for our maximum
MTU on jumbo frames.

Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 25394529
(cherry picked from commit 8c7ee6d2cacc7794a91875ef5fd8284b4a900d8c)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k.h

index 240fd71b627b68a81faf85dbf8137e636beb30f1..d50364ad470434bfbc63df41b2fcac0481ace7fb 100644 (file)
@@ -33,7 +33,7 @@
 #include "fm10k_pf.h"
 #include "fm10k_vf.h"
 
-#define FM10K_MAX_JUMBO_FRAME_SIZE     15358   /* Maximum supported size 15K */
+#define FM10K_MAX_JUMBO_FRAME_SIZE     15342   /* Maximum supported size 15K */
 
 #define MAX_QUEUES     FM10K_MAX_QUEUES_PF