Commit 8babe8cc6570ed896b7b596337eb8fe730c3ff45

Authored by Ed Cashin
Committed by David S. Miller
1 parent 3cfc159010

aoe: assert AoE packets marked as requiring no checksum

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/block/aoe/aoecmd.c
... ... @@ -35,6 +35,7 @@
35 35 skb_reset_mac_header(skb);
36 36 skb_reset_network_header(skb);
37 37 skb->protocol = __constant_htons(ETH_P_AOE);
  38 + skb_checksum_none_assert(skb);
38 39 }
39 40 return skb;
40 41 }