qlcnic: limit skb frags for non tso packet
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Tue, 12 Apr 2011 17:05:55 +0000 (17:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2011 18:53:11 +0000 (11:53 -0700)
commit91a403caf0f26c71ce4407fd235b2d6fb225fba9
tree9c542d7ab98275d87e32eb97056025a14b520b16
parent7c9f6472d46d07000c197e1d24fa2a332606968e
qlcnic: limit skb frags for non tso packet

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.

Cc: stable@kernel.org
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_main.c