netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix macvtap checksum errors in bridge mode
@ 2014-04-23 16:51 Vlad Yasevich
  2014-04-23 16:51 ` [PATCH 1/2] mactap: Fix checksum errors for non-gso packets " Vlad Yasevich
  2014-04-23 16:51 ` [PATCH 2/2] Revert "macvlan : fix checksums error when we are in bridge mode" Vlad Yasevich
  0 siblings, 2 replies; 9+ messages in thread
From: Vlad Yasevich @ 2014-04-23 16:51 UTC (permalink / raw)
  To: netdev
  Cc: daniel.lezcano, nightnord, kaber, eric.dumazet, mst, jasowang,
	Vlad Yasevich

The following is a problematic configuration:

 VM1: virtio-net device connected to macvtap0@eth0
 VM2: e1000 device connect to macvtap1@eth0

The problem is is that virtio-net supports checksum offloading
and thus sends the packets to the host with CHECKSUM_PARTIAL set.
On the other hand, e1000 does not support any acceleration.

For small TCP packets (and this includes the 3-way handshake),
e1000 end up receiving packets that only have a partial checksum
set.  This causes TCP to fail checksum validation and to drop
packets.  As a result tcp connections can not be established.

The following 2 patches resolve this issue. The first patch adds
a check to the non-gso code path to see if the checksum needs to
be computed.  The second patch reverts an old commit that set
ip_summed to CHECKSUM_UNNECESSARY.  Proper checksum update is
necessary under certain circumstances.

I wend through the old thread
  http://comments.gmane.org/gmane.linux.kernel.containers.lxc.general/1459
and tried the reproducers listed there, but could not cause
invalid checksum to trigger with this series.
Daniel and Andrian, if you have the time please try this patch
set to see if you still see the old checksum issues.

Vlad Yasevich (2):
  mactap: Fix checksum errors for non-gso packets in bridge mode
  Revert "macvlan : fix checksums error when we are in bridge mode"

 drivers/net/macvlan.c | 3 ---
 drivers/net/macvtap.c | 7 +++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

-- 
1.9.0

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

end of thread, other threads:[~2014-04-24 14:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23 16:51 [PATCH 0/2] Fix macvtap checksum errors in bridge mode Vlad Yasevich
2014-04-23 16:51 ` [PATCH 1/2] mactap: Fix checksum errors for non-gso packets " Vlad Yasevich
2014-04-23 19:20   ` Michael S. Tsirkin
2014-04-23 19:39     ` Vlad Yasevich
2014-04-23 20:10       ` Michael S. Tsirkin
2014-04-23 20:30         ` Vlad Yasevich
2014-04-24  7:26           ` Michael S. Tsirkin
2014-04-24 14:05             ` Vlad Yasevich
2014-04-23 16:51 ` [PATCH 2/2] Revert "macvlan : fix checksums error when we are in bridge mode" Vlad Yasevich

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