lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 19 Sep 2012 18:17:43 -0700 From: Ed Cashin <ecashin@...aid.com> To: davem@...emloft.net Cc: ecashin@...aid.com, akpm@...ux-foundation.org, bhutchings@...arflare.com, jesse@...ira.com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org Subject: [PATCH 1/2] aoe: mark AoE packets as requiring no checksumming In order for the network layer to see that AoE requires no checksumming in a generic way, packets should be marked CHECKSUM_NONE. Rather than relying on the current behavior of alloc_skb, this change causes the aoe driver to explicitly mark its packets as requiring no checksum. Signed-off-by: Ed Cashin <ecashin@...aid.com> --- drivers/block/aoe/aoecmd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index de0435e..0ba1b63 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c @@ -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->ip_summed = CHECKSUM_NONE; } return skb; } -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists