Skip to content

Commit

Permalink
aoe: assert AoE packets marked as requiring no checksum
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ecashin authored and davem330 committed Sep 21, 2012
1 parent 3cfc159 commit 8babe8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/aoe/aoecmd.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8babe8c

Please sign in to comment.