qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QEMU RX offload issues with net device frontend that does not support virtio extensions
@ 2012-03-07 16:32 Dmitry Fleytman
  2012-03-08 10:10 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Fleytman @ 2012-03-07 16:32 UTC (permalink / raw)
  To: qemu-devel

Hello,

It looks like there is a problem in QEMU related to usage of frontends
without virtio extensions.

Normally on RX path QEMU receives packet metadata with offloads
information in virtio header.
In particular there is an information about checksumming state. For
example, when
packet is being transferred from guest to guest with offloads enabled
on transmitter side,
checksums won't be calculated, special flag will be set instead in
virtio header indicating that the checksum is ok.
Based on this flag device may notify guest that checksum verification
for this packet is not required.

Now, when virtio header is not supported on receiver side, there is no
way device may be notified about the checksum state.
Packet will be indicated to the guest as is and will be dropped by
guest's network stack.

I've tested this scenario with virtio devices and observed the issue described.

Do I miss something? Is there any configuration option or something
I'm not aware about?

Thanks in advance,
Dmitry Fleytman.

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

* Re: [Qemu-devel] QEMU RX offload issues with net device frontend that does not support virtio extensions
  2012-03-07 16:32 [Qemu-devel] QEMU RX offload issues with net device frontend that does not support virtio extensions Dmitry Fleytman
@ 2012-03-08 10:10 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2012-03-08 10:10 UTC (permalink / raw)
  To: Dmitry Fleytman; +Cc: qemu-devel

On Wed, Mar 7, 2012 at 4:32 PM, Dmitry Fleytman
<dmitry.fleytman@ravellosystems.com> wrote:
> It looks like there is a problem in QEMU related to usage of frontends
> without virtio extensions.
>
> Normally on RX path QEMU receives packet metadata with offloads
> information in virtio header.

Have you tried -netdev tap,vnet_hdr=off ?

I guess the tricky thing is negotiating whether or not to enable the
host IFF_VNET_HDR flag.  (Especially with the QEMU "vlan" feature
where the tap isn't peered directly with another device.)

Stefan

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

end of thread, other threads:[~2012-03-08 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 16:32 [Qemu-devel] QEMU RX offload issues with net device frontend that does not support virtio extensions Dmitry Fleytman
2012-03-08 10:10 ` 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).