[PATCH] fix aoe without scatter-gather [Bug 7662]
commit31ce2d6a3a9a9164cb535d64f7ce2eb2e3f1debe
authorEd L Cashin <ecashin@coraid.com>
Fri, 22 Dec 2006 09:09:21 +0000 (22 01:09 -0800)
committerChris Wright <chrisw@sous-sol.org>
Wed, 10 Jan 2007 19:05:20 +0000 (10 11:05 -0800)
treed4b2b156479224e340b268892c89833f733329c9
parent3cca577748fc50b94c9007b49b6f2bdce2677ee0
[PATCH] fix aoe without scatter-gather [Bug 7662]

Fix a bug that only appears when AoE goes over a network card that does not
support scatter-gather.  The headers in the linear part of the skb appeared
to be larger than they really were, resulting in data that was offset by 24
bytes.

This patch eliminates the offset data on cards that don't support
scatter-gather or have had scatter-gather turned off.  There remains an
unrelated issue that I'll address in a separate email.

Fixes bugzilla #7662

Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com>
Cc: <stable@kernel.org>
Cc: Greg KH <greg@kroah.com>
Cc: <boddingt@optusnet.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/block/aoe/aoecmd.c