public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
To: Konrad Wilk <konrad.wilk@oracle.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	david.vrabel@citrix.com, ian.campbell@citrix.com,
	wei.liu2@citrix.com
Cc: netdev@vger.kernel.org, xen-devel@lists.xenproject.org
Subject: RE: [Xen-devel] xen-netfront sets partial checksum at wrong offset
Date: Mon, 11 May 2015 10:25:58 -0700 (PDT)	[thread overview]
Message-ID: <3a08e270-3a70-417b-9ab8-439c7cdc1eb2@default> (raw)
In-Reply-To: <20150511150827.GA23561@l.oracle.com>

> 
> Please CC the maintainers of the driver. You can get that from
> 'scripts/get_maintainer.pl'
> 
> I've done that for you.

Thanks, Konrad.

I am copying Wei too who had fixed the below problem earlier.
It fixed the incorrect ip_hdr(). tcp_hdr() still needs to fixed.

commit d554f73df6bc35ac8f6a65e5560bf1d31dfebed9
Author: Wei Liu <wei.liu2@citrix.com>
Date:   Wed Feb 19 18:48:34 2014 +0000

    xen-netfront: reset skb network header before checksum

    In ed1f50c3a ("net: add skb_checksum_setup") we introduced some checksum
    functions in core driver. Subsequent change b5cf66cd1 ("xen-netfront:
    use new skb_checksum_setup function") made use of those functions to
    replace its own implementation.

    However with that change netfront is broken. It sees a lot of checksum
    error. That's because its own implementation of checksum function was a
    bit hacky (dereferencing skb->data directly) while the new function was
    implemented using ip_hdr(). The network header is not reset before skb
    is passed to the new function. When the new function tries to do its
    job, it's confused and reports error.

    The fix is simple, we need to reset network header before passing skb to
    checksum function. Netback is not affected as it already does the right
    thing.

    Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
    Signed-off-by: Wei Liu <wei.liu2@citrix.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: Paul Durrant <paul.durrant@citrix.com>
    Tested-By: Sander Eikelenboom <linux@eikelenboom.it>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Thanks.

Venkat

  reply	other threads:[~2015-05-11 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07 19:44 xen-netfront sets partial checksum at wrong offset Venkat Venkatsubra
2015-05-11 15:08 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-05-11 17:25   ` Venkat Venkatsubra [this message]
2015-05-29 10:34     ` Jan Beulich
2015-05-29 10:39       ` Wei Liu
2015-05-29 10:50         ` Jan Beulich

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=3a08e270-3a70-417b-9ab8-439c7cdc1eb2@default \
    --to=venkat.x.venkatsubra@oracle.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=konrad.wilk@oracle.com \
    --cc=netdev@vger.kernel.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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