]> git.karo-electronics.de Git - karo-tx-linux.git/commit
be2net: Fix to avoid a crash seen on PPC with LRO and Jumbo frames.
authorAjit Khaparde <ajitk@serverengines.com>
Wed, 29 Jul 2009 01:48:50 +0000 (18:48 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:08 +0000 (14:18 -0700)
commit9089a1b0d68597991dd4c77f5d4d594eba91a4c5
treea74d6db97946ea3c7a9cf2f469fc695125dfa221
parent786783ce30ef34eab18330fbdef36bf8712101de
be2net: Fix to avoid a crash seen on PPC with LRO and Jumbo frames.

[ Upstream commit bd46cb6cf11867130a41ea9546dd65688b71f3c2 ]

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 <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/benet/be.h
drivers/net/benet/be_ethtool.c
drivers/net/benet/be_main.c