aoe: assert AoE packets marked as requiring no checksum
authorEd Cashin <ecashin@coraid.com>
Wed, 19 Sep 2012 15:46:39 +0000 (15:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 02:23:40 +0000 (22:23 -0400)
In order for the network layer to see that AoE requires
no checksumming in a generic way, the packets must be
marked as requiring no checksum, so we make this requirement
explicit with the assertion.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/block/aoe/aoecmd.c

index de0435e63b02cbd349c5dcc282682359f6f85934..887f68f6d79a9e615beba7525cb9d0e671917c4e 100644 (file)
@@ -35,6 +35,7 @@ new_skb(ulong len)
                skb_reset_mac_header(skb);
                skb_reset_network_header(skb);
                skb->protocol = __constant_htons(ETH_P_AOE);
+               skb_checksum_none_assert(skb);
        }
        return skb;
 }