From: Alexander 'Leo' Bergolth Subject: macvlan/macvtap guest to host communication Date: Mon, 08 Oct 2012 16:06:20 +0200 Message-ID: <5072DDDC.7080105@strike.wu.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from strike.wu-wien.ac.at ([137.208.89.120]:38204 "EHLO strike.wu.ac.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750963Ab2JHOOb (ORCPT ); Mon, 8 Oct 2012 10:14:31 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi! I have connected my kvm guest using a macvtap interface and configured a macvlan interface in bridge mode on the host to allow host to guest communication. If using virtio_net in the guest, host to guest transfer works fine. But in guest to host direction large tcp segments do not arrive at the host and are retransmitted using smaller segment sizes. (See iperf-virtio-guest2host_guest.pcap and iperf-virtio-guest2host_host.pcap. [1]) Disabling tcp segmentation offload at the guest nic fixes that problem. If I switch to different nics (e1000, rtl8139, etc), checksum offloading also seems to interfere. The checksum errors go away after disabling TX checksumming on the underlying host interface but that's a performance killer. Checksum errors also occur on other connections, not only on host to guest traffic. Does macvlan/macvtap networking only work with virtio-net or are there any tweakings for other guest NICs? Thanks, --leo [1] http://leo.kloburg.at/tmp/kvm-macvtap/ -- e-mail ::: Leo.Bergolth (at) wu.ac.at fax ::: +43-1-31336-906050 location ::: IT-Services | Vienna University of Economics | Austria