qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] vmxnet3: Fix RX TCP/UDP checksum of partially summed packets
@ 2015-07-14  8:55 Shmulik Ladkani
  2015-07-14  8:55 ` [Qemu-devel] [PATCH 1/2] net/vmxnet3: Refactor 'vmxnet_rx_pkt_attach_data' Shmulik Ladkani
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Shmulik Ladkani @ 2015-07-14  8:55 UTC (permalink / raw)
  To: qemu-devel, Dmitry Fleytman; +Cc: idan.brown, dana.rubin, Shmulik Ladkani

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-16 13:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [Qemu-devel] [PATCH 0/2] vmxnet3: Fix RX TCP/UDP checksum of " Stefan Hajnoczi

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).