From: Vincenzo Maffione <v.maffione@gmail.com>
To: qemu-devel@nongnu.org
Cc: jasowang@redhat.com, rizzo@iet.unipi.it, g.lettieri@iet.unipi.it,
Vincenzo Maffione <v.maffione@gmail.com>
Subject: [Qemu-devel] [PATCH v3] net: netmap: implement virtio-net header probe
Date: Wed, 24 Feb 2016 11:30:40 +0100 [thread overview]
Message-ID: <cover.1456309481.git.v.maffione@gmail.com> (raw)
Current implementation for netmap backend does not really probe the netmap
kernel module to know whether virtio-net header is supported for a specific
netmap port. This is only correct for VALE ports, but it is not correct for
hardware ports, pipes, etc.
This patch properly implements the missing probe mechanism, fixing the
implementation of the involved hooks (has_vnet_hdr, has_vnet_hdr_len, has_ufo,
...).
CHANGELOG:
- renamed netmap_do_set_vnet_hdr_len to netmap_fd_set_vnet_hdr_len
- abort() when failing to restore previous vnet-hdr length
- moved update to s->vnet_hdr_len to netmap_set_vnet_hdr_len
Vincenzo Maffione (1):
net: netmap: probe netmap interface for virtio-net header
net/netmap.c | 59 ++++++++++++++++++++++++++++++++++++++---------------------
1 file changed, 38 insertions(+), 21 deletions(-)
--
2.7.1
next reply other threads:[~2016-02-24 10:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 10:30 Vincenzo Maffione [this message]
2016-02-24 10:30 ` [Qemu-devel] [PATCH v3] net: netmap: probe netmap interface for virtio-net header Vincenzo Maffione
2016-02-29 7:45 ` Jason Wang
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=cover.1456309481.git.v.maffione@gmail.com \
--to=v.maffione@gmail.com \
--cc=g.lettieri@iet.unipi.it \
--cc=jasowang@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
/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.