netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Or Gerlitz <ogerlitz@Voltaire.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
	Avi Kivity <avi@redhat.com>,
	netdev@vger.kernel.org, Gregory Haskins <ghaskins@novell.com>,
	Anthony Liguori <anthony@codemonkey.ws>
Subject: Re: user space virtio-net exits with "truncating packet" error
Date: Fri, 15 May 2009 11:07:43 +0400	[thread overview]
Message-ID: <4A0D14BF.5010409@msgid.tls.msk.ru> (raw)
In-Reply-To: <4A0C2500.7090709@Voltaire.com>

Or Gerlitz wrote:
> Rusty Russell wrote:
>> The answer is that virtio_net by default only supports 1500 
>> MTU; I've not tried larger MTUs.
> 
> Rusty,
> 
> I hoped to get some performance boost from using checksum and large-send offloads 
> as an alternative to jumbo frames. Looking in the virtio-net kernel driver, I see that the probe
> function checks if virtio_has_feature VIRTIO_NET_F_CSUM ... VIRTIO_NET_F_HOST_TSO ... and if yes
> sets the relevant bits in the NIC features mask. Looking in the virtio qemu code, I also see some offload
> related code.

A trap which I've seen before.

When compiling kvm userspace, ensure your kernel headers installed in
/usr/include has the latest if_tun.h bits, in particular the TUNSETOFFLOAD
and IFF_VNET_HDR definitions.

One solution to this is just to copy that file from kernel-2.6.29.  Or
maybe it's easier to add some -I flags to kvm compile commandline.

And one more note: I'm not sure if there's anything else needed.
Last time I was there -- it was with kvm-84 times I think, maybe
something changed since that.

/mjt

  parent reply	other threads:[~2009-05-15  7:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 10:07 user space virtio-net exits with "truncating packet" error Or Gerlitz
2009-05-14 11:22 ` Mark McLoughlin
2009-05-14 12:25   ` Or Gerlitz
2009-05-14 11:58 ` Rusty Russell
2009-05-14 14:04   ` Or Gerlitz
2009-05-14 18:04     ` Or Gerlitz
2009-05-15  5:18     ` Rusty Russell
2009-05-19 12:19       ` Or Gerlitz
2009-05-20  2:47         ` Rusty Russell
2009-05-20  6:20           ` Or Gerlitz
2009-05-20  6:59             ` Avi Kivity
2009-05-21  5:53             ` Rusty Russell
2009-05-15  7:07     ` Michael Tokarev [this message]
2009-05-19 10:00       ` Or Gerlitz
2009-05-19 10:13         ` Avi Kivity
2009-05-14 15:34   ` Sridhar Samudrala

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=4A0D14BF.5010409@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=ghaskins@novell.com \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@Voltaire.com \
    --cc=rusty@rustcorp.com.au \
    /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).