From: Ben Hutchings <bhutchings@solarflare.com>
To: Ed Cashin <ecashin@coraid.com>
Cc: <davem@davemloft.net>, <akpm@linux-foundation.org>,
<jesse@nicira.com>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] aoe: mark AoE packets as requiring no checksumming
Date: Thu, 20 Sep 2012 02:25:03 +0100 [thread overview]
Message-ID: <1348104303.4836.63.camel@deadeye.wl.decadent.org.uk> (raw)
In-Reply-To: <72368962c6414543ce7d2c3f1ab5f36154fdd710.1348088283.git.ecashin@coraid.com>
On Wed, 2012-09-19 at 18:17 -0700, Ed Cashin wrote:
> In order for the network layer to see that AoE requires
> no checksumming in a generic way, packets should be marked
> CHECKSUM_NONE.
Which they are by default.
> 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@coraid.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;
Can be written as:
skb_checksum_none_assert(skb);
if you really want to be sure.
Ben.
> }
> return skb;
> }
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2012-09-20 1:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 0:20 [PATCH] net: do not disable sg for AoE Ed Cashin
2012-09-19 19:55 ` Ben Hutchings
2012-09-20 1:16 ` [PATCH 0/2] do not disable sg when packet requires no checksum Ed Cashin
2012-09-20 1:17 ` [PATCH 1/2] aoe: mark AoE packets as requiring no checksumming Ed Cashin
2012-09-20 1:25 ` Ben Hutchings [this message]
2012-09-20 1:40 ` Ed Cashin
2012-09-20 1:20 ` [PATCH 2/2] net: do not disable sg for packets requiring no checksum Ed Cashin
2012-09-19 20:00 ` [PATCH] net: do not disable sg for AoE David Miller
2012-09-19 20:14 ` Ed Cashin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1348104303.4836.63.camel@deadeye.wl.decadent.org.uk \
--to=bhutchings@solarflare.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=ecashin@coraid.com \
--cc=jesse@nicira.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®