netxen: limit skb frags for non tso packet
authoramit salecha <amit.salecha@qlogic.com>
Mon, 11 Apr 2011 02:10:22 +0000 (02:10 +0000)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:22:59 +0000 (14:22 -0500)
commit032730423c7e5160b3bad2ed1ae7115fe9f00da1
tree4f8793f6d63b375d476ee9d2aba8bb65dfda96cc
parentffeebd551ec91ebf8dd292916ea1c8c7bc24f974
netxen: limit skb frags for non tso packet

BugLink: http://bugs.launchpad.net/bugs/775809

commit c968bdf6912cad6d0fc63d7037cc1c870604a808 upstream.

Machines are getting deadlock in four node cluster environment.
All nodes are accessing (find /gfs2 -depth -print|cpio -ocv > /dev/null)
200 GB storage on a GFS2 filesystem.
This result in memory fragmentation and driver receives 18 frags for
1448 byte packets.
For non tso packet, fw drops the tx request, if it has >14 frags.

Fixing it by pulling extra frags.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/netxen/netxen_nic.h
drivers/net/netxen/netxen_nic_main.c