]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Fix broken dependency on MAX_SKB_FRAGS being related to page size
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 10 Nov 2011 09:09:17 +0000 (09:09 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:47:43 +0000 (22:47 +0800)
commitfe6ea8d55a8b70e2294ba317b6a9e495bf8a03da
treeb8a3158a7df2f72bc0c624c7ee4a611743b26660
parent3a749f244be25967da4ccbe61c0e72729386bc3e
ixgbe: Fix broken dependency on MAX_SKB_FRAGS being related to page size

This patch fixes an issue in which RSC will generate corrupted frames when
PAGE_SIZE is larger than 8K.  Specifically it looks like that in 2.6.39 a
change was made so that GRO would always have at least 16 frags available
for coalescing, but the ixgbe RSC logic was not updated.  As such the RSC
feature would generate a frame larger than 64K and then overflow the value
in the IP length field.

To correct that I am now basing things on the PAGE_SIZE.

(cherry picked from commit 642c680e9314fc102bc1f096f48ae3974931ef42)
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c