[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3a08e270-3a70-417b-9ab8-439c7cdc1eb2@default>
Date: Mon, 11 May 2015 10:25:58 -0700 (PDT)
From: Venkat Venkatsubra <venkat.x.venkatsubra@...cle.com>
To: Konrad Wilk <konrad.wilk@...cle.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
david.vrabel@...rix.com, ian.campbell@...rix.com,
wei.liu2@...rix.com
Cc: netdev@...r.kernel.org, xen-devel@...ts.xenproject.org
Subject: RE: [Xen-devel] xen-netfront sets partial checksum at wrong offset
>
> 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@...rix.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@...elenboom.it>
Signed-off-by: Wei Liu <wei.liu2@...rix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
Cc: Paul Durrant <paul.durrant@...rix.com>
Tested-By: Sander Eikelenboom <linux@...elenboom.it>
Signed-off-by: David S. Miller <davem@...emloft.net>
Thanks.
Venkat
--
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