All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark McLoughlin <markmc@redhat.com>
To: avi@redhat.com
Cc: kvm@vger.kernel.org, Mark McLoughlin <markmc@redhat.com>
Subject: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream
Date: Tue,  5 May 2009 09:56:25 +0100	[thread overview]
Message-ID: <1241513785-28738-1-git-send-email-markmc@redhat.com> (raw)
In-Reply-To: <1241459088.26045.1.camel@lappy>

This commit:

   commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01
   Subject: Remove stray GSO code from virtio_net (Mark McLoughlin)

Removed some GSO code from upstream qemu.git, but it needs to
be re-instated in qemu-kvm.git.

Reported-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
 hw/virtio-net.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index ac8e030..e5d7add 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -424,6 +424,11 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size)
     if (n->promisc)
         return 1;
 
+#ifdef TAP_VNET_HDR
+    if (tap_has_vnet_hdr(n->vc->vlan->first_client))
+        ptr += sizeof(struct virtio_net_hdr);
+#endif
+
     if (!memcmp(&ptr[12], vlan, sizeof(vlan))) {
         int vid = be16_to_cpup((uint16_t *)(ptr + 14)) & 0xfff;
         if (!(n->vlans[vid >> 5] & (1U << (vid & 0x1f))))
-- 
1.6.0.6


  reply	other threads:[~2009-05-05  8:56 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-04 16:50 virtio-net not working with the latest qemu-kvm git Sridhar Samudrala
2009-05-04 17:44 ` Alex Williamson
2009-05-05  8:56   ` Mark McLoughlin [this message]
2009-05-06  9:11     ` [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream Avi Kivity
2009-09-29 20:45     ` Mark McLoughlin
2009-09-29 20:47       ` Mark McLoughlin
2009-09-30  6:24       ` Avi Kivity
2009-09-30 11:24         ` Glauber Costa
2009-09-30 11:24           ` Mark McLoughlin
2009-09-30 13:01         ` Anthony Liguori
2009-09-30 13:51       ` Christoph Hellwig
2009-09-30 13:51         ` [Qemu-devel] " Christoph Hellwig
2009-09-30 13:55         ` Avi Kivity
2009-09-30 13:55           ` [Qemu-devel] " Avi Kivity
2009-09-30 13:59           ` Mark McLoughlin
2009-09-30 13:59             ` [Qemu-devel] " Mark McLoughlin
2009-09-30 19:15             ` Gerd Hoffmann
2009-09-30 19:15               ` [Qemu-devel] " Gerd Hoffmann
2009-10-01  6:59               ` Mark McLoughlin
2009-10-01 16:49             ` Avi Kivity
2009-10-01 16:49               ` [Qemu-devel] " Avi Kivity
2009-10-01 17:00               ` Mark McLoughlin
2009-10-01 17:00                 ` [Qemu-devel] " Mark McLoughlin
2009-10-01 17:04                 ` Avi Kivity
2009-10-01 17:04                   ` [Qemu-devel] " Avi Kivity
2009-05-05  8:56   ` virtio-net not working with the latest qemu-kvm git Mark McLoughlin
2009-05-06  9:12 ` Avi Kivity

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=1241513785-28738-1-git-send-email-markmc@redhat.com \
    --to=markmc@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.