From: Ajit Khaparde Date: Fri, 26 Jun 2009 02:51:07 +0000 (+0000) Subject: be2net: Fix to avoid a crash seen on PPC with LRO and Jumbo frames. X-Git-Tag: v2.6.31-rc2~72^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd46cb6cf11867130a41ea9546dd65688b71f3c2;p=pandora-kernel.git be2net: Fix to avoid a crash seen on PPC with LRO and Jumbo frames. While testing the driver on PPC, we ran into a crash with LRO, Jumbo frames. With CONFIG_PPC_64K_PAGES configured (a default in PPC), MAX_SKB_FRAGS drops to 3 and we were crossing the array limits on skb_shinfo(skb)->frags[]. Now we coalesce the frags from the same physical page into one slot in skb_shinfo(skb)->frags[] and go to the next index when the frag is from different physical page. This patch is against the net-2.6 tree. Signed-off-by: Ajit Khaparde Signed-off-by: David S. Miller --- Reading git-diff-tree failed