qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
Cc: Dmitry Fleytman <dmitry@daynix.com>,
	idan.brown@ravellosystems.com, qemu-devel@nongnu.org,
	dana.rubin@ravellosystems.com
Subject: Re: [Qemu-devel] [PATCH 0/2] vmxnet3: Fix RX TCP/UDP checksum of partially summed packets
Date: Thu, 16 Jul 2015 14:50:22 +0100	[thread overview]
Message-ID: <20150716135022.GA21764@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1436864116-19154-1-git-send-email-shmulik.ladkani@ravellosystems.com>

[-- Attachment #1: Type: text/plain, Size: 1159 bytes --]

On Tue, Jul 14, 2015 at 11:55:14AM +0300, Shmulik Ladkani wrote:
> In case csum offloaded packet, vmxnet3 implementation always passes an
> RxCompDesc with the "Checksum calculated and found correct" notification
> to the OS. This emulates the observed ESXi behavior.
> 
> Therefore, if packet has the NEEDS_CSUM bit set, we must calculate and
> place a fully computed checksum into the tcp/udp header. Otherwise, the
> OS driver will receive a checksum-correct indication but with the actual
> tcp/udp checksum field having just the pseudo header csum value.
> 
> Fix, by converting partially summed packets to be fully checksummed.
> 
> Shmulik Ladkani:
>   net/vmxnet3: Refactor 'vmxnet_rx_pkt_attach_data'
> 
> Dana Rubin:
>   net/vmxnet3: Fix RX TCP/UDP checksum on partially summed packets
> 
>  hw/net/vmxnet3.c       | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  hw/net/vmxnet_rx_pkt.c | 12 +++++++---
>  hw/net/vmxnet_rx_pkt.h | 11 ++++++++++
>  3 files changed, 79 insertions(+), 3 deletions(-)
> 
> -- 
> 1.9.1
> 
> 

Thanks, applied to my net tree:
https://github.com/stefanha/qemu/commits/net

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

      parent reply	other threads:[~2015-07-16 13:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-14  8:55 [Qemu-devel] [PATCH 0/2] vmxnet3: Fix RX TCP/UDP checksum of partially summed packets Shmulik Ladkani
2015-07-14  8:55 ` [Qemu-devel] [PATCH 1/2] net/vmxnet3: Refactor 'vmxnet_rx_pkt_attach_data' Shmulik Ladkani
2015-07-14  9:22   ` Dmitry Fleytman
2015-07-14  8:55 ` [Qemu-devel] [PATCH 2/2] net/vmxnet3: Fix RX TCP/UDP checksum on partially summed packets Shmulik Ladkani
2015-07-14  9:21   ` Dmitry Fleytman
2015-07-16 13:50 ` Stefan Hajnoczi [this message]

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=20150716135022.GA21764@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=dana.rubin@ravellosystems.com \
    --cc=dmitry@daynix.com \
    --cc=idan.brown@ravellosystems.com \
    --cc=qemu-devel@nongnu.org \
    --cc=shmulik.ladkani@ravellosystems.com \
    /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;
as well as URLs for NNTP newsgroup(s).