qlcnic: limit skb frags for non tso packet
commitda0309a4a778c46eaba98c58a2b821349d658520
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Tue, 12 Apr 2011 17:05:55 +0000 (12 17:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:33 +0000 (2 09:19 -0700)
treeeac7da58349813447da7843c8eae298537bcb449
parentc6fedb562695213645926348c9885dcc81324e4c
qlcnic: limit skb frags for non tso packet

commit 91a403caf0f26c71ce4407fd235b2d6fb225fba9 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>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_main.c