mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
aoe: assert AoE packets marked as requiring no checksum
[ Upstream commit 8babe8cc65 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
70875a0484
commit
dbbfb5ca29
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user